powerplatform-actions icon indicating copy to clipboard operation
powerplatform-actions copied to clipboard

import-solution with convert-to-managed set to true fails

Open devkeydet opened this issue 4 years ago • 2 comments

I am using the following

- name: import-manage-solution-to-environment uses: microsoft/powerplatform-actions/import-solution@main #using @main for now because convert-to-managed isn't officially released, therefore won't be in v0 with: environment-url: ${{ github.event.inputs.environment_url}} tenant-id: ${{ secrets.tenant_id }} app-id: ${{ secrets.client_id }} client-secret: ${{ secrets.client_secret }} solution-file: ${{ runner.temp }}/${{ github.event.inputs.solution_name }}/artifact/${{ github.event.inputs.solution_name }}.zip force-overwrite: true convert-to-managed: true

I am getting the following error: Error: CanvasApp import: FAILURE: A managed solution cannot overwrite the CanvasApp component 'dkdt_cvdeleteme_59c95' with Id=5ccf3fd0-0117-4c1e-9d35-6fbbd82e2693 which has an unmanaged base instance. The most likely scenario for this error is that an unmanaged solution has installed a new unmanaged CanvasApp component on the target system, and now a managed solution from the same publisher is trying to install that same CanvasApp component as managed. This will cause an invalid layering of solutions on the target system and is not allowed.

However, when I do this with pac directly, it works as expected. Full source code is here: https://github.com/devkeydet/pva-alm/blob/d7b47d0f2bc99f113bcd84e162295cc67de42710/.github/workflows/delete-unmanaged-solution-and-components-from-environment.yml#L121

devkeydet avatar Nov 09 '21 23:11 devkeydet

since GH import-solution action is a thin wrapper (and you already reproed that pac CLI stand alone succeeds): still unclear if this a action/CLI bug or if this is more a difference in state for the target env? Will discuss with you offline in email

davidjenni avatar Nov 16 '21 22:11 davidjenni

@devkeydet, sounds like this may have been handled over email. Is this still an issue for you?

paulbreuler avatar May 26 '22 14:05 paulbreuler

Closing as there has been no response to indicate further need.

paulbreuler avatar Aug 30 '22 13:08 paulbreuler