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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Dual-write mapping for header detail

(0) ShareShare
ReportReport
Posted on by 901

Hello guys,

I am confused on how exactly to setup Dual-Write mapping for header and detail scenario. So in CDS, I have 2 tables which is Header and Detail, as usual there is a relationship column between the detail table and header table, which usually in detail table there is one column with column name similar as the header table name.

What actually confuse me, during setup mapping for Dual-write, why the integration key for the Detail table suggest me to have another which is same as the key of my header table ?

So for example in my Header table in CDS, I created 2 keys : 1 for Journal ID and another for Description. And in Detail table I have composite keys of Journal ID  + Line Number.

In the integration keys of Detail table, after I set keys Journal ID and Line Number, they added "Description" and "Journal ID" again with prefix of my Header table's name. So then in the table mapping section, it will have error message saying "Mapping is missing for integration key -.... [those two fields added]"

Should we set the mapping in Detail with the fields from the Header table as well ? or can I just delete those two additional field in Integration keys setup ? But if I delete those field in Integration keys section, go back to Table mapping section, at first the error gone, and if I click Refresh Table, they will add again the keys.

Please advice,

Thanks

I have the same question (0)
  • Verified answer
    Tony zhong Profile Picture
    901 on at

    Hi,

    Problem solved, by adding the correct keys in CDS entity. It is a typical false warning message when the real problem is actually because the entity I'm doing mapping is Company filtered, so the correction is on CDS entity by adding company field (and as the key)

    Thanks to this blog Develop custom Data Entities for Dual-write - ariste.info

    Thanks

  • Verified answer
    WillWU Profile Picture
    22,361 on at

    Hi Tony,

    Thank you for your sharing.

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 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans