Hi all,
I have developed an integration from our legacy Projects system which uploads (creates) those lecacy projects into D365 F&O Projects entities via Odata. This works well, until the point where the integration needs to update a Project in F&O, updating 1 field in particular: ProjectStage. we get an error from the OData (PATCH request) call:
{ "error": { "code": "", "message": "An error has occurred.", "innererror": { "message": "update not allowed for field 'ProjectStage'", "type": "Microsoft.Dynamics.Platform.Integration.Services.OData.ODataSecurityException", "stacktrace": " at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateProcessor.UpdateEntity_Save(ChangeOperationContext context, ChangeInfo changeInfo)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.b__1_0(ChangeOperationContext operationContext)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.ExecuteActionsInCompanyContext(IEnumerable`1 actionList, ChangeOperationContext operationContext)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.TrySave(ChangeOperationContext operationContext)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateManager.SaveChanges()\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.AxODataDelegatingHandler.d__3.MoveNext()" } } }
This is strange because you can change this field via the form in the UI, but it's not allowing this to change via OData. Does anyone know why this is and how to resolve this?