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

Community site session details

Session Id :
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.

I have the same question (0)
  • Martin Dráb Profile Picture
    236,279 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
    299,026 Super User 2025 Season 2 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
    13,047 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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,206

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 596 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans