Hi guys!
I'm facing the error below when I try to update a record of a custom data entity through an PATCH OData request:
HTTP 400 Bad Request
Body:
{
"error": {
"code": "",
"message": "An error has occurred.",
"innererror": {
"message": "Write failed for table row of type 'xxx_InventMovementIntegrationEventEntity'. Infolog: Error: Error executing code: xxx_InventMovementIntegrationEventEntity table does not have method '__doUpdate'..",
"type": "Microsoft.Dynamics.Platform.Integration.Services.OData.AxODataWriteException",
"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()"
}
}
}
(The 'xxx' prefix of the data entity name is in fact a customer prefix. I hid it to preserve the customer identity)
I sucessfully tried this update approach once with the out-of-the-box Customer entity, wich suggests that there is something wrong on my data entity design that I can't find.
I also searched for related discussions or documentations about it but, so far, nothing.
Does anyone have any ideas about what may be causing this error?
Thanks!