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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Dual-write issue : doesn't have primary company field

(0) ShareShare
ReportReport
Posted on by 903

Hello everyone,

In regards of Dual-write, how to setup Primary Company Field in CDS ?

I have error while doing my first setup, it is to expense journal, like this :

Project validation failed. SourceEntitySchema: Expense journal has a primaryCompanyField set to DataAreaId and DestinationEntitySchema: crm_expenses doesn't have primary company field set. Dual-write only supports mapping between cross-company entities or company-specific entities from both sides..keys are missing for either AX or CRM.keys are missing for either CRM or AX
I have field company which is a lookup to Company table  (cdm_company), is there further setup I should be doing first ?
Thanks in advance
I have the same question (0)
  • huijij Profile Picture
    19,811 on at

    Hi Tony,

    Please make sure company mapping is done:

    docs.microsoft.com/.../company-data

  • Tony zhong Profile Picture
    903 on at

    Hi,

    Managed to solve the issue, which is actually not about the mapping but turns out I should put the integration key with the company code field.

    While the status is running, but I didn't see any record in my F&O, anyone can suggest any good video on how to do this correctly ?

    The table involved is LedgerJournalTable, in which I have created a custom entity for this Dual-Write purpose, but as mentioned, while it is said is running, and my expected process is to have an integration from the CDS (Dataverse) table to F&O, so in my F&O right now is still empty.

    Is something wrong in my custom entity ?

    Thanks,

  • Tony zhong Profile Picture
    903 on at

    Hi,

    Additional information, about the custom entity, I tried to test it using DIXF, and it is imported successfully. It is even succeeded to synchronize with CDS table.

    I am then try again by create manually and directly from F&O menu (it is from Project > Journal > Expense) and it did synchronized as well to CDS.

    So it looks like the problem is from CDS cannot go in / create a record to F&O. But in Dual Write setup still showing no error.

    Any suggestion what should I look is highly appreciated.

    Thanks.

  • SBRO Profile Picture
    28 on at

    Maybe this will help: 

    https://ariste.info/en/2021/03/develop-custom-data-entities-dual-write/#integration-key

    I was trying to enter the company field as part of the integration key, but you need to enter the relationship that is defined in dataverse. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 545 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 408

#3
Adis Profile Picture

Adis 267 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans