Skip to content

sharing operation already in progress

Detection

  • String: sharing operation already in progress

Examples

  • Error Account sharing operation already in progress

Resolution

Salesforce refuses a sharing rule change while it recalculates sharing.
- Run the job again once the sharing recalculation of the target org is done
- Deliver sharing rule changes in their own User Story, so they are not deployed with every change
- If sharing rules are maintained in the org, list them in manifest/package-no-overwrite.xml (https://sfdx-hardis.cloudity.com/salesforce-devops-config-overwrite/)
- In a scratch org, add DeferSharingCalc to the features of project-scratch-def.json

Comments