Skip to content

A sharing rule may be useless

Detection

  • String: Required field is missing: sharingCriteriaRules

Examples

  • Error Account Required field is missing: sharingCriteriaRules

Resolution

This sharing rules file has no rule: it was probably retrieved empty.
- Remove the empty items with sf hardis:project:clean:emptyitems
- Add emptyItems to autoCleanTypes in .sfdx-hardis.yml, so sfdx-hardis removes them each time a User Story is saved (https://sfdx-hardis.cloudity.com/salesforce-devops-config-cleaning/)

Comments