I have the following code:

<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <label>Lead Property</label>

                <label>Some Label</label>




we are updating only the "fullName" in the picklist value. so when deploying that we get a "duplicate label" error because it thinks we have two picklist values with the same name

Our current fix is to manually delete the picklist value and then push in the metadata file above. However we would like to eliminate the manual step above.

One thing we can maybe do is to add a pre-destructive xml file and remove the field and then push it in but the concern there is that if that field is in use elsewhere we run into dependency problems.

Any tips?


You must log in to answer this question.

Browse other questions tagged .