function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AK-2AK-2 

Error in Profile migration through Ant

I am trying to migrate profile settings using Ant and seeing this error "Unknown user permission: CreateCustomizeDashboards". I am using API 31.0 and it seems like this is a new issue.

It almost seems like the only way around is to remove this permission and then migrate without it.

Anybody else running into this?
Best Answer chosen by AK-2
jhoskins.CRMifiedjhoskins.CRMified
Hi -- You need to Turn On Enhanced Sharing for Reports and Dashboards.
https://help.salesforce.com/HTViewHelpDoc?id=analytics_sharing_enable.htm

All Answers

ShashankShashank (Salesforce Developers) 
Hi,

This could be version specific. Can you try using an older API version like 30.0 or earlier and check if you still have the issue?

Thanks,
Shashank
jhoskins.CRMifiedjhoskins.CRMified
Hi -- You need to Turn On Enhanced Sharing for Reports and Dashboards.
https://help.salesforce.com/HTViewHelpDoc?id=analytics_sharing_enable.htm
This was selected as the best answer
Andrew B. DavisAndrew B. Davis
FYI, this corresponds to the metadata item:
OrgPreferenceSettings > AnalyticsSharingEnable

If you're creating scratch orgs your setting should include:
"settings": {
  "orgPreferenceSettings": {
    "analyticsSharingEnable": true
  }
}