I am trying to deploy picklist value My Picklist Value
from Dev org to QA environment but getting error in Jenkins validation:
[RecordType Activity.MyRecordType] Picklist value: A %2F B in picklist: My_Field__c not found
A / B is new value. In my PR the field is there and the field My_Field__c
also have the new value.
Does anyone have any idea?
Hi Kundan,
1. Query the CustomField directly in the QA org (via Workbench or Setup > Object Manager) before running Jenkins validation — confirm the new value actually exists in QA's live field metadata already, not just in your PR. If a prior partial deployment left QA's field out of sync, RecordType validation will fail against QA's actual current state, independent of what's in your package. -- The new picklist field value is not in the target org as that should be created on PR deployment.
2. Check deployment order/bundling in your Jenkins package — if CustomField and RecordType are deployed as separate steps/packages (not together in one transaction), and the field step failed or was skipped silently, the RecordType step would hit exactly this error. -- As I analyzed Console Output in Jenkins, components are deployed in single step. I am not aware of any recent change in pipeline script.
3. Byte-compare the field's XML on disk vs. what Jenkins actually sends — CI pipelines sometimes apply line-ending conversion, encoding normalization, or a source-format conversion step that can subtly alter special characters without you noticing in a diff view. -- I have verified for special characters and did not find any surprise.
4. Try a manual deploy via Workbench (bypass Jenkins entirely) with the exact same package to isolate whether this is a Jenkins/CI-specific issue or a genuine metadata problem. -- We can not deploy manually. The validation should run successul then we run validation build. Similar is followed in higher orgs.