0

I'm trying to deploy the admin profile from ant successfully.

My package.xml is such as :

<types>
    <members>Admin</members>
    <name>Profile</name>

`

I am deploying it to the sandbox from production but getting error :

 profiles/Admin.profile -- Error: Unknown user permission: AIViewInsightObjects
3
  • Probably sandbox has some settings enabled that enables AIViewInsightObjects to Salesforce. You may have to remove it from package xml for deployment, that is a workaround. Roght solution would be to sync that feature in sandbox as well as production.
    – Raul
    May 19 at 10:12
  • 1
    BTW, probably worth considering moving from Ant to sfdx since Ant is no longer being actively developed and maintained.
    – Phil W
    May 19 at 10:45
  • Thank Raul and Phil for replying and as per workaround I removed those permissions from the package. May 19 at 17:35
2

As mentioned in this Salesforce known issue, these kinds of errors are standard deployment errors during deployment. In general, these errors are returned when you try to deploy permissions that don’t exist in the destination organization.

Workaround : Remove references to the user permissions from the profile in source Org or as Raul mentioned sync that feature in destination Org.

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.