SAP Knowledge Base Article - Public

3449448 - Error Using Odata: "Locking object not possible; object locked by USER X"

Symptom

You are trying to update an object using Odata, and you see the following error message:

"message": "Sending data to C4c has failed",
"error": "HTTPError(\"500 Server Error: Internal Server Error for url: https://my000000.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/Collection('000000000000000000000000000000')\")",

"response": "Locking object not possible; object locked by USER X)",
"status_code": 500

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Try to update an object using Odata.
  2. Error message is displayed in the Odata Monitor.

Cause

  1. Customer is using an Object ID that does not exist in C4C system.
  2. This error occurs when more than one user is editing the same object simultaneously. Notice that If 2 simultaneous updates are given or if the object is being used in another application this will happen. Nevertheless, it will not stop customer from updating the object.

Resolution

In such cases of duplicated editing two simultaneous updates are given and error is thrown. This happens since there is security mechanism that prevents edits to be erased/overwritten in such scenarios.

Keywords

Sending; data; failed; 500; Server; Error; Locking; object; 

, KBA , LOD-CRM-INT-API , OData API (C4C Only) , How To

Product

SAP Cloud for Customer core applications 2402