web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Error during Sales invoicing

(0) ShareShare
ReportReport
Posted on by 4

Hello All,

I am facing the below error during Sales Order invoicing in Dynamics 365 Finance & Operations:

Error:
Posting – An error occurred during update
Posting – Exception has been thrown by the target of an invocation.

This issue is occurring in UAT environment (pu 45).

To investigate the issue, I restored the UAT database to DEV, but in the DEV environment (PU 43) the error is not reproducible and the invoice posts successfully.

Has anyone faced a similar issue?
Could this be related to platform version differences, configuration, or customizations?

Any guidance on how to trace the root cause would be appreciated.

Thanks in advance.

 

 
I have the same question (0)
  • Ajit Profile Picture
    8,788 on at
    There could be multiple reasons for that particular error message. Are you using any ISVs? Like for tax calculation or something? 
  • Mallesh Deshapaga Profile Picture
    1,819 on at
    • Does this happen for all sales orders or only specific ones?

    • Are there customizations on Sales Invoice posting in your system?

    • Is the invoice posting happening via batch or manually?

  • CU11030624-0 Profile Picture
    4 on at
     
     It happens for all sales order
    Yes we have customizations on Sales Invoicing Posting
    Posting happens manually
  • Ajit Profile Picture
    8,788 on at
    How about ISVs? I feel like could be issue with the connection. 
  • Laurens vd Tang Profile Picture
    4,726 Super User 2026 Season 1 on at
    Good day,
     
    Is it possible to remove the customization temporary?
     
    Best regards,
    Laurens van der Tang
  • Suggested answer
    salman ahmad Profile Picture
    272 on at
    Dear Good day, it looks this error is technical can you ask your dev team to parse Trace?
  • CU11030624-0 Profile Picture
    4 on at
    Hello all,
    @Ajit There are no ISV related isue
     
    @salman ahmad Ran trace parser and done code comparison from dev to uat for all customizations but found no difference
     
    Also when chcked in event viewer got this error :
     

    + System

    - Provider

    [ Name] Microsoft-Dynamics-AX-Application

    [ Guid] {1e9413a1-292a-409f-9a3d-1e9f3a9e5ee6}

    EventID 466

    Version 0

    Level 2

    Task 326

    Opcode 0

    Keywords 0x4000000000000004

    - TimeCreated

    [ SystemTime] 2026-03-16T09:43:56.5724935Z

    EventRecordID 584712

    - Correlation

    [ ActivityID] {727ace6d-11eb-4a3b-9bc9-9962f3f7e8ad}

    - Execution

    [ ProcessID] 6344

    [ ThreadID] 8568

    Channel Microsoft-Dynamics-AX-Application/Operational

    Computer SNOCP2AOS1.noc.com.et

    - Security

    [ UserID] S-1-5-21-1013325324-61844948-1648639649-45608

    - EventData

    exceptionMessage Exception has been thrown by the target of an invocation.

    exceptionSource

    exceptionType System.Reflection.TargetInvocationException

    stackTrace System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'Void Microsoft.Dynamics.Commerce.Headquarters.Instrumentation.CommerceHQEventSource.EventWritePaymentsInvoiceEndUpdateStart(Int64, System.String, Boolean)'. at Dynamics.AX.Application.SalesInvoiceJournalPost.`endUpdate() at Dynamics.AX.Application.SalesInvoiceJournalPost.SalesInvoiceJournalPostCoCHelper.`endUpdate(SalesInvoiceJournalPost instance) at Dynamics.AX.Application.SalesInvoiceJournalPostBundle_Extension.endUpdate(SalesInvoiceJournalPost this) at Dynamics.AX.Application.SalesInvoiceJournalPost.SalesInvoiceJournalPostCoCHelper.`endUpdate(SalesInvoiceJournalPost instance) at Dynamics.AX.Application.SalesInvoiceJournalPostTAMRebate_Extension.endUpdate(SalesInvoiceJournalPost this) at Dynamics.AX.Application.SalesInvoiceJournalPost.SalesInvoiceJournalPostCoCHelper.`endUpdate(SalesInvoiceJournalPost instance) at Dynamics.AX.Application.SalesInvoiceJournalPost.endUpdate() at Dynamics.AX.Application.FormletterJournalPost.post() at Dynamics.AX.Application.FormletterJournalPost.`run() at Dynamics.AX.Application.FormletterJournalPost.FormletterJournalPostCoCHelper.`run(FormletterJournalPost instance) at Dynamics.AX.Application.FormletterJournalPostSubBillDeferral_Extension.run(FormletterJournalPost this) at Dynamics.AX.Application.FormletterJournalPost.FormletterJournalPostCoCHelper.`run(FormletterJournalPost instance) at Dynamics.AX.Application.FormletterJournalPost.run() at Dynamics.AX.Application.SalesInvoiceJournalPostBase.`run() at Dynamics.AX.Application.SalesInvoiceJournalPostBase.SalesInvoiceJournalPostBaseCoCHelper.`run(SalesInvoiceJournalPostBase instance) at Dynamics.AX.Application.SalesInvoiceJournalPostBase_ApplicationSuite_Extension.run(SalesInvoiceJournalPostBase this) at Dynamics.AX.Application.SalesInvoiceJournalPostBase.SalesInvoiceJournalPostBaseCoCHelper.`run(SalesInvoiceJournalPostBase instance) at Dynamics.AX.Application.SalesInvoiceJournalPostBase.run() at Dynamics.AX.Application.SalesInvoiceJournalPost.`run() at Dynamics.AX.Application.SalesInvoiceJournalPost.SalesInvoiceJournalPostCoCHelper.`run(SalesInvoiceJournalPost instance) at Dynamics.AX.Application.SalesInvoiceJournalPostSubBill_Extension.run(SalesInvoiceJournalPost this) at Dynamics.AX.Application.SalesInvoiceJournalPost.SalesInvoiceJournalPostCoCHelper.`run(SalesInvoiceJournalPost instance) at Dynamics.AX.Application.SalesInvoiceJournalPostSubBillAlloc_Extension.run(SalesInvoiceJournalPost this) at Dynamics.AX.Application.SalesInvoiceJournalPost.SalesInvoiceJournalPostCoCHelper.`run(SalesInvoiceJournalPost instance) at Dynamics.AX.Application.RevRecSalesInvoiceJournalPost_Extension.run(SalesInvoiceJournalPost this) at Dynamics.AX.Application.SalesInvoiceJournalPost.SalesInvoiceJournalPostCoCHelper.`run(SalesInvoiceJournalPost instance) at Dynamics.AX.Application.SalesInvoiceJournalPost.run() at Dynamics.AX.Application.FormletterService.`postJournal(Common _parmTable) at Dynamics.AX.Application.FormletterService.postJournal(Common _parmTable) at Dynamics.AX.Application.FormletterService.`createAndPostJournal() at Dynamics.AX.Application.FormletterService.createAndPostJournal() at Dynamics.AX.Application.FormletterService.`processJournal(Printout _printout) at Dynamics.AX.Application.FormletterService.FormletterServiceCoCHelper.`processJournal(FormletterService instance, Printout arg0) at Dynamics.AX.Application.RevRecFormLetterService_Extension.processJournal(FormletterService this, Printout _printout) at Dynamics.AX.Application.FormletterService.FormletterServiceCoCHelper.`processJournal(FormletterService instance, Printout arg0) at Dynamics.AX.Application.FormletterService.processJournal(Printout _printout) at Dynamics.AX.Application.FormletterService.`processFormLetterParmTable(Printout _printout) at Dynamics.AX.Application.FormletterService.processFormLetterParmTable(Printout _printout) at Dynamics.AX.Application.FormletterService.`runSingleThread(Printout _printout) --- End of inner exception stack trace ---

  • Suggested answer
    Danyal Imtiaz Khan Profile Picture
    45 on at
     
    This error is coming because of a missing void method and it is related to the custom code the development team has worked on. Kindly get it debugged while running the process on UAT environment and tell them to connect UAT environment database to their development machine. This is how you will get to the root cause.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 144 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 121 Super User 2026 Season 1

#3
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 108

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans