Skip to main content
All CollectionsTroubleshootingSalesforce validation errors
Resolving validation errors - "<xxx> isn't a valid value for Conditional Formatting."
Resolving validation errors - "<xxx> isn't a valid value for Conditional Formatting."

Cause and solution to this Salesforce validation error

Mateusz Kochanowicz avatar
Written by Mateusz Kochanowicz
Updated over 2 weeks ago

Error overview

You may run into this Salesforce validation error when deploying a new or changed FlexiPage (Lightning page) metadata type.

An example of the error would look as below:
"<xxx> isn't a valid value for Conditional Formatting"

<xxx> in this context is referring to new changes made to the FlexiPage, and specifically PolicyCurrency1 value.

Explanation of the error

When using API version 62 for your validation in Gearset, Salesforce is likely to store the component(s) that failed the validation under UI format specification set metadata type (this type was introduced with the release of API v 62).

Resolution

If the components that failed the validation (e.g. PolicyCurrency1 in our example) are new in the source and don't exist in the target org, try the following:

Workaround 1

  • Deploy both FlexiPage and UI format specification set metadata components containing your formatting ruleset - as part of the same deployment.
    ​
    ​Note: This resolution should work. However, if for any reason it doesn't, please try below workaround.

Workaround 2

  • First, deploy the UI format specification set metadata components referenced in your FlexiPage's XML and in the error message.

  • Once done, deploy the FlexiPage itself as part of a separate deployment.

Disclaimer: This error is returned by Salesforce directly, rather than Gearset. Even so, we offer guidance based on our combined experience with the Metadata API. Where possible, we try to help guide you to fix or avoid this error. In the case that this isn't possible, we may need to direct you to Salesforce support for further clarification.

Did this answer your question?