I have a solution with two apps, one flow and an environment variable. Have been using the Power Platform Pipelines for a while now and they have (mostly) worked fine. Now I deleted an environment variable and added a new one - and the pipeline now fails. I get this error:
Solution Upgrade action failed after import as holding. InnerException is: Sql error: Statement conflicted with a constraint.
The DELETE statement conflicted with the REFERENCE constraint "environmentvariabledefinition_environmentvariablevalue". The
conflict occurred in database "db_crmcoreemea_20230815_09382405_f241", table "dbo.EnvironmentVariableValueBase", column
'EnvironmentVariableDefinitionId'.
The statement has been terminated. CRM ErrorCode: -2147185375 Sql ErrorCode: -2146232060 Sql Number: 547.
I did not change anything else, so it must be the deleting of environment variable that broke things. I don't fancy the idea of deleting the solution from my target environment and creating it again, as that would mean doing all sharing again - and I don't think the pipeline should break this easily to begin with.
Anything else I might try, that wouldn't break the apps in my target environment (people are using them -> can't just test things and hope it works)?