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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Error in unify entity contact from Dynamics 365 Common Data Service

(0) ShareShare
ReportReport
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 ?

I have the same question (0)
  • Suggested answer
    smehta Profile Picture
    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. 

  • Suggested answer
    Satish Tiwari - CRM Profile Picture
    on at
    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.

  • Community Member Profile Picture
    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!
  • Manonmani V S Profile Picture
    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.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 179 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 110

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 61 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans