Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Perform Job re-run with code

(0) ShareShare
ReportReport
Posted on by 10

Hello! 
I often encounter a problem where multiple entities cannot successfully boot into d365 for unknown reason (off-topic question). In such cases I use "Copy data to target" tab 1263.pastedimage1685002182946v2.png
then I choose "Run for criteria" and enable checkbox "Rows with previous errors"
 Image
After these steps failed jobs are successfully reprocessed.

So my question is - is there any options how can I do the same operation from code? I mean HTTP (maybe OData) request.

Thanks!

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,969 Super User 2025 Season 1 on at
    RE: Perform Job re-run with code

    Hi Uladzislau,

    It would be good to understand why you have these errors. It could be e.g. sequential issue. In that case, it would be better to redesign the integration with a correct order, preventing having errors. This would have my preference above just trying to run the failed again.

    When you insist in restarting the copy process using OData, you would need to build a custom data entity with a public action which can then execute x++ coding. I don't think it would be an easy development. You can find some thoughts on using and creating actions on my blog: Let your Operations Flow – Part 8 - Dynamicspedia

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans