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 :
Finance | Project Operations, Human Resources, ...
Answered

Exception has been thrown by the target of an invocation" on PO Confirm&Receipt(UAT) Version 45

(1) ShareShare
ReportReport
Posted on by 303

Hi everyone,
I am facing a confusing error it says operation canceled and when i refresh the status changed to received also the confirmation as well

confirm as well
 

 

Categories:
  • Suggested answer
    BlessyFreedaJ Profile Picture
    47 on at

    Hi Raed,
     
    Could you please do the quality update? That should resolve the issue.

    If this helped, please mark it as "Verified" for others facing the same issue

    Keep in mind that it is possible to mark more than one answer as verified

  • CU22041105-0 Profile Picture
    98 on at

    This error is quite generic in D365 F&O, so the message itself doesn’t identify the actual cause. One thing I’d check first is the PO accounting distributions. Microsoft specifically lists PO confirmation as a scenario where distribution inconsistencies can trigger this type of exception.

    In UAT, you can try Procurement and sourcing > Periodic tasks > Clean up > Purchase order distribution reset for the affected PO, then retry the confirmation. Also check whether the issue occurs only with this PO or with multiple POs.

    If it still fails, the inner exception/error details would be important because “target of an invocation” is only a wrapper for the underlying error.

  • André Arnaud de Calavon Profile Picture
    307,161 Super User 2026 Season 2 on at

    Hi Raed,

    Is this something that worked before or it is the first time you try to update a confirmation or post a product receipt? Are there customization involved? When you click on the Fix issues link, what additional information can you see?

  • SajeedMullaji Profile Picture
    858 on at

    what you're seeing is actually two separate things happening — the core PO transaction commits successfully to the database, but something in the post-processing layer throws the exception. that's why the status shows confirmed/received after refresh even though the UI showed a cancellation. the error itself is a .NET reflection wrapper which means the real cause is hiding underneath it.

    most common culprit in this scenario is print management — the PO confirmation or receipt posting triggers a document generation step after the main transaction commits, and if that PDF conversion or SSRS report rendering fails, you get this exact behaviour. quick test — try posting with print confirmation set to No and see if it goes through clean. if it does, your issue is in the document routing or print management setup, not the PO logic itself.

    if disabling print doesn't help, check System Administration → Inquiries → Batch Jobs around the time of the error — the inner exception will be there with the actual stack trace rather than the generic wrapper message.

    also worth running the purchase order distribution reset under Procurement and Sourcing → Periodic Tasks → Clean Up to rule out any orphaned accounting distributions causing the post-processing subscriber to crash.

    given you're on 10.0.45, also worth checking if the latest quality updates are applied — Microsoft patched several document handling issues in point releases for that version.

  • Verified answer
    Raed Salah Bzour Profile Picture
    303 on at

    TY all, Microsoft Response was this is related to performance so we solved the transfer order, and we still want to investigate the PO logic and 70% it's related to customization 

  • Raed Salah Bzour Profile Picture
    303 on at

    Hi , Yes there are customizations and the issue related to performance
    Hi , I have already did that and nothing  happened

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 426 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 358

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 353 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans