Skip to main content

Notifications

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 ?

  • 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,074 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,900 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans