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
Karol Zaorski 15Karol Zaorski 15 

Error when deploying Contract.Status StandardValueSet

Hi,

When I'm trying to deploy StandardValueSet (via ANT) for Contract.Status field I receive following error:
ContractStatusStandardValueSet1420Field: null is not a picklist

I believe that this is because Contract.Status picklist values have additinal parameter - Status Category, which is not passed via metadata API.

Did anyone have similar issues and resolved them in other way than by moving this change manually?

Regards,
Karol
Lokesh KumarLokesh Kumar
Karol Zaorski 15Karol Zaorski 15
Hi Lokesh,
thanks for response, but it doesnt solve my problem. I know about StandardValueSet being introduced in v38. The problem is strictly in the Contract.Status field and its values.
Derk SlagmanDerk Slagman
Hi Karol,

Did you ever solve this issue? I've got exact the same problem.

Regards,

Derk
Karol Zaorski 15Karol Zaorski 15
Hi Derk,

unfortunately I had to move it manually. 

Regards,
Karol
Chris Heath 22Chris Heath 22
Unfortunately, it looks like this is a bug - https://success.salesforce.com/ideaView?id=0873A000000TzsWQAS. The current "fix" is to manually set up the values.
Rennê Silva 6Rennê Silva 6

I was facing a similar problem to deploy this standard value set and I solved it by adding the groupingString tag to the xml. Here is my xml file working:

<?xml version="1.0" encoding="UTF-8"?>
<StandardValueSet xmlns="http://soap.sforce.com/2006/04/metadata">
    <sorted>false</sorted>
    <standardValue>
        <fullName>In Approval Process</fullName>
        <default>false</default>
        <label>In Approval Process</label>
        <groupingString>InApproval</groupingString>
    </standardValue>
    <standardValue>
        <fullName>Activated</fullName>
        <default>false</default>
        <label>Activated</label>
        <groupingString>Activated</groupingString>
    </standardValue>
    <standardValue>
        <fullName>Draft</fullName>
        <default>false</default>
        <label>Draft</label>
        <groupingString>Draft</groupingString>
    </standardValue>
    <standardValue>
        <fullName>Informações do Contrato</fullName>
        <default>false</default>
        <label>Informações do Contrato</label>
        <groupingString>Draft</groupingString>
    </standardValue>
    <standardValue>
        <fullName>Validação Cadastro</fullName>
        <default>false</default>
        <label>Validação Cadastro</label>
        <groupingString>Draft</groupingString>
    </standardValue>
    <standardValue>
        <fullName>Em Assinatura</fullName>
        <default>false</default>
        <label>Em Assinatura</label>
        <groupingString>InApproval</groupingString>
    </standardValue>
    <standardValue>
        <fullName>Contrato Assinado</fullName>
        <default>false</default>
        <label>Contrato Assinado</label>
        <groupingString>Activated</groupingString>
    </standardValue>
    <standardValue>
        <fullName>Contrato Cadastrado</fullName>
        <default>false</default>
        <label>Contrato Cadastrado</label>
        <groupingString>Activated</groupingString>
    </standardValue>
    <standardValue>
        <fullName>Cancelado</fullName>
        <default>false</default>
        <label>Cancelado</label>
        <groupingString>Draft</groupingString>
    </standardValue>
</StandardValueSet>