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

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.
I have the same question (0)
  • Layan Jwei Profile Picture
    8,034 Super User 2025 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?
  • AR01 Profile Picture
    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
    8,034 Super User 2025 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?
  • Layan Jwei Profile Picture
    8,034 Super User 2025 Season 2 on at
    Sales order header entities failed Dual Write for custom fields
    Hi,

    Do you still need help?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,157

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 674 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans