Newer Version Available

This content describes an older version of this product. View Latest

Error: API Version Mismatch

If you update the salesforcedx plug-in and try to push source from your local DX project to a scratch org, you see an API version error.

What happened?

Answer: Your locally configured apiVersion is greater than your org’s supported max apiVersion. To troubleshoot, run these commands:

  • Run sfdx force to check what salesforcedx plug-in version you have installed locally.
  • Run sfdx force:config:list to determine if the apiVersion is overridden.

To resolve the error for a specific project, set the apiVersion locally:

sfdx force:config:set apiVersion=47.0

To resolve the error for all Salesforce DX projects, set the apiVersion globally:

sfdx force:config:set apiVersion=47.0 -g

Remember, after you uninstall the pre-release version, update the CLI to the latest version and reset the global apiVersion:

Available in: All Editions