If I keep two criteria based sharing rules in Account.sharingRules XML file, there is a deployment error in start line of the the second rule: sharing operation already in progress.

How do we deploy more than one sharing rule in one deployment?

  • Perhaps sounds like a Salesforce issue? Organizations deploying a large number of sharing rule changes would have problems if this affects all organizations. – Shumon Saha Jul 16 '15 at 12:40
  • Do you need to make the deployment more than once? – Renato Oliveira May 26 '16 at 14:11

You can ask support to enable a feature called Defer Sharing Calculations. That way, you can suspend sharing rule calculations to not have them run immediately after you have deployed them, but at a time that suits you better.

| improve this answer | |
  • @dphil Did you manage to deploy this way? Actually kinda curious, never used it myself. – Robin De Bondt May 27 '16 at 12:26
  • I'll hand you the bounty anyways... but the client decided to just manually create it instead so honestly I don't know. – dphil May 31 '16 at 19:32
  • 3
    To confirm, enabling Defer Sharing Calculations solved this problem for me. – Rob Feb 28 '17 at 8:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.