SAP Knowledge Base Article - Public

2672341 - Error Locking Object Not Possible; Object Locked By USERID During Migration

Symptom

You are trying to migrate information to your system, but you are receiving the below error messages:

"Error detected in source record with key value XYZ, Is Ship-To Party Of, ABC" (XYZ represents the ID of the first business partner / ABC represents the ID of the second business partner)

"Locking object not possible; object locked by USERID (Name of the user)" (USERID represents the ID of the Business User)

Observation: This KBA will reference the migration of Business Partner Relationships, but the scenario is also observable in other migration objects, such as Opportunities.

Environment

  • SAP Hybris Cloud for Customer.
  • SAP Business ByDesign.

Reproducing the Issue

  1. Go to the Business Configuration work center, in Overview view.
  2. Search for Migration of Customers and open the activity.
  3. Click on Migrate business partner relationships using the migration tool.
  4. Upload the template and click on Execute Migration, then Step by Step.
  5. In step 3 (Simulation) receive the locking error messages.

Cause

The locking error occurs when a given record is repeated a lot throughout the migration template. If you add too many lines that need to lock the same object in order to use it, the tool might try to write at the same time on the same record, which causes the lock. It is the same logic in UI, if you are editing a record and another user tries to edit it too, this other user will get the locking message, stating that your user is editing the record.

Resolution

This error can be avoided by lowering the number of records (lines) in the migration template. For example, if you are using a template with 5.000 lines, divide it in two templates of 2.500 each and run the migration again.

Keywords

migration of business partner relationship, migration of opportunity, locking object not possible, locking error , KBA , SRD-CC-MIG , Migration , LOD-LE-MIG , LEAP Migration , Problem

Product

SAP Business ByDesign all versions ; SAP HYBRIS C4C CORE all versions