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 :
Microsoft Dynamics CRM (Archived)

Error while inserting record using SDK /API - "Invalid type for entity id value"

(0) ShareShare
ReportReport
Posted on by 15

Hello,

I am facing the issue when I am inserting data using SDK. I am not sure where is the error. When I run the same code for a different object it was working fine but then I used it for another custom object I am receiving the above message. FYI, There is no workflow or any rules are present for that entity.

MS-CRM-ERROR.PNG

There is no proper description is written for which field I am receiving this above error.

Let me know if you need any further things to look into this further.

Thanks in advance,

Ajay.

*This post is locked for comments

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Error while inserting record using SDK /API - "Invalid type for entity id value"

    Hello,

    Please provide code you use.

  • AjayD Profile Picture
    15 on at
    RE: Error while inserting record using SDK /API - "Invalid type for entity id value"

    Hi,

    Please check the attached image

    MS-CRM-CODE.PNG

    Thanks,

    Ajay.

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Error while inserting record using SDK /API - "Invalid type for entity id value"

    Based on your error I can assume that you pass recordid in the wrong way. Inside entity population I don't see Guid type and primary field id is a Guid, not string. I believe that's where your error comes from.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans