Skip to content

API Version error

Detection

  • RegExp: Error (.*) The (.*) apiVersion can't be "([0-9]+)"

Examples

  • Error Account_Record_Page The FlexiPage apiVersion can't be "66"

Resolution

{1} was saved in an org that already runs the next Salesforce release (API version {3}), that the target org does not know yet.
- Lower <apiVersion>{3}.0</apiVersion> in the file of {1} to the API version of the target org
- Keep sourceApiVersion of sfdx-project.json at the version of the production org: sfdx-hardis deploys with the lowest of this version and the one of the target org
- The built-in replacement rules remove the XML elements a target org does not know yet: if one is missing, see https://sfdx-hardis.cloudity.com/salesforce-devops-config-replacement-rules-builtin/

Comments