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 :
Microsoft Dynamics AX (Archived)

Exception has been thrown by the target of an invocation

(0) ShareShare
ReportReport
Posted on by

Hi All

I have tried to reconfirm a purchase order after changing the delivery date and i receive the following error message:

'Exception has been thrown by the target of an invocation'

This has happened now on at least 2 completely unrelated orders in the last few days.

Can anyone please shed some light on what this means or what could have caused the issue. If i try to click view accounting distributions then i receive also receive the error message below. I'm not sure if the 2 error messages are linked in any way?

stack-trace-error.PNG

Any help will be much appreciated

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    This is a completely generic error. It means "a .NET method was called and it caused an exception". Of course, how you should fix it depends on what code was called and what failed. Because you don't know it yet, you'll have to collect more information before you can fix the problem. First of all, didn't you get any more details, such as the call stack? If not, consider tracing or debugging.

    Regarding the other error, you're in a much better position. You know that the error was raised at line 27 in SourceDocumentLineItem.newFromSourceDocumentLineImplementation(), therefore your first step should be checking what code is there.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans