Thursday 9 July 2015

Exception has been thrown by the target of an invocation.AX 2012 Purchase order invoicing.

Hi,
This is a Microsoft bug.
This error occurs when you try to Invoice a Purchase order that has attachments such as Notes, etc.

If you uncheck 'Execute business logic in IL' you will get this error:

RecordInsertList object not initialized Error while posting invoice with prepayment


To fix this, simply add this line of code(see image):

Class: PurchAdvanceApplicationJournalPost
Method: init()




3 comments:

  1. Hi A Khan

    i am getting the following error while posting the vendor invoice with prepayment:

    "Exception has been thrown by the target of an invocation.
    An error occurred during update
    Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown."

    i have updated the the code what you had written but no luck still the same error.

    ReplyDelete
  2. Hi A Khan

    i am getting the following error while posting the vendor invoice with prepayment:

    "Exception has been thrown by the target of an invocation.
    An error occurred during update
    Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown."

    i have updated the the code what you had written but no luck still the same error.

    ReplyDelete