This article discusses an error that occurs when trying to update a record in Dataverse or Dynamics 365. The error message states that the EntityState must be set to null, Created, or Changed. The error occurs when the OrganizationServiceContext tries to update an entity that has not been marked as modified. The article provides two solutions to resolve this error: using the UpdateObject method followed by SaveChanges, or creating a new Entity object for update. Sample code is provided for both solutions.
Login now to access my digest by 365.Training