Power Platform Import Solution Error: The reason given was: An unexpected error occurred. #739
-
I am attempting to import my solution from DEV to TEST and then to PROD environment. I am using a multi-staged YAML approach and I have used a template.yml for the release stages to TEST and PROD. The pipeline has successfully deployed changes to the TEST environment. However, the final stage to PROD fails during "Processing asynchronous operation..." with the error message "The reason given was: An unexpected error occurred." I ran the pipeline again (new) and get another error message "The reason given was: ImportAsHolding failed with exception :Solution manifest import: FAILURE: Cannot create a holding solution for missing base ALM_Demo." This is my code in the deployment-template.yml for the relevant task:
UPDATE: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@tono0682 If you set the 'Import as a Holding Solution' parameter to true, then the expectation is that a previous version of the solution should already be installed in the target environment. If it isn't the operation will fail. For scenarios where (a previous version of) the solution in question is not already installed in the target environment, you should set the 'Import as a Holding Solution' parameter to false. You will need make your pipeline smart enough to handle both scenarios |
Beta Was this translation helpful? Give feedback.
@tono0682 If you set the 'Import as a Holding Solution' parameter to true, then the expectation is that a previous version of the solution should already be installed in the target environment. If it isn't the operation will fail. For scenarios where (a previous version of) the solution in question is not already installed in the target environment, you should set the 'Import as a Holding Solution' parameter to false.
You will need make your pipeline smart enough to handle both scenarios