Picklist sharing is not supported
Detection
- String:
Picklist sharing is not supported
Examples
Error Account.Type__c Picklist sharing is not supported
Resolution
You probably changed the type of a field.
- Make the change manually in the target org before the deployment
- The manual deployment action below reminds to do it in each org of the pipeline, with a checkbox in the Pull Request comments
Deployment action
A deployment action can solve this error. Create it on the Pull Request of the current branch:
sf hardis:project:action:create --agent --scope pr --pr-id current --when pre-deploy --type manual --label "Change the type of the field before the deployment" --instructions "1. In Setup, open Object Manager, the object of the field, then Fields & Relationships
2. Open the field, click Change Field Type and select the type it has in the sources
3. If it already has this type, there is nothing to do"
Documentation: https://sfdx-hardis.cloudity.com/salesforce-devops-work-on-user-story-deployment-actions-manual/