Skip to main content

Notifications

Announcements

No record found.

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? 

  • luksz Profile Picture
    luksz 85 on at
    RE: DualWrite processing order

    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
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: DualWrite processing order

    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
    luksz 85 on at
    RE: DualWrite processing order

    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
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: DualWrite processing order

    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

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…

Vahid Ghafarpour – Community Spotlight

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

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,234 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,994 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans