Loading

Error When Deploying a Change Set: The field apiVersion Can't Be Set to an Unsupported Version.

Fecha de publicación: Jan 26, 2026
Descripción

When migrating Flows or Apex from a preview Sandbox to other organizations, the error "The field apiVersion can't be 'xx'" may occur due to version differences between the organizations.

The apiVersion field on a Flow or Apex class identifies the Salesforce platform release version the component was built on. When the source org (such as a preview sandbox) runs a newer release than the destination org, the destination org does not recognize the newer version number and rejects the deployment.

Solución

Resolution:

The release fails because the API version of the component created in the source organization does not exist in the destination organization when the source Salesforce Platform version is newer than the destination version.

Take one of the following actions: 

  1. Wait until the versions of the organizations are the same

    • Re-execute the release after the versions of the source and destination organizations match.

  2. Downgrade the API version and re-upload

    • In the source organization, downgrade the API version of the target component (Flow or Apex) by one from the number displayed in the error message. (Example: If the error says "The field apiVersion can't be '62'", change it to "61".)

    • After modification, create a new change set, re-upload it, and attempt the release again.

Recursos adicionales

See also:

Version error when you upload a Change Set

Número del artículo de conocimiento

005131458

 
Cargando
Salesforce Help | Article