Skip to main content

I am trying to deploy picklist value My Picklist Value from Dev org to QA environment but getting error in Jenkins validation:

 

My Picklist Value 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? 

 

#Custom Picklist  #Record Types

3 Antworten
  1. Heute 15:54

    Hi Varun, 

     

    Found it — you actually broke it by "fixing" it. This is a documented quirk of the Metadata API: RecordType picklistValues entries require certain special characters to be percent-encoded (like %2F for "/"), while the CustomField's own valueSet uses the literal character. These aren't meant to match visually character-for-character — Salesforce's RecordType XML format expects the encoded form. 

     

    So when you retrieved it as %2F and then manually replaced it with a literal "/", you introduced the actual mismatch. The original %2F was correct. 

     

    Fix: Revert the RecordType XML back to %2F (the encoded form) for that picklist value, while keeping the CustomField's valueSet with the literal "/" — don't try to make them textually identical, since Salesforce handles the encoding difference between these two metadata types internally. 

     

    Reference:

    https://trailblazer.salesforce.com/issues_view?id=a1p300000008YzPAAU

     

     

    Redeploy with %2F restored in the RecordType file and that should clear the validation error.

0/9000