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
Adding to Guido's suggestion, run your code under the context of a user who has the maximum rights on all your CRM entities.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156