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

  • Martin Dráb Profile Picture
    233,354 Most Valuable Professional on at
    RE: Exception has been thrown by the target of an invocation

    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans