Skip to main content
All CollectionsProblem analyzers
Remove picklists from RecordType
Remove picklists from RecordType
Alex Walter avatar
Written by Alex Walter
Updated over 2 years ago

This problem analyzer helps to resolve issues with objects that have recordTypes for picklists where a picklist is not referenced in fields.

What triggers this problem analyzer?

This problem analyzer is triggered if you have an object with a picklist in recordTypes that has not been declared in fields. For example, in the recordType "RecordTypeWithMissingReference", the picklistValue "UnreferencedPicklist" (unlike "PicklistField__c") hasn't been declared in the fields in the following object:

This problem often arises because a picklist field has been deleted on the source side, but the record type has not been updated.

What problem is it solving?

Salesforce needs to have the picklist referenced in recordTypes to be declared in fields. Otherwise, it will fail validation and deployment with a message such as Global value set 'XXXX' in record type 'YYYY' on the entity 'ZZZZ' cannot be resolved.

How does it work?

Gearset will offer the option to remove the unreferenced picklist in the deployment from recordTypes. This will allow the validation or deployment to succeed.

Did this answer your question?