QuestionQ58

VerifiedData Governance and Integration

Universal Containers has recently started a project to integrate its ERP with Salesforce. A requirement calls for a daily batch process that creates and updates order and order product information. Using the corporate ETL tool, the development team created two processes to create these records through Bulk API. Testing worked well in the development environment, but in production, some order product records were not updated and displayed the error UNABLE_TO_LOCK_ROW: unable to obtain exclusive access to this record. There is one Process Builder on the Order Product object and no asynchronous process.

Which two steps should a Solution Architect recommend to prevent this error?

Choose two
Explanation

UNABLE_TO_LOCK_ROW occurs when concurrent transactions attempt to update records that require incompatible locks. Retrying rejected records allows transient lock contention to clear. Pre-sorting child Order Product records by Account and Order reduces the likelihood that parallel Bulk API batches simultaneously contend for the same parent records.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!