Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

DevOps CI/CD - Cannot Convert Unmanaged Components to Managed, Solution Upgrades Do Not Take

Posted on by 3,962

OK, I have opened multiple MS tickets with this, tried to fix it a hundred different ways - and regardless of what I do, I end up with similar issues.  The real crux of the issue is that the legacy CRM import and the "New" Power Apps import, seem to behave differently, thus, giving me different results in CI/CD (which seemingly uses the PowerApps API), when compared to importing a solution manually into CRM's legacy interface.

The Issue:
When using DevOps CI/CD to import a MANAGED solution, which contains elements that  already exist in the TARGET environment as unmanaged, DevOps fails, as such:

Solution import Failed. Error: A managed solution cannot overwrite the Relationship component 'acms_caseweight_pcx_case_caseweight' with Id=b56724cc-3730-4dc5-ac3f-358cddb8fda5 which has an unmanaged base instance. The most likely scenario for this error is that an unmanaged solution has installed a new unmanaged Relationship component on the target system, and now a managed solution from the same publisher is trying to install that same Relationship component as managed. This will cause an invalid layering of solutions on the target system and is not allowed.


CannotOverwriteUnmanaged.PNG
When I push the exact some solution up through CRM's Import Solution mechanism, it works without failure.  Here's the rub on that one;
When importing via CRM, this is the WARNING message you get upon an import in this scenario (convert unmanaged components to managed):
convertUnmanaged.PNG
When Importing via PowerApps/CICD, you are given an ERROR, and when clicking the link in Solution History, given conflicting advice.
CannotBeImported.PNG

 

So, what gives, Microsoft?  Which way are we going to be able to do this in the future?  I have been working in Dynamics for over a decade, and have always EXPECTED the Unmanaged components to be converted - and that is how we run our deployments every single time.

As for the secondary issue....

It appears that solution upgrades sent through CI/CD are not processing effectively.  Here's a simple example that I ran into over the past few days:

I have an UNMANAGED solution in my DEV environment, we'll call it CORE.  CORE had a managed field in it, which I removed from the UNMANAGED solution, and pushed out to my other environments over CICD.  The solution imported successfully, and the release in DevOps was also branded 'success'.  However, when I go to the target environment, the field is still in the solution.  It appears my Solution Upgrades are being ignored.  The resolution?  MANUALLY import it, using the CRM legacy interface, choose "Upgrade/ Overwrite" (which is what I have set in CICD configs).  Solution imports fine, and component is deleted.

Why would this be the case?  Here are the configs of my import:
ImportConfig.PNGImportSuccess.PNGApplyUpgrade.PNG

So, in the end, this MAY be two separate issues, or may not be.  They are both related to the way Power Apps and DevOps/CICD handle Imports of CRM solutions, and the lack of faith I have in how this is actually working.  Please help - glad to provide additional details and screenshots as needed.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans