I have the following metadata for my custom object
<fields>
<fullName>Meter_Type__c</fullName>
<externalId>false</externalId>
<label>Creative Type</label>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
<type>Picklist</type>
</fields>
When I try to deploy I get the following error:
Picklist attribute required on create
I'm using MavensMate, so I went ahead and open the custom object and modified the metadata to this:
<fields>
<fullName>Meter_Type__c</fullName>
<externalId>false</externalId>
<label>Creative Type</label>
<required>false</required>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
<type>Picklist</type>
</fields>
If I add the required = false
got the following error:
Picklist attribute required on create
Then I add required = true
got the following error:
<fields>
<fullName>Meter_Type__c</fullName>
<externalId>false</externalId>
<label>Creative Type</label>
<required>true</required>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
<type>Picklist</type>
</fields>
Can not specify 'required' for a CustomField of type Picklist
I have tried with both Eclipse & MavensMate to deploy to my sandbox but I could not go further stuck with this error, not sure how to resolve!
What solutions have other people used to get around this?