Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Auto Confirmation of a Purchase Order using change management

Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Auto Confirmation of a Purchase Order using change management

    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)

  • Naveen Mishra Profile Picture
    Naveen Mishra 1,055 on at
    RE: Auto Confirmation of a Purchase Order using change management

    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  

  • Shujaath Moghal Profile Picture
    Shujaath Moghal 20 on at
    RE: Auto Confirmation of a Purchase Order using change management

    There is a class called VersioningPurchaseOrder that can be used to approve change requests, confirm orders.

  • Abel Camacho Profile Picture
    Abel Camacho 8 on at
    RE: Auto Confirmation of a Purchase Order using change management

    Hi, wich is the class for configure de batch process?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Auto Confirmation of a Purchase Order using change management

    Hi Ryan, 

    Thank you for the information regarding auto confirmation.  I am currently setting up workflows for PR and PO change management.

    Vickie Morris

  • RE: Auto Confirmation of a Purchase Order using change management

    You have to setup the job for each company.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Auto Confirmation of a Purchase Order using change management

    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

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Auto Confirmation of a Purchase Order using change management

    Posner, Tim replied the excellent solution and I am totally appreciated with him. I hope you will reach the end.

  • RE: Auto Confirmation of a Purchase Order using change management

    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

  • Manish82 Profile Picture
    Manish82 5 on at
    RE: Auto Confirmation of a Purchase Order using change management

    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?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,188 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans