Skip to content

Experience component attribute not valid

Detection

  • RegExp: Error (.*) We couldn't validate (\S+) in (\S+\.json) for component (\S+)

Examples

  • Error Partners1 We couldn't validate componentAttributes in views/home.json for component 6c4e5a1b. Error: attribute [navigationMenuEditorRefresh]: invalid value

Resolution

Property {2} of component {4} in {3} is not accepted by the target org, often because it points to an item of the source org (navigation menu, record, page).
- If the value differs between orgs, write the value of each org with a text replacement rule (https://sfdx-hardis.cloudity.com/salesforce-devops-config-replacement-rules/)
- Or remove the line of {2} from {3}, deploy, then set the value again in Experience Builder of each org
- Check that the items the component uses are deployed with the site: With delta deployments, an item that did not change in the Pull Request is not deployed: change it in the Pull Request, or turn on useDeltaDeploymentWithDependencies (https://sfdx-hardis.cloudity.com/salesforce-devops-config-delta-deployment/)

Comments