cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Importing/exporting solutions with Azure DevOps

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.

13 REPLIES 13

Hi again,

 

Please note that the error is thrown when the pipeline tries to install the PowerPlatform tools on the virtual agent. I believe this has nothing to do with my local machine/internet connection: these are just servers talking to each other. Kindly refer to the image I sent in the previous post once again.

I have taken another look at the guide and my pipeline but there is really no difference in what I am doing.

I have tried once again to run the pipeline and this time it succeeded. The solution was checked to source control and I have give "System Administrator" role to "App User" of the MFA service connection (both source and target). I was able to deploy the solution in the target environment, but the problem persists. Kindly check the attached image:

Hello @HugoBrito 

So when the solution is imported manually, you don't have this issue with the play and edit for the canvasapp. 

However when it is imported using the pipeline, you don't see any play or edit sign, I am correct?

 

I would suggest to create a ticket to MS and a team will look at the issue:

To submit your next support request, check out our new Dynamics 365 Help + Support Portal.  The portal is easy to use and provides a support experience tailored to the needs of Dynamics customers. Dynamics 365 administrators can access the portal at https://admin.powerplatform.microsoft.com.

 

Thank you

@HugoBrito could you please have a look at this thread? they had the same issue but they managed to fix the issue:

 

https://powerusers.microsoft.com/t5/Power-Apps-Pro-Dev-ISV/Power-Platform-Build-tools-for-azure-Devo...

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (40,916)