Skip to main content
SFDC Developers
DevOps

Property 'picklist' not valid

Vinay Vernekar · · 1 min read

Similar to the issue posted here while deployment, I faced another identical issue due to deprecated API tags. This time we get following error:

Property 'picklist' not valid in version 45.0

This was happening because tag was deprecated in API 39.0. Solution is to replace old tags with new format.

Old Format:

<fields>
	<fullName>Status</fullName>
	<externalId>false</externalId>
	<label>Status</label>
	<picklist>
		<picklistValues>
			<fullName>In Progress</fullName>
			<default>false</default>
		</picklistValues>
		<picklistValues>
			<fullName>Completed</fullName>
			<default>false</default>
		</picklistValues>
		<restrictedPicklist>true</restrictedPicklist>
		<sorted>false</sorted>
	</picklist>
	<required>false</required>
	<trackTrending>false</trackTrending>
	<type>Picklist</type>
</fields>

New Format:

<fields>
	<fullName>Status</fullName>
	<externalId>false</externalId>
	<label>Status</label>
	<type>Picklist</type>
	<valueSet>
		<restricted>true</restricted>
		<valueSetDefinition>
			<sorted>false</sorted>
				<value>
					<fullName>In Progress</fullName>
					<default>false</default>
					<label>In Progress</label>
				</value>
				<value>
					<fullName>Completed</fullName>
					<default>false</default>
					<label>In Progress</label>
				</value>
		</valueSetDefinition>
	</valueSet>
</fields>

Share this article

Vinay Vernekar

Vinay Vernekar

Salesforce Developer & Founder

Vinay is a seasoned Salesforce developer with over a decade of experience building enterprise solutions on the Salesforce platform. He founded SFDCDevelopers.com to share practical tutorials, best practices, and career guidance with the global Salesforce community.

Comments

Loading comments...

Leave a Comment

Trending Now