Quantcast
Channel: Microsoft Dynamics AX
Viewing all 130240 articles
Browse latest View live

Forum Post: RE: Documents stuck in workflow

$
0
0
Hi Jonathan, With the help of Microsoft support we found that there were a number of workflow items in the queue that did not have underlying transactional documents. We identified the scope of the issue and devised some cleanup scripts. Here is an example of one of the scripts. 'Select * from SYSWORKFLOWMESSAGETABLE where MESSAGELIFECYCLESTATE = 1 and WORKFLOWCONTEXTTABLEID = 1551 and WORKFLOWCONTEXTRECID not in (select RECID from PURCHREQTABLE)'. Similar scripts were created for PURCHREQLINE, VENDINVOICEINFOTABLE, VENDINVOICEINFOLINE, CUSTINVOICETABLE and ADVANCEDLEDGERENTRYHEADER. We ended up deleting the workflow rows with our supporting documents from SYSWORKFLOWMESSAGETABLE, WORKFLOWWORKITEMTABLE, WORKFLOWTRACKINGTABLE, WORKFLOWTRACKINGSTATUSTABLE, WORKFLOWWORKITEMTABLE, SYSWORKFLOWMESSAGETABLE, SYSWORKFLOWINSTANCETABLE and the SYSWORKFLOWTABLE. All in all about 100 orphaned rows were deleted, when that was completed we restarted the AOS and when workflow batch began processing we watched the rows in the SYSWORKFLOWMESSAGETABLE where MESSAGELIFECYCLESTATE = 1 drop to 0. The documents that were sctuck in workflow started to advance. Microsoft said that they are looking into ways to make the workflow message processing more resilient to these types of data issues. Thanks for your interest, your comments were on point. Cheers, Rick

Forum Post: RE: AIF service sending multiple error messages from the exception log

$
0
0
Thanks, you are correct. I also found: http://axdevnotes.blogspot.com/

Forum Post: Ax 2009 report cannot see print options tab

$
0
0
Hi everyone, Could you help me to show a print options tab? I have a report in AX 2009 created with generated design and I would like to use the print option for totals. I can see 'range' and 'sorting' tab but not 'print options'. Thanks in advance!, Josep

Forum Post: RE: ABC Classification - where is value calculated?

$
0
0
Have just run a test performing a stock adjustment and it posts the items financially, causing the ABC Classification to apply. Many thanks

Forum Post: How to send multiple messages for the same InventTable record using AIF outbound AX2012

$
0
0
Hi I am new to AIF , i have deployed a outbound port and using file system adapter. Requirement is: Whenever a new product A001 is created , i trigger a message(XML) to send to an External system using outbound port . XML message has a node status with value NEW for newly created product. example Like : status NEW /status , once the product is created it is added to the Queue. Next time when a released product is modified , say you update a inventory unit, on released product form , a new message is triggered with the status updated . Issue:  When user creates a new product, 1 messages is moved to queue and it remains there unless user has not run the JOB to  move the message outside AX , after that when user updates/modifies a field on the same released product , the new message overrides the 1st message, and QueueManager allows only one record at any point of time, for that product. how do i make sure that Queue Allows multiple records or process the 1st message before second message is put into the queue? I have written send electronically method on Inventtable table and calling it from insert and update method. server void sendElectronically(XMLDocPurpose _xmlDocPurpose, AifSendMode _aifSendMode = AifSendMode::Async) {     AxdSendContext      axdSendContext = AxdSendContext::construct();     AifEntityKey        aifEntityKey   = AifEntityKey::construct();     Map                 keyData;     AifConstraint       aifConstraint = new AifConstraint() ;     AifConstraintList   aifConstraintList = new AifConstraintList();     ;     keyData = SysDictTable::getKeyData(this);     aifEntityKey.parmTableId(this.TableId);     aifEntityKey.parmRecId(this.RecId);     aifEntityKey.parmKeyDataMap(keyData);     axdSendContext.parmXMLDocPurpose(_xmlDocPurpose);     axdSendContext.parmSecurity(false);    // aifConstraint.parmType(AifConstraintType:);     aifConstraint.parmId(this.ItemId);     aifConstraintList.addConstraint(aifConstraint);     AifSendService::submitDefault(     classNum(InventItemService),     aifEntityKey,     aifConstraintList,     _aifSendMode,     axdSendContext.pack()); } running below job for testing purpose to process the messages outside AX. static void DAXProcessAIF(Args _args) {       //Outbound     new AifOutboundProcessingService().run();   // process messages in queue     new AifGateWaySendService().run();          // send messages*/     info('Done'); } is it a good idea to put below lines. new AifOutboundProcessingService().run();   // process messages in queue     new AifGateWaySendService().run(); in send electronically method?     AxdSendContext      axdSendContext = AxdSendContext::construct();     AifEntityKey        aifEntityKey   = AifEntityKey::construct();     Map                 keyData;     AifConstraint       aifConstraint = new AifConstraint() ;     AifConstraintList   aifConstraintList = new AifConstraintList();     ;     keyData = SysDictTable::getKeyData(this);     aifEntityKey.parmTableId(this.TableId);     aifEntityKey.parmRecId(this.RecId);     aifEntityKey.parmKeyDataMap(keyData);     axdSendContext.parmXMLDocPurpose(_xmlDocPurpose);     axdSendContext.parmSecurity(false);    // aifConstraint.parmType(AifConstraintType:);     aifConstraint.parmId(this.ItemId);     aifConstraintList.addConstraint(aifConstraint);     AifSendService::submitDefault(     classNum(InventItemService),     aifEntityKey,     aifConstraintList,     _aifSendMode,     axdSendContext.pack());

Forum Post: RE: Best practice for changing item dimension

$
0
0
Hi Karlsson, You can indeed use a counting or profit and loss journal to transfer the on hand quantity. You can also wait until the current on hand is sold. It is up to you. Personally I think I would move the on-hand to the new item, but think it this is possible as you have to use configurations now. But you can already start with creating the new item.

Forum Post: RE: Ax 2009 report cannot see print options tab

$
0
0
Hi Josep, Did you already create a menu item and run the report using the menu item? Or did you start the report directly from the AOT?

Forum Post: RE: Ax 2009 report cannot see print options tab

$
0
0
Hi Andre, Yes I have a output menu item with security key, and I am running this report with it. Josep

Forum Post: RE: Printing to PDF or paper sees characters drop off

$
0
0
Hi Abaw, In the past we had the same problem. That is about 5 years ago. I don't know if something changed in between. We solved it by installing a pdf printer driver on Windows.

Forum Post: RE: XPO import from dev to test with id values

$
0
0
Hi, Thanks Michael. We use modelstore from preprod to prod. The issue is between dev and test where there is object ID discrepancies. we didn't have this in AX 2012 R2 and I can't remember how it was fixed. Now we have R3 and was hoping to fix it. Cheers, Brightlin

I dont know how to the payment of money in advance . in Microsoft Dynamics AX

$
0
0
I dont  know how to the payment of money in advance .   in Microsoft Dynamics AX

Forum Post: RE: Cannot correct the purchase order packing slip

$
0
0
Ivan Kashperuk In Development options, turn off running code in IL, and see the actual stack trace. Hi Ivan i debug it again with your suggestion. the error was found on the line as below which in red. /// summary /// Get a valid source document line accounting status to which the source document line can transition. /// /summary /// param name="_targetSourceDocumentLineAccountingStatus" /// The target source document line accounting status. /// /param /// returns /// A c SourceDocumentLineAccountingStatus /c . /// /returns /// exception cref="Exception::Error" /// A source document line cannot transition to the status None. /// /exception /// exception cref="Exception::Error" /// No valid source document line status found. /// /exception public SourceDocumentLineAccountingStatus getValidTargetSourceDocLineAccStatus(SourceDocumentLineAccountingStatus _targetSourceDocumentLineAccountingStatus) { container targetSourceDocumentLineStates; SourceDocumentLineAccountingStatus targetSourceDocumentLineAccountingStatus; SourceDocumentLineAccountingStatus nextSourceDocumentLineAccountingStatus; nextSourceDocumentLineAccountingStatus = this.parmNextSourceDocLineAccountingStatus(); if (_targetSourceDocumentLineAccountingStatus == SourceDocumentLineAccountingStatus::None) { targetSourceDocumentLineAccountingStatus = nextSourceDocumentLineAccountingStatus; } else if (_targetSourceDocumentLineAccountingStatus == SourceDocumentLineAccountingStatus::Canceled) { targetSourceDocumentLineAccountingStatus = _targetSourceDocumentLineAccountingStatus; } else { if (_targetSourceDocumentLineAccountingStatus nextSourceDocumentLineAccountingStatus) { targetSourceDocumentLineAccountingStatus = nextSourceDocumentLineAccountingStatus; } else { targetSourceDocumentLineAccountingStatus = _targetSourceDocumentLineAccountingStatus; } } if (targetSourceDocumentLineAccountingStatus == SourceDocumentLineAccountingStatus::None) { throw error(Error::wrongUseOfFunction(funcName())); } targetSourceDocumentLineStates = this.parmTargetSourceDocumentLineStates(); if (!conFind(targetSourceDocumentLineStates, targetSourceDocumentLineAccountingStatus)) { throw error(Error::wrongUseOfFunction(funcName())); } return targetSourceDocumentLineAccountingStatus; } ********************************** the cause is targetSourceDocumentLineStates only contains a state "Finalized", and the  targetSourceDocumentLineAccountingStatus is "FullyDistributed". call stack as below: s] \Classes\SourceDocumentLineStateModel\getValidTargetSourceDocLineAccStatus 53 [s] \Classes\SourceDocumentLineState\initTargetAccountingStatus 6 [s] \Classes\SourceDocumentStateBase\transitionTo 13 [s] \Classes\SourceDocumentProcessorBase\submit 11 [s] \Classes\SourceDocumentLineProcessor\submitSourceDocumentLineServer 68 [s] \Classes\SourceDocumentLineProcessor\submitSourceDocumentLine 51 [s] \Classes\SourceDocumentProcessor\submitSourceDocumentLinesForHeader 70 [s] \Classes\SourceDocumentProcessorFacade\submitSourceDocumentLinesForHeader 53 [s] \Classes\PurchPackingSlipJournalPost\processSourceDocument 8 [s] \Classes\FormletterJournalPost\post 40 [s] \Classes\FormletterJournalPost\run 11 [s] \Classes\FormletterService\postJournal 42 [s] \Classes\FormletterService\run 80 [s] \Classes\FormletterService\PostPurchaseOrderPackingSlip 14 [s] \Classes\DictClass\callObject [s] \Classes\SysOperationServiceController\runOperation 93 [s] \Classes\SysOperationServiceController\runServiceOperation 22 [s] \Classes\DictClass\callStatic [s] \Classes\SysDictClass\invokeStaticMethod 26 [s] \Classes\SysDictClass\invokeStaticMethodIL 39 [s] \Classes\SysOperationRPCFrameworkService\runServiceOperation 5 [c] \Classes\SysOperationServiceController\runOperationWithRunAs 7 [c] \Classes\SysOperationServiceController\run 22 [c] \Classes\FormLetterServiceController\run 3 [c] \Classes\PurchFormLetter\run 45 [c] \Classes\PurchFormLetter\main 62 [c] \Classes\FormFunctionButtonControl\Clicked [c] \Forms\VendPackingSlipJournal\Designs\DesignList\PurchFormLetter_PackingSlip\Methods\Clicked 3

Forum Post: [data migration] accounting cost entry and reverse cost entry in moving average case

$
0
0
If we are going to start system from scratch, we key-in the opening receipt but not yet invoiced. After that we adjust the opening balance. How can we post reverse the cost entry to the correct amount when we post invoice ??   Example :  Step1 : When we receipt, Ax post cost entry receipt : cost entry Dr Sales, packing slip offset         wrong cost price  Cr Order, packing slip                   wrong cost price Step2 : GL is adjusted. Cost price is adjusted. Step3 : When we post invoice, Ax will reverse the cost entry amount. This makes our GL posting not correct since it reverse the old cost price ?? invoice : reverse the cost entry Dr Order, packing slip                   wrong cost price Cr Sales, packing slip offset         wrong cost price   We are not sure how to make the GL correct for the starting system that contains some cost price, since the cost price is varied.

On behalf of my construction company in Saudi Arabia I have a query for expert comments please: in Microsoft Dynamics AX

$
0
0
On behalf of my construction company in Saudi Arabia I have a query for expert comments please: in Microsoft Dynamics AX

Forum Post: Spell Checker in Microsoft Dynamics AX

$
0
0
Hello, Is it possible to add a spell checker in Microsoft Dynamics AX 2012 R2? So yes, how to do is? Kind Regards, Koen Wouters

The queries are : " 1. Is Microsoft Dynamics AX the right choice for Construction Company with operations across country and with a work force of around 8000 people. 2. How Data Migration is to be planned from our existing system to ERP? 3. Which is Microsoft authorized partner for implementation of Microsoft Dynamics AX 2012 in Saudi Arabia, more specifically in Riyadh, Saudi Arabia? in Microsoft Dynamics AX

$
0
0
The queries are :  " 1.  Is Microsoft Dynamics AX the right choice for Construction Company with operations across country and with a  work force of around 8000 people. 2. How Data Migration is to be planned from our existing system to ERP?  3. Which is Microsoft authorized partner for implementation of Microsoft Dynamics AX 2012 in Saudi Arabia, more specifically in Riyadh, Saudi Arabia? in Microsoft Dynamics AX

Forum Post: Product Configuration BOM default Site

$
0
0
Hello, I'm facing a strange issue. I'm using Product Configuration and that tool is building my BOM whatever the site value on my S/O line is. Example : my line contains the site 02, the BOM is created with site = 01 (the first one). Of course, I'll face issues for costing, production,.... Do you have an idea how to fix this? Regards,

Forum Post: RE: Spell Checker in Microsoft Dynamics AX

$
0
0
Hi Koen, Yes it is possible. Munib Ahmed wrote a blog about it: community.dynamics.com/.../spell-checker-ax-2012.aspx

Forum Post: delete_from blocked in Report class SrsReportRunRdpPreProcessStrategyRegular

$
0
0
Hi all, I got a strange problem on a the FreeTextInvoice report. The customer added a new table to visualize data in the report (that doesn't use temporary tables). To fill it he changed the FreeTextInvoiceDP methods to create data  using post event handlers. We call the report twice as a customization, but the first time that is called (to create a pdf) the report blocks  at the end in the cleanupTables method of SrsReportRunRdpPreProcessStrategyRegular when it tries to delete one of the new tables. If we skip it in the debugging everything flows correctly. Is it possible that something locks the table (we checked the code and we found nothing)? What should we check? Thanks

Forum Post: RE: Ax 2009 report cannot see print options tab

Viewing all 130240 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>