sfdx-isv / territory-management-toolkit

The Territory Management Toolkit (TM-Tools) is a Salesforce CLI Plugin that provides tools for simplifying the migration of a Salesforce org from Territory Management (TM1) to Enterprise Territory Management (TM2).
BSD 3-Clause "New" or "Revised" License
8 stars 0 forks source link

Ensure that data load operations that use the Bulk API use serial mode #21

Open VivekMChawla opened 5 years ago

VivekMChawla commented 5 years ago

Per issue #20, execution of tmtools:tm2:load can fail on sharing rules load with the following row failure error:

UNABLE_TO_LOCK_ROW:unable to obtain exclusive access to this record

This type of lock-contention error can be caused by Bulk API loads not running in serial mode. This can be especially true for sharing rules data loads.

See The Salesforce Bulk API - Maximizing Parallelism and Throughput Performance When Integrating or Loading Large Data Volumes for additional detail about serial vs. parallel processing with Bulk API.