Cannot deploy flow. Error: "The component is supported in Metadata API version ##.# and later. To deploy this flow, update the API version."
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:
- Create a screen flow
- Add an Action Button component to a screen
- Save the flow using API version 61
- Activate the flow
- Install version 8.2 of DevOps Center
- 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
The flow metadata in the pull request shows that API version 61 is specified:
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.
I tried setting the "sourceApiVersion" parameter in the sfdx-project.json file in the github repo to "61.0", but it had no effect
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.