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)

Updating certain entities throws error about not being able to update

(0) ShareShare
ReportReport
Posted on by

Hello, I am making a program that updates all chosen records from a large pool of entities. Everything works, except for certain entities are giving me an error: System.ServiceModel.FaultException1: the entity cannot be updated.  I've tried to look for a property such as "Attribute.IsValidForUpdate" but there doesn't seem to be one for Entities. Does anyone have any suggestions?

Thanks

*This post is locked for comments

I have the same question (0)
  • Radu Chiribelea Profile Picture
    6,667 on at

    Hello,

    Could you please provide a list of the entities you are trying to update? (Especially the out of the box ones)

    Also, what fields are you trying to update? Make sure you aren't updating any technical fields

    Regards,

    Radu

  • Suggested answer
    PranavShroti Profile Picture
    4,510 on at

    Are you sure your logged in current user is having appropriate security roles to update records in those entities ?

  • Suggested answer
    Kalpavruksh D365 CoE Profile Picture
    2,545 on at

    Hi,

    Please check the user role with which you are trying to update the record. check if the attribute you are trying to update is not a system attribute which cannot be updated. Check if the type casting is done appropriately. Please check the link which talks about deprecated messages: docs.microsoft.com/.../dn932124(v=crm.8)

    If found useful, please mark this answer as verified.

  • Verified answer
    Daniel Wikell Profile Picture
    2,360 on at

    Hi

    "The entity cannot be updated" - you can also see this message if you are trying to update an entity that is in a read only state such as an Invoice or Case that has been closed or a Lead that has been qualified etc.

    In this case you want to check the statecode and statuscode attributes and make sure that the entity you are trying to update is not in an inactive state.

  • Community Member Profile Picture
    on at

    There are many entities throwing this error, but for example. Just now I tried updating a entity and this error was thrown: System.ServiceModel.FaultException`1: 'The 'Update' method does not support entities of type 'applicationfile'.' Is there a way to filter for ALL entities that do not support the 'update' method?

  • Suggested answer
    PranavShroti Profile Picture
    4,510 on at

    You may be trying to update an intersect entity directly which is not allowed, or perhaps a child entity without having any parent. please check.

    Hope this helps,

  • Community Member Profile Picture
    on at

    This was indeed the issue. I am still very new to CRM and I didn't realize that some of the out of the box entities such as Case had a statecode I had to check. I was able to Check its State, and if closed I opened it up, made the changes and then closed it again. Thanks for the help!

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