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
Taha HaiderTaha Haider 

Getting error in deployment of profiles

Getting this error in deployment
"Error  force-app/main/default/profiles/Admin.profile-meta.xml             Unknown user permission: CanAccessCE"
Want to transfer all profiles from one org to another.
User-added image
AnudeepAnudeep (Salesforce Developers) 
Hi Harrison,

The "unknown user permission" type errors are either because of-
  • The version indicated in the package.XML doesn't support the feature, or
  • The source environment is on a newer API version than the target, and it's supported in the former and not the latter
I recommend editing your metadata to manually remove the reference to that specific profile permission before deployment

Also, try to make sure your source and target environment are on the same version whenever you plan to deploy.

Let me know if this helps, if it does, please mark this answer as best so that others facing the same issue will find this information useful. Thank you