web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

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

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans