I'm trying to migrate new custom fields to a sandbox using the Salesforce Migration Tool (ANT). Two of the custom fields are picklist fields. And these two fields are causing the error: Error: Property 'picklist' not valid in version 39.0
1 Answer
I think from 37 Api ver picklists are replaced with Valuesets in metadata definitions and it causes an error when You try to deploy 'old' metadata with higher Api Version. To get rid of this error, change your metadata file Api Version in Your package.xml file to 36.0 .
<version>36.0</version>
Another option is to export objects from Your sandbox using connection with Api version 39.0, then the objects will have updated metadata definitions and You will be able to deploy them to new sandbox using 39.0 version API.