Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Error in unify entity contact from Dynamics 365 Common Data Service

Posted on by 5

When I try to unify the contact entity from Common Data Service Dynamics 365 is showed the error below.

"The primary key 'contactid' of entity 'contact' in data source 'D365CustSvc' should be a string data type"

Can someone help me ?

  • Manonmani V S Profile Picture
    Manonmani V S 15 User Group Leader on at
    RE: Error in unify entity contact from Dynamics 365 Common Data Service

    Agreed to Halen. Select Import Data>Common Data Service connector would help.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error in unify entity contact from Dynamics 365 Common Data Service

    Hi Maurilo,

    By going the Import Data route and bringing in your D365 contact entity data through the Odata connector, you should be able to overcome this issue.

    You can paste this in the advanced editor:

    let
      Source = OData.Feed("https://*your crm*.api.crm4.dynamics.com/api/data/v9.1/"null, [Implementation = "2.0"]),
      Navigation = Source{[Name = "contacts", Signature = "table"]}[Data],
    in
    Source
    Let me know if this helps at all.
    Happy mapping, matching and merging!
  • Suggested answer
    RE: Error in unify entity contact from Dynamics 365 Common Data Service

    Hello Maurillio,

    I would like to inform you that this is a known issue and is going to fix in upcoming releases. You won't be able to change the data type for contactId as this is disabled. There is a workaround which you can try here - create the Data Source using Import Data option and check if it helps in completing the setup.

  • Suggested answer
    smehta Profile Picture
    smehta 100 on at
    RE: Error in unify entity contact from Dynamics 365 Common Data Service

    Hello, 

    As far as I know from my own experiences, the field that you select as the primary key in the “Map” stage needs to be in a string/text format in Customer Insights. So, if yours is an integer or another datatype, you will have to transform that column to a string/text format. This is a system requirement. Hope this helps. 

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans