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 :
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
    239,082 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
Basit Profile Picture

Basit 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans