I have a GlobalValueSet in my managed package, and in a subscriber org I've added values to it. e.g. A 'Country' global picklist in the managed package, then in a subscriber org I add the countries I care about.

I'm trying to migrate those changes from one subscriber sandbox to another, however I'm getting an error:

[sf:deploy] Component Failures:

[sf:deploy] 1. globalValueSets/MY_NAMESPACE__Country.globalValueSet -- Error: Cannot modify managed object: entity=SharedPicklistDefinition, component=null, state=MANAGED_INSTALLED - picklists

Is there a way to migrate the values of a global picklist to another org, without having to manually create them in the target org?


Using the Salesforce Migration Tool, you can put a global picklist to the build file like this (the API name has underscores between words but no suffix):

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
  • I take it you're referring to the ANT Migration tool? – Adrian Larson Feb 6 '17 at 21:48
  • Yes, I meant the ANT migration tool. Thank you for the clarifying question. – ASturt Feb 6 '17 at 21:52
  • 1
    This doesn't seem to work for Global Picklists that are part of managed packages. – abd3721 Apr 3 '18 at 23:52

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.