web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Exception has been thrown by the target of an invocation.

(2) ShareShare
ReportReport
Posted on by 10
Hello, 
 
We're trying to post sales invoice by batch in Production environment, but the jobs fails systematically with only the following error in the log:  
 
Batch task ended. An error occurred during update Batch task failed: Posting An error occurred during update. 
 
Manual Posting works fine, we couldn't reproduce the issue on a similar environment to Production (code and data)
 
any ideas on how to resolve this issue ? 
 
Thanks 
Capture d’écran ...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Anton Venter Profile Picture
    20,346 Super User 2025 Season 2 on at
    Hello,
     
    Can you add a screenshot of the error message in your post? The picture that you attached cannot be opened.
  • IE-11071325-0 Profile Picture
    10 on at
  • Anton Venter Profile Picture
    20,346 Super User 2025 Season 2 on at
    I suggest to move the production database to a dev environment and use to Visual Studio to debug the process. You will be able to see what is causing this exception.
  • IE-11071325-0 Profile Picture
    10 on at
    Hi Anton, 
     
     
    I've already refreshed to an environment with same data/code as production and I can't reprouce. Order invoices are posted with no issues
  • Anton Venter Profile Picture
    20,346 Super User 2025 Season 2 on at
    Since it's the production environment, I suggest to raise a support ticket with Microsoft support via LCS. By the way, do you have any customisations in that specific step / process that could possibly cause this?

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

News and Announcements

Season of Giving Solutions is Here!

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 678 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 407 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 283 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans