5

I am trying to deploy using ANT from one sandbox A to other sandbox B.

The profiles are failing on the deployment with following error.

system admin profile: unknown user permission: Managesandboxes
custom profile: unknown user permission: viewplatformevents

When I logged into both the sandboxes A & B, I could see the two system permissions from the error, exists in source A but not in target B.

Those permissions exist in prod as well and the source B is refreshed recently from prod.

Is this usual or what might cause these issues.

And if i migrate it to prod from our current target org B, will the existing permission in prod turn to false as it doesn't exist in B or its not effected as its not referenced anywhere.

  • Did you manage to solve this? We are still experiencing the issue. – Nielsm Aug 16 '17 at 14:50
  • We addressed the issue with some manual work didn't find a real solution when it occurred. – Anurag A Aug 16 '17 at 15:21
  • we also have a manual work around, problem is that half of our team forgets to do it :) – Nielsm Aug 17 '17 at 7:57
1

Most often when I see these "unknown user permission" type errors, it's because either

  1. The version indicated in the package.xml doesn't support the feature, or
  2. The source environment is on a newer API version than the target, and it's supported in the former and not the latter.
0

My source and target environment were on the same version so to solve similar issue I clicked "Match Production Licenses" on source and target. Please verify.

  • where did you see this "Match Production Licenses"? – Kiran Machhewar Aug 23 '17 at 20:45
  • Go to Setup->Company Profile->Company Information and at the top of the page you will find Match Production Licenses – dan Aug 25 '17 at 11:34

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.