SAP Knowledge Base Article - Public

1940684 - Error Message "Locking Failed; Organizational Center XYZ is Locked by SAP_SYSTEM" During Replication

Symptom

During the replication of cost centers, you get the error message "Locking failed; organizational center XYZ is locked by SAP_SYSTEM" (where XYZ stands for an actual organizational center ID).

Environment

SAP Business ByDesign

Reproducing the Issue

  1. Go to the Master Data Replication work center.
  2. Under Import view, select the Cost Centers.
  3. Select the required Remote Cost Center ID.
  4. Press Replicate All button.

Cause

You got the error message because pending Employee Replication Request is still running, which locks the Organization Center object for editing.

  1. Go to the Application and User Management work center.
  2. Go to the Background Jobs view.
  3. Select All Running Jobs and click the Go button.
  4. You will find at least one Employee Master Data Replication Request Processing Run with status Running.

System users lock the referred organizational center because a background job of the employee replication performs updates in the organizational assignment of the employees. Hence, if the organization center is locked by another replication request like Employee Replication, it is not possible to start the Cost Center replication in parallel.

The opposite can also be true: if a Cost Center replication is running, an Employee Replication run cannot be trigger because both execute changes to organizational centers. One will not be able to lock the object for editing while the same is already locked by the other.

Resolution

You can start the Cost Center replication once the pending Employee Replication is finished.

Keywords

 Locking Failed, SAP_SYSTEM, Replication , KBA , AP-HMD-RPL , HCM-Master Data Replication , How To

Product

SAP Business ByDesign all versions