Recently while testing a flow we got the below error message
The API version ” is not valid for provider ‘Microsoft.BusinessAppPlatform’ The supported list of API versions are: ‘2016-02-01, 2016-11-01, 2018-01-01, 2018-10-01, 2019-05-01, 2019-10-01, 2020-04-01, 2020-05-01, 2020-06-01, 2020-08-01, 2020-09-01, 2020-10-01, 2021-03-01, 2021-04-01, 2021-07-01’.
API Version is as the name suggests is the version of the API, as there could be discrepancies in the different versions of API with regards to the input and the output parameters or some other changes.
We were using the below template
The existing Force Sync user action in the template was having the API version as blank.
The way we fixed it was by adding a new Force Sync user action and deleting the existing one.
The new version of Force Sync User action was listing down the Environment in the drop-down and also had the version number mentioned in it.
After making the changes, this time it ran successfully.
Hope it helps..