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

My package.xml is such as :



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

 profiles/Admin.profile -- Error: Unknown user permission: AIViewInsightObjects
  • 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, 2021 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, 2021 at 10:45
  • Thank Raul and Phil for replying and as per workaround I removed those permissions from the package. May 19, 2021 at 17:35

1 Answer 1


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .