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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Problem updating a record due OData patch request

(0) ShareShare
ReportReport
Posted on by 20

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!

I have the same question (0)
  • Suggested answer
    Luke Sha Profile Picture
    on at

    Not sure how this custom entity is designed. Make sure each data source is editable. 

    Try to import/update data by using standard DMF,  do you meet same error?

  • Rodrigo Gomes Profile Picture
    20 on at

    Hi Luke,

    I recreated the data entity from scratch and the new entity is working. I'm still not sure what I did wrong at the first time, but the problem seems to be gone.

    Thanks for replying!

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans