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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

SO Invoice Error: Posting Exception has been thrown by the target of an invocation.

(4) ShareShare
ReportReport
Posted on by 1,417
Hi all,
 
We are facing the error while generating the invoice of sales order in D365 FO.
Error details are a below.
 
We try to debug, but can't able to find anything. 
It occurs in dev instance.
 
If anyone have any details/solution regarding the error, then it will be really helpfull.
 
Thanks,
Raj D Borad
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    237,709 Most Valuable Professional on at
    Then you need to continue debugging until you find where the exception comes from.
     
    If you have no idea where it may be, one of possible approaches is adding a breakpoint to Info.add() and checking the stack trace. Or you can configure Visual Studio to break immediately when a NullReferenceException is thrown (the same way as what I did for TypeInitializationException in Details of type initializer exception).
  • Raj Borad Profile Picture
    1,417 on at
     

    During debugging, the following exception is thrown:

    System.MissingMethodException: Method not found:

    'Void Microsoft.Dynamics.Commerce.Headquarters.Instrumentation.CommerceHQEventSource.EventWritePaymentsInvoiceEndUpdateStart(Int64, System.String, Boolean)'

    The same error is also logged in Event Viewer.

    Additional Details:

    • Issue occurs only in DEV (new VM)
    • No customizations related to the affected area
    • Database restored from UAT, and UAT works fine.
     
     
  • NP-03120851-0 Profile Picture
    4 on at
    Did you find any solution?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 687 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 535 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 403 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans