2

at the moment I'm working on a project where Salesforce DX is used. There I have a problem when I try to add the item "Messe" to the Opportunity LeadSource picklist.

<standardValue>
    <fullName>Convention</fullName>
    <default>false</default>
    <label>Messe</label>
</standardValue>

I can add this without any problems on my Scratch Org and also can pull the changes. But if I try to push it to a new Scratch I receive the following error:

force-app/main/default/standardValueSets/LeadSource.standardValueSet-meta.xml                       
Duplicate label: Messe

Thanks in advance.

2
  • Go through this article, it seems related to your issue : help.salesforce.com/…
    – MIX DML
    Apr 17, 2018 at 12:02
  • 1
    Thanks for your quick reponse. Unfortunately the arcticle couldnt´'t help me with my problem. Apr 17, 2018 at 12:23

1 Answer 1

3

Seems like you are trying to deploy a picklist with a label that is either already deployed in the environment or is being loaded in the same deploy.

Since its just a label and not the Api name of the value, you may think that there is no problem if you repeat it, but Salesforce doesnt let you duplicate neither the Api value nor the label.

You will need to change the label -maybe something like "Messe." could work for you, but it looks a little dirty- or use the other picklist value.

3
  • 2
    It got it working by manually adding a blank behind "Messe". Now it looks like this: "Messe ". It is not the perfect solution, but for the moment it will work. Hopefully we can bypass this error with package installs. Thanks for you advice. Apr 17, 2018 at 13:55
  • @PhilippConrad this is a weird workaround but it works.
    – sfdx
    Jul 10, 2018 at 23:33
  • I see so after you deploy you can delete the dirty label?
    – compski
    Apr 1, 2021 at 2:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .