Skip to content

Custom permission not found

Detection

  • RegExp: Error (.*) In field: customPermission - no CustomPermission named (.*) found

Examples

  • Error Admin In field: customPermission - no CustomPermission named Bypass_Validation found

Resolution

{1} grants custom permission {2}, which is not in the target org.
- Deploy {2}: retrieve it from your org with the Metadata Retriever of VS Code, commit it and save your User Story: sfdx-hardis adds it to manifest/package.xml
- 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/)
- Or remove the <customPermissions> block of {2} from {1}

Comments