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

Unable to Invoice Sales order - Error says "Exception has been thrown by the target of an invocation"

(0) ShareShare
ReportReport
Posted on by 20

This sales order is picked and packed.  It was shipped out on 4/29/2022.  The order should have been invoiced on 4/29/2022 via the batch job but the user notified us today 5/2/2022 that the order did not get invoiced.  When manually trying to invoice it, we get an error saying "Sales order: SOxxxxxxx   Exception has been thrown by the target of an invocation. Micosoft-Community-question--_2D00_--Error-Exception-has-been-thrown-by-the-target-of-an-invocation.png

This occurs just on this sales order;  all other orders are invoicing without any issue.  We're on AX 2012 R3 CU9.

Things I have tried so far to invoice the sales order:

1.   I tried to invoice it on other AOS's.  In the past, it was rare when we got this error, and to fix it, we would log into a different AOS and manually invoice the order, but this did not work for us this time.

2.   I ran the posting without Executing business operation in CIL.  I did this manually, not in batch.

As mentioned, the order was shipped on 4/29/2022.   On the Sales order, in the Action pane, when we click on 'Release check', we get the following.  Note the two red errors.

Micosoft-Community-question--_2D00_--Error-Exception-has-been-thrown-by-the-target-of-an-invocation_5F00_Release-check.png

Any help is appreciated.  Thank you.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,424 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,043 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans