In Dynamics AX 2012 where exactly in either workflow or purchasing policies is a setting to auto confirm a purchase order once a purchasing requisition has been approved. I appreciate in assistance on this.
*This post is locked for comments
Hi, I have tried to create the batch to auto-confirm purchase orders that are in approved status but I am receiving the following error.
The info log also states no lines for posting or quantity is 0.
I am using the purchase requisition process to create indirect procurement purchase orders. I have the workflow approval on the purchase requisition and have set the purchasing policy to auto-create the PO on approval of the PR.
I wanted to auto-confirm the PO and issue to the vendor so that I can minimize any manual intervention in the process.
Please let me know if you can help with this error.
Thanks
Melissa
Microsoft.Dynamics.Ax.Xpp.InfoException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.InfoException' was thrown.
at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue)
at Microsoft.Dynamics.Ax.MSIL.cqlClassIL.callReturn(Int32 rc, interpret* ip)
at Microsoft.Dynamics.Ax.MSIL.cqlClassIL.CallStatic(String className, String methodName, Object[] parameters, Type[] types, Object[] varargs, Type[] varargsTypes)
at Microsoft.Dynamics.Ax.Xpp.XppObjectBase.StaticCall(String className, String methodName, Object[] parameters, Type[] types, Object[] varargs)
at Dynamics.Ax.Application.Debug.assert(Boolean expression)
at Dynamics.Ax.Application.SourceDocumentLineProvider.getDistributedAmountInAccountingCurrency(Int64 _sourceDocumentLine, Int64 _ledgerDimension, AccountingDistributionReferenceRole _accountingDistributionReferenceRole, Boolean _recursive) in SourceDocumentLineProvider.getDistributedAmountInAccountingCurrency.xpp:line 32
at Dynamics.Ax.Application.SourceDocumentBalanceProvider.Calculatedistributedamount(Int64 _sourceDocumentLineRecId, Int64 _ledgerDimension) in SourceDocumentBalanceProvider.calculateDistributedAmount.xpp:line 23
at Dynamics.Ax.Application.SourceDocumentBalanceProvider.Calculate(Int64 _sourceDocumentLineRecId, SourceDocumentLineAccountingStatus _accountingStatus, Int64 _ledgerDimension) in SourceDocumentBalanceProvider.calculate.xpp:line 33
at Dynamics.Ax.Application.SourceDocumentBalanceProvider.Initializebalanceline(SourceDocumentLine _sourceDocumentLine, SourceDocumentAmountLedgerDimIVisitor _ledgerDimensionIVisitor, Boolean ) in SourceDocumentBalanceProvider.initializeBalanceLine.xpp:line 60
at Dynamics.Ax.Application.SourceDocumentBalanceProvider.Initializebalanceline(SourceDocumentLine _sourceDocumentLine, SourceDocumentAmountLedgerDimIVisitor _ledgerDimensionIVisitor)
at Dynamics.Ax.Application.SourceDocumentBalanceProvider.Initializebalance(SourceDocumentAmountLedgerDimIVisitor _ledgerDimensionIVisitor, Boolean ) in SourceDocumentBalanceProvider.initializeBalance.xpp:line 17
at Dynamics.Ax.Application.SourceDocumentBalanceProvider.Initializebalance(SourceDocumentAmountLedgerDimIVisitor _ledgerDimensionIVisitor)
at Dynamics.Ax.Application.AccountingDistributionOrderSummaryCalc.Populateencumbrancesummaryamount(String _purchId) in AccountingDistributionOrderSummaryCalc.populateEncumbranceSummaryAmount.xpp:line 17
at Dynamics.Ax.Application.PurchTotalsSummaryController.updateTotals(PurchTable _purchTable, Int32 _tableId, Common _purchSummary, Boolean ) in PurchTotalsSummaryController.updateTotals.xpp:line 54
at Dynamics.Ax.Application.PurchTotalsSummaryController.updateTotals(PurchTable _purchTable, Int32 _tableId)
at Dynamics.Ax.Application.PurchTotalsSummaryController.populateEncumbranceSummaryValues(String _purchId) in PurchTotalsSummaryController.populateEncumbranceSummaryValues.xpp:line 15
at Dynamics.Ax.Application.PurchTotalsSummaryController.onPostingSuccess(Set _postedJournalSet) in PurchTotalsSummaryController.onPostingSuccess.xpp:line 30
at Dynamics.Ax.Application.FormletterService.Run() in FormletterService.run.xpp:line 250
at Dynamics.Ax.Application.FormletterService.Postpurchaseorderconfirmation(PurchFormLetterPurchOrderContract _contract) in FormletterService.postPurchaseOrderConfirmation.xpp:line 17
at FormletterService::PostPurchaseOrderConfirmation(Object , Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeInstanceCall(Object instance, String MethodName, Object[] parameters)
at Dynamics.Ax.Application.SysOperationServiceController.Runoperation(Boolean _async) in SysOperationServiceController.runOperation.xpp:line 93
at Dynamics.Ax.Application.SysOperationServiceController.Run() in SysOperationServiceController.run.xpp:line 27
at Dynamics.Ax.Application.FormLetterServiceController.Run() in FormLetterServiceController.run.xpp:line 3
at Dynamics.Ax.Application.PurchFormLetter.Run() in PurchFormLetter.run.xpp:line 57
at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 54
at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 13
at BatchRun::runJobStatic(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at BatchIL.taskThreadEntry(Object threadArg)
Hello Ryan , Thanks For Auto Confirm PO Process.
I m using same process which u suggested and my PO is confirmed But in Batch job history form status is showing Error . Please suggest.
And the main requirement is when PO will confirm it should automatic generate a XML file in specific folder which is set in outbound port URL.
Thanks
There is a class called VersioningPurchaseOrder that can be used to approve change requests, confirm orders.
Hi, wich is the class for configure de batch process?
Hi Ryan,
Thank you for the information regarding auto confirmation. I am currently setting up workflows for PR and PO change management.
Vickie Morris
You have to setup the job for each company.
Hi Ryan,
Is this is a global process meaning one batch for all AX Ledgers\companies or has to get repeated for each company?
Thanks,
Farokh
Posner, Tim replied the excellent solution and I am totally appreciated with him. I hope you will reach the end.
Hi, yes we noticed that too! We reported it to Microsoft as a bug - haven't had a fix yet. (And we hit the same problem when we setup a batch job to receive some purchase orders).
Tim
Thanks Tim,
Just another issue related to PO confirmation in batch.
In one of our client env, when PO is confirmed from batch process, it is taking confirmation date as the creation date of the batch for PO confirmation.
Any idea. Is there any setup for the confirmation date to pick from?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,188 Super User 2024 Season 2
Martin Dráb 230,030 Most Valuable Professional
nmaenpaa 101,156