Check out the latest features available in Dynamics 365 for Customer Engagement, including LinkedIn Connect, Voice of the Customer and Universal Resource Scheduling.
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants.Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements.
ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
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?
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
Are you sure your logged in current user is having appropriate security roles to update records in those entities ?
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.
"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.
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?
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,
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!
Business Applications communities