Loading
Ongoing maintenance for Salesforce HelpRead More
PHP Vulnerability Monitoring Read More

Bulk Update of Work Order Line Items in a Flow Fails with a Record-Locked Error on the Parent Work Order

Publish Date: Oct 23, 2026
Description

Salesforce Field Service's managed package runs internal logic (parent rollup recalculation, Gantt/resource-scheduling logic) whenever a WOLI is updated. Updating multiple WOLIs under the same parent Work Order in one transaction causes lock contention on that parent — even with customer automation disabled, since this originates from the FSL managed package itself.

Resolution
  1. Avoid a single bulk "Update Records" element for the full WOLI collection — use a Loop and update individually/in smaller batches.
  2. Insert a Pause/screen element between batches to force a commit boundary where the Flow type allows it.
  3. Sequence any parent Work Order update separately from WOLI updates.
  4. Review Field Service Settings "Work Order Service Note Sync" and Status Roll-up settings — these increase lock aggressiveness.
  5. Only pass changed fields in the update payload, not the full record.
Knowledge Article Number

005460952

 
Loading
Salesforce Help | Article