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, ...
Suggested Answer

DualWrite processing order

(0) ShareShare
ReportReport
Posted on by 85

Hi, 

Another quesiton about DualWrite ;)

We have two tables - contract and contract lines. During one event contract record is created first and then it's lines. 

Typical situation. However, when both tables are enabled for synchronization in DualWrite we get an exception - when

lines are being processed - contract wasn't found. And it seems that in DW queue lines are first and then the header. The

proof of that is when lines are disabled for synch header goes through smoothly. 

So the question is - is there any way to force the processing order in DW, so it would work as FIFO queue?

I've noticed that first part of DW logic (after insert) is triggered by Business Events - maybe it's some setting there? 

I have the same question (0)
  • luksz Profile Picture
    85 on at

    It's not initial sync. It occurs during moving-out & moving-in procedure, when the new contract is created for the new customer. Both maps are active. As I mentioned - if lines are disabled header goes through.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Can you please confirm that this isn't happened during initial sync and just a header and lines records were added and both Header and Lines table maps were already running.

  • luksz Profile Picture
    85 on at

    Hi Mohit,

    Yes, I would expect the same, but our situation is different. The exception thrown by contract lines even indicates which contract number is missing, so definitely it was created because the number is passed to the lines from the header. However, it for some reason wasn't synchronized via DW.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi, My understanding is that dual write sync happens as per triggers in database. Header created first so will be sync and then lines.

    Check this MS article

    learn.microsoft.com/.../dual-write-faq

    Dual-write is transaction-based. For example, if a change in a finance and operations app triggers synchronization of multiple maps with Dataverse, by default, those changes will be sequenced in the order in which they are updated in the database. This pattern makes more sense in the context of initial synchronization. The system provides related table maps in a specified order, and you can reorder the list so that it best suits your environment.

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 843 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 325 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans