Skip to main content

Notifications

Announcements

No record found.

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

Sales order header entities failed Dual Write for custom fields

(2) ShareShare
ReportReport
Posted on by 126
Hello experts,
 
I am facing an issue with DualWrite and I hope to find solution here. I have modified the SalesOrderHeaderD365SalesEntity:
  1. Added a custom table (DemoSalesTable) in the data source of the entity (Table relation is SalesTable.RecId = DemoSalesTable.SalesTable).
  2. Added fields in the entity & staging table from custom table.
  3. The custom table has fields exposed on Sales order details form.
  4. The mapping of these fields is defined in the data entity fields mapping.
  5. The mapping of these fields is defined in the Dual write table fields mapping.
So, issue is:
  1. When standard fields of SalesTable are modified, DualWrite is syncing both standard and custom fields in the Dataverse
  2. But when custom fields from DemoSalesTable are modified, it is not syncing the sales order in the Dataverse for custom fields.
Steps taken so far:
  1. I have overridden DefaultCTQuery method of SalesOrderHeaderD365SalesEntity in CoC to include DemoSalesTable in its query.
  2. Enabled the custom query change tracking option from data entities list page for SalesOrderHeaderD365SalesEntity.
  3. Manually added a record in BusinessEventsDefinition table for DemoSalesTable & SalesOrderHeaderD365SalesEntity. I am not sure which process is adding records for business event so added record manually.
  4. Stop, Run, Pause DualWrite service for SalesOrderHeaderD365SalesEntity.
  5. Refresh data entities list.
  6. Also tried to use SalesOrderHeaderCDSEntity which is using SalesOrderHeaderV2Entity as a data source. I have modified SalesOrderHeaderV2Entity following the similar steps as described above.
  • Layan Jwei Profile Picture
    Layan Jwei 7,264 Super User 2024 Season 2 on at
    Sales order header entities failed Dual Write for custom fields
    Hi,

    Do you still need help?
  • Layan Jwei Profile Picture
    Layan Jwei 7,264 Super User 2024 Season 2 on at
    Sales order header entities failed Dual Write for custom fields
    Hi AR01,
     
    If you update the custom fields from CE, does FO get updated with those values?
     
    And can you please take a screenshot of the mapping you did for the custom fields in FO? Maybe it's one direction?
  • AR01 Profile Picture
    AR01 126 on at
    Sales order header entities failed Dual Write for custom fields
    Yes, custom fields are there and syncing when standard fields are modified.
  • Layan Jwei Profile Picture
    Layan Jwei 7,264 Super User 2024 Season 2 on at
    Sales order header entities failed Dual Write for custom fields
    Hi AR01,
     
    If you go to the dataverse demo table, can you see those new custom fields?

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans