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 :
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

    Hello,

    Please provide code you use.

  • AjayD Profile Picture
    15 on at

    Hi,

    Please check the attached image

    MS-CRM-CODE.PNG

    Thanks,

    Ajay.

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans