Override StageAndUpgrade and HoldingSolution to false on Import Solution if the inbound solution does not already exist in target #1225
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.
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 when importing a managed solution to a target environment that does not already have a version of it installed, if the
Import Solution
step sets eitherStageAndUpgrade
orHoldingSolution
totrue
, it fails with an error as follows: The reason given was: ImportAsHolding failed with exception :Solution manifest import: FAILURE: Cannot create a holding solution for missing base {solutionName}The logs suggest that the task is already performing a check for the existence of the solution already, as follows.
It would be great if the task could gracefully override the values of
StageAndUpgrade
andHoldingSolution
to false in this scenario as it would allow the import to proceed to success rather than fail.In the absence of this override, I need to build custom logic to check the existence of a specified solution first, and based on the result, programmatically decide what values to set for the
StageAndUpgrade
andHoldingSolution
parameters.Beta Was this translation helpful? Give feedback.
All reactions