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, ...
Suggested Answer

Dual write error

(0) ShareShare
ReportReport
Posted on by 3,851

Hi,

I had created entity with 2 fields,

i am trying to configure the dual write for that entity getting the below error.

"poject validation failed. SourceEntitySchema: Sample types doesn't have primary company field set and DestinationEntitySchema: cr165_sampletypeses has a primaryCompanyField set to cr165_companyid.cdm_companycode. 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".

How we can solve this.

Regards,

Veer

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    moved to the d365 forum

  • Suggested answer
    D365FnOConsultant Profile Picture
    Microsoft Employee on at

    Veer,

    I have seen this error for multiple times before and was fixed by the Microsoft Engineering team by correcting the mapping. You may want to open a support ticket with MS to troubleshoot and fix this as it needs some thorough investigation from FnO along with CRM. Also, please take a look at docs.microsoft.com/.../define-alternate-keys-reference-records before opening a ticket.

    Thanks

  • veeru ogu Profile Picture
    3,851 on at

    For each and every  custom entity we can't create a support ticket, is there any standard way to  give mapping and adding integration key

  • rah_barheyan Profile Picture
    30 on at

    Hi Veer,

    Did you mange to figure out what to do for this? I am experiencing the same issue.

    It's trying to say to fix up the Legal Entity to cdm_company. but not sure how's that supposed to be done.

    Cheers,

    Rah

  • rah_barheyan Profile Picture
    30 on at

    For anyone wondering I managed to solve the issue that I was facing.

    In the Power Platform where created the custom entity create a lookup field to cdm_company if you haven't already.

    In the key section, add a key with both cdm_company and any other keys that might be required from F&O.

    adding the key field automatically adds integration key in the Dual Write page setup.

    That way the Data Area Id of the F&O entity will match with Power Platform cdm_company lookup field of the custom entity.

    Hope this helps.

    Rah

  • Charan Raju C R Profile Picture
    7 Moderator on at

    rah_barheyan

    Thank you so much. Your solution worked for me.

  • Heba Ahmeida Profile Picture
    20 on at

    Thank you for this question.

    Please where can I find  "Key" tab?

  • Heba Ahmeida Profile Picture
    20 on at

    Thank you for this solution.

    Please where can I find ?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 495 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 432 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 366

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans