Allow ApplySolutionUpgrade to exit gracefully/skip operation if Upgrade solution does not exist #1226
parvezghumra
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Power Platform Build Tools Version: 2.0.96
PAC CLI Version: 1.44.2
Currently the
Apply Solution Upgrade
step fails with an error as follows if an*_Upgrade
solution does not exist in the target environment at runtime.Error: The solution: '{solutionName}' is not found in the target Dataverse organization
If I'm only conditionally importing the corresponding holding solution ahead of this step (eg. based on input pipeline variable values) and/or have set the
Skip Lower Version
flag totrue
on the associatedImport Solution
step that is intended to import the holding solution, there is a possibility that the*_Upgrade
solution may not exist in the environment by the time the pipeline run reaches the point of theApply Upgrade
step.The only way to avoid this error right now is if I build custom logic to check for the existence of the
*_Upgrade
solution first and only run theApply Upgrade
step if it exists, otherwise skip it. Deployments would be streamlined if this check for existence could be integrated natively into the 'Apply Upgrade` step and the operation exit gracefully if the holding solution does not exist.Beta Was this translation helpful? Give feedback.
All reactions