-1

I am trying to deploy Permission sets to Sandbox via Metadata API and I am getting the following error:

permissionsets/Defer_Rules.permissionset -- Error: Permission DeferCalculations depends on permission(s): ViewRoles

I verified System Permissions for all profiles on both orgs and they are the same. I could not figure out the reason behind.

  • does your permission set include granting the user the ViewRoles permission? – Mark Pond Jan 18 '18 at 22:40
  • sometimes these errors are VXX+1 to VXX issues wherein SFDC added new permissions into a preview sandbox but said permissions don't exist yet in PROD – cropredy Jan 19 '18 at 0:02
  • @MarkPond This permission set is created to Defer Sharing Rules and I do not know what was changed as part of this change. All the information I have is deployment Zip file which is failing and does not specify a line number on the metadata file. Also, the migration is from Sandbox to Sandbox and Permission set exists on both sandboxes. – smhvrtyj Jan 19 '18 at 13:58
0

So, when you enable the DeferCalculations, you also need to enable/check ViewRoles in the permission set: 'src/permissionsets/Defer_Rules.permissionset'

Make sure its so, in both the source sandbox and target

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.