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

Community site session details

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

Do not retry the synchronization on already failed retail transactions

(0) ShareShare
ReportReport
Posted on by 38

Context

 
We are creating sales order in F&O from Commerce (we have a custom website that calls Commerce using the CSU OData APIs).
Here's the flow:
- Create and checkout a Cart in Commerce using the CSU OData APIs
- A batch job /P-0001/ creates a retail transaction from the Commerce cart
- A batch job /RetailSyncOrdersSchedulerJob/ then create a sales order in F&O from the retail transaction.
 
 
Sometimes, the RetailSyncOrdersScheduler job cannot create a sales order because of rules in F&O that prevents it. For example: /Product ABC123 is on hold/.
The retail transaction status is now /Failed/. This is fine for us, we can detect the error and send an email to our internal staff to handle the order manually (create a new one without product ABC123, call the customer, etc).
 
 
The real problem here is that the job /RetailSyncOrdersSchedulerJob/ continues to try over and over again to create a sales order from that RT (see the /retry count/ on the screenshot). So, if a week later, product ABC123 is no more on hold, the sales order will be created in F&O. But we don't want this, because we already handled this.
 
Is there a way to change this behavior?
Maybe tell the RetailSyncOrdersSchedulerJob batch job to ignore RT if status is /Failed/?
Or another batch jobs to delete the failed RT?
 
Thanks
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,721 Super User 2025 Season 2 on at
    Do not retry the synchronization on already failed retail transactions
    Hi Junior,
     
    Maybe you can check if the next documentation page is applicable for your scenario: Edit and audit online order and asynchronous customer order transactions - Commerce | Dynamics 365 | Microsoft Learn
     
     
    PS: In this case, the Dynamics 365 Commerce forum was the better place to ask your question.
  • JuniorD Profile Picture
    38 on at
    Do not retry the synchronization on already failed retail transactions
    @Andre Arnaud de Calavon
     
    Thanks for the link. I found a workaround with the "Editing" status but it's just a quick & dirty hack. I opened a new question with more details here: https://community.dynamics.com/forums/thread/details/?threadid=2debcd23-b511-ee11-8f6d-000d3a5474a4

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

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
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans