This problem analyzer helps to resolve issues with objects that have
picklists where a
picklist is not referenced in
What triggers this problem analyzer?
This problem analyzer is triggered if you have an object with a
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.