Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Entity.IsReadOnly

(0) ShareShare
ReportReport
Posted on by

Hello, I've created an ETL app which is essentially a console app that uses the orgservice to make backend data inserts/updates. I'm currently looping through a large set of entities, and performing an update on each entity. I'm getting the following error when I update 1 of the entities:

"The object cannot be updated because it is read only"

I want to be able to identify this state ahead of time, in order to avoid exceptions. My ETL program threw the exception above for an entity. However, a debug watch showed that the entity's read-only property had a value of false, appearing to indicate that the entity was *not* read only.

So is the IsReadOnly property of the entity not reliable or is it used to indicate something else?

*This post is locked for comments

  • Suggested answer
    Karth Profile Picture
    on at
    RE: Entity.IsReadOnly

    Adding to Guido's suggestion, run your code under the context of a user who has the maximum rights on all your CRM entities.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans