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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

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

(6) ShareShare
ReportReport
Posted on by 1,524
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
    238,740 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,524 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?
  • maqkhan Profile Picture
    3 on at
     
    referencing this: Details for issue 855772 

    Will update about it if i found a solution,
  • Deepak Agarwal Profile Picture
    8,602 on at
    Why you are unable to debug this, is it your debugger not hitting or you dont know where to put debugger. 
    Sometimes its tricky to enable debugger. 
  • CU19121912-0 Profile Picture
    on at
    Did you find any solution?  We are also facing the same error.
  • Suggested answer
    vishalsahijwani Profile Picture
    213 on at
    Hi @RA Jones , 
     
    Solution1 - I hope you have tried Debugging Info class's add( ) method for exception as this gives out the actual place of origin of the exception. 
     
    Solution 2 - I would recommend you to put Proactive Quality Update 45 as the screenshot which you mentioned shows the version last number as 35 which means that only Service Update 45 has been deployed on your Dev machine and Service update had lot of bugs. 
     
    Either of the above two solutions will definitely help you to get of this jam. 
     
    Please check if this helps !!!

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 309

#3
Diego Mancassola Profile Picture

Diego Mancassola 259

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans