SAP Knowledge Base Article - Public

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


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:'000000000000000000000000000000')\")",

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


SAP Cloud for Customer

Reproducing the Issue

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


  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.


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.


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

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


SAP Cloud for Customer core applications 2402