Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Exception has been thrown by the target of an invocation - Sales Order invoice posting issue

(0) ShareShare
ReportReport
Posted on by 135

For the past two days we are facing this issue in our SIT and dev environments when posting sales order invoices.

This issue is occurring for both fresh and old records.

Below is the error we are getting and posting is not happening:

pastedimage1672770219319v1.png

There are no customizations involved while posting. The issues is not occurring in UAT.(UAT, SIT & DEV versions are same)

We tried debugging for the issue and below is the call stack.

pastedimage1672770502381v2.png

Kindly help with your suggestions and ideas on this issues.

  • Martin Dráb Profile Picture
    Martin Dráb 230,934 Most Valuable Professional on at
    RE: Exception has been thrown by the target of an invocation - Sales Order invoice posting issue

    FormletterService.runSingleThread() logs details of the exception to event logs, therefore you should be able to get more information from there. For example, open Event Viewer on the Dev box and go to Application and Services Logs > Microsoft > Dynamics. I'm not sure which log is the right one; maybe AX-Application. If needed, you can query all logs at once (with a filter for errors only).

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,111 Super User 2025 Season 1 on at
    RE: Exception has been thrown by the target of an invocation - Sales Order invoice posting issue

    Hi Surjit,

    Are you aware of possible changes in your SIT environment? E.g. was there a database restore to refresh data? Or did you deploy a new service update from Microsoft?

  • Komi Siabi Profile Picture
    Komi Siabi 12,759 Most Valuable Professional on at
    RE: Exception has been thrown by the target of an invocation - Sales Order invoice posting issue

    Hi Surjit Kumar,

    What version is your SIT ?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans