I have been struggling with importing/exporting solutions between environments in Power Platform using Azure DevOps (https://dev.azure.com/). I have set up at pipeline which exports a given solution from a DEV environment to source control in an Azure repo. I have also setup a second pipeline which takes a solution from the repo, packs and exports it to a target environment. The solutions are developed and checked to source control as unmanaged; and the pipeline which exports them to the target environment has "Export as managed" checkbox checked.
Upon trying to run the pipeline, I am thrown the exception:
##[error]Unhandled exception: Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault] Message: Solution manifest import: FAILURE: The solution is already installed on this system as a managed solution and the package supplied is attempting to install it in unmanaged mode. Import can only update solutions when the modes match. Uninstall the current solution and try again.
In the picture I have attached, you can see the pipeline in Azure DevOps.
I have also tried to uncheck the "Import/Export as managed" and the pipeline runs successfully, but when navigating to the target environment, the solution is present but once I click the app, the component is missing.
Thank you in advance.
Update: I have reset the target environment and the exception is no longer thrown. Now the solution gets deployed successfully, and I can click and open it in the target environment. Now the problem is that the app is empty and, as soon as I click it, I am taken to the "Apps" pane, with no options to play or edit it.
After doing this and retrying to export/import manually, I get the error message you can see in the image I have attached.
Thank you for your post.
I have one question, is the solution already exist in the target org as unmanaged?
Could you please remove the solution and all the components installed and try again the import?
Regarding the app with no options to play or edit, Do you have any error message, please check in the console log as well ?
I believe if you don't have any error , it will probably means you are missing some privilege to edit or work on the app.
check your privileges and let me know
Thank you for your reply.
The console I refer was from the browser F12.
Few thing you will have to check:
On the target, could you please reset once more the org?
Can you edit and play the application in the target org? verify if the application is published and saved.
Can you try to export manually the solution and import to the target with Admin privileges and provide your feedback?
Sorry , I will clarify the next action:
Please do reset your organization target before the next step:
Import the solution as Administrator , not App user and share your feedback if you have the same issue with the solution.
Regarding the application: It seems based on your comments when you are importing the solution with App user, you cannot edit or play with the application but as an admin, you can play with the application.
Is that correct?
It might be because there are some missing privileges.
I was able to do the export/import manually and play with the app. The "Play" button (which was missing before) is shown but greyed out when opening the solution, as you can see from the screenshot I attached. As soon as I click to open the app I am able to play and even edit it. About the latter, I am unsure if this is by design as I have exported/imported as managed.
I have given the automation App User System Administrator rights and I will retry.
I think that you have a security proxy blocking connection to download the information.
Could you please have a look please?
I followed this tutorial and i didn't have any issue.
Regarding the application in the solution , it is a normal behavior because it is managed.
Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.
Did you miss the call? Check out the Power Apps Community Call here.
We are excited to announce the Power Apps Super Users!
Check out our new profile badges recognizing authored solutions!