Skip to content

Not valid sharing model

Detection

Examples

  • Error Invoice__c ReadWrite is not a valid sharing model for Invoice__c when Account sharing model is Private

Resolution

The sharing models of {1} and {4} are not compatible in the target org.
- Use compatible sharing models for {1} and {4}, in their object files: for example, replace <sharingModel>ReadWrite</sharingModel> by <sharingModel>Private</sharingModel> in {3}.object-meta.xml
- Deploy {1} and {4} together: With delta deployments, an item that did not change in the Pull Request is not deployed: change it in the Pull Request, or turn on useDeltaDeploymentWithDependencies (https://sfdx-hardis.cloudity.com/salesforce-devops-config-delta-deployment/)

Comments