Adjust PO -> error when confirming the PO

This question has suggested answer(s)

Hi all,

When i create a PO with one line, confirm the PO but then i change the PO-line (for example i change the quantity from 5 to 6), the system gives following error:

Debugging the code is apparently not possible...

Can someone give me the explanation and th path to add a right ledger account?

Thanks a lot!

Frederik Vanhaelst

All Replies
  • Apparently the image isn't clear. Underneath the error:

    One or more accounting distribution is missing a ledger account or contains a ledger account that is not valid.  Use the Accounting distribution form or the Posting profile to update the ledger account.

    The state of the source document or source document line could not be updated.

    Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.

       at Dynamics.Ax.Application.FormletterService.Run() in FormletterService.run.xpp:line 174

       at Dynamics.Ax.Application.FormletterService.Postpurchaseorderconfirmation(PurchFormLetterPurchOrderContract _contract) in FormletterService.postPurchaseOrderConfirmation.xpp:line 14

       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.runServiceOperation(Object[] parameters) in SysOperationServiceController.runServiceOperation.xpp:line 22

       at SysOperationServiceController::runServiceOperation(Object[] )

       at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

       at Dynamics.Ax.Application.SysDictClass.invokeStaticMethod(Object[] _params) in SysDictClass.invokeStaticMethod.xpp:line 26

       at SysDictClass::invokeStaticMethod(Object[] )

       at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

       at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runAsInvoke(String className, String staticMethodName, Object[] parms, Object[]& exportInfolog)

  • Hi, I'm having a similar error message when trying to post the intercompany sales order.

    Do you have any solution?

    Thanks!

    "Error Posting\Sales order: SO-0001140\Company: ABC Solutions, Inc. - US The state of the source document or source document line could not be updated.

    Error Posting An error occurred during update

    Error Posting Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.

      at Dynamics.Ax.Application.FormletterService.Run() in FormletterService.run.xpp:line 178

      at Dynamics.Ax.Application.FormletterService.Postsalesorderinvoice(SalesFormLetterInvoiceContract _contract) in FormletterService.postSalesOrderInvoice.xpp:line 14

      at FormletterService::postSalesOrderInvoice(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.runServiceOperation(Object[] parameters) in SysOperationServiceController.runServiceOperation.xpp:line 22

      at SysOperationServiceController::runServiceOperation(Object[] )

      at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

      at Dynamics.Ax.Application.SysDictClass.invokeStaticMethod(Object[] _params) in SysDictClass.invokeStaticMethod.xpp:line 26

      at SysDictClass::invokeStaticMethod(Object[] )

      at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

      at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runAsInvoke(String className, String staticMethodName, Object[] parms, Object[]& exportInfolog)

    "

  • Hi,

    Try to run a full CIL compile and see if this solves your problem.

    kind regards,

     

    André Arnaud de Calavon