Skip to content

Invalid scope:Mine, not allowed

Detection

  • String: Invalid scope:Mine, not allowed

Examples

  • Error Account.My_Accounts Invalid scope:Mine, not allowed

Resolution

List views with scope Mine can not be deployed: replace Mine by Everything in the list view XML.
- sf hardis:project:clean:listviews does it for all list views (https://sfdx-hardis.cloudity.com/hardis/project/clean/listviews/)
- Add listViewsMine to autoCleanTypes in .sfdx-hardis.yml, so sfdx-hardis does it each time a User Story is saved, and sf hardis:org:fix:listviewmine sets Mine back in the org after the deployment (https://sfdx-hardis.cloudity.com/hardis/org/fix/listviewmine/)

Comments