devops-center-feedback icon indicating copy to clipboard operation
devops-center-feedback copied to clipboard

Cannot deploy flow. Error: "The component is supported in Metadata API version ##.# and later. To deploy this flow, update the API version."

Open RealEvanPonter opened this issue 11 months ago • 2 comments

Describe the bug Attempting to deploy a flow (via promotion or sync) is failing with the error message: "The [component name] component is supported in Metadata API version ##.# and later. To deploy this flow, update the API version."

The flow in question

  • has an Action Button component within a Screen element
  • is set to the API version referenced in the error message (v61)
  • is the latest version of that flow in the source org
  • is active

To Reproduce Steps to reproduce the behavior:

  1. Create a screen flow
  2. Add an Action Button component to a screen
  3. Save the flow using API version 61
  4. Activate the flow
  5. Install version 8.2 of DevOps Center
  6. Promote the flow from a development environment to a pipeline environment. Or build the flow in a pipeline environment and sync a development environment ...

Expected behavior The flow should deploy in the target environment

Screenshots image

The flow metadata in the pull request shows that API version 61 is specified: image

Additional context To workaround the issue, I included the flow in a change set, uploaded to the target environment, and deployed without any errors. Then I promoted the work item to the same environment and there were no errors.

RealEvanPonter avatar Jan 14 '25 15:01 RealEvanPonter

I tried setting the "sourceApiVersion" parameter in the sfdx-project.json file in the github repo to "61.0", but it had no effect

RealEvanPonter avatar Jan 14 '25 17:01 RealEvanPonter

it's irritating that DevOps Center still seems to ignore sfdx-project.json. Working on a recent project that got 59 in their json, but they metadata includes at least v61 stuff.

fmannreply avatar Oct 02 '25 15:10 fmannreply