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.
1sfdx force:source:push
2ERROR running force:source:push: The configured apiVersion 48.0 is not supported for this org. The max apiVersion is 47.0

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 config:list to determine if the apiVersion is overridden.

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

sfdx config:set apiVersion=47.0

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

sfdx 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:

1sfdx plugins:install salesforcedx@latest
2sfdx config:set apiVersion= -g
Available in: All Editions