How to deploy more than one sharing rule in one deployment?

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?

Answer

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.

Attribution
Source : Link , Question Author : Shumon Saha , Answer Author : Robin De Bondt

Leave a Comment