web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Imported Solution and ...
Power Apps
Unanswered

Imported Solution and the existing solution must Both be managed for upgrade

(0) ShareShare
ReportReport
Posted on by 54

Hello

 

I am trying to import an update to a Solution into Production.  An earlier version of the solution exists in Production, and it is a managed solution.  I exported as a managed solution from my development environment and now I am trying to imported it into Production.  

However I keep getting this error - 

Imported Solution and the existing solution must Both be managed for upgrade

Both the version in Production and the Import version are Managed solutions.  ANy ideas why i keep getting this error ?

Daved

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Looks like you have unmanaged and managed solutions in the target environment. Also, make sure that whenever you import a new version of the solution to the target environment you use the same solution and increase the version. Do not make changes to the target environment directly. Just introduce all your changes via the solution

  • Daved5 Profile Picture
    54 on at

    Hello thanks for your response

    I triple checked- the solution is a Managed solution in Production and i am exporting a managed solution.  I never make changes in Production environment. only in Development and then export and Import into Production.

    I did some more digging and it looks like the error message is misleading.  

    I selected the Solution and then looked at the History.  There was more information on the error.  It showed:

    Error code:

    8004F01D

    Exception message

    Solution dependencies exist, cannot uninstall. DependencyCount : 1

    So I selected the SOlution and checked the dependencies.  I get the same message that cannot uninstall solution because of dependencies.  It shows a component library that i am using in 2 different solutions as the dependency.

    I did a search and found this article which looked promising

    Cannot Uninstall Solution error when removing solutions - Dynamics 365 Sales | Microsoft Learn

    However, I tried to follow the steps, and delete one of the solutions, however, i always get the same message.  Cannot delete the solution because of the dependency.  SO I modified the solution that I am trying to delete and removed the component library, and tried to import this new version into Production, but still get the same message.  Cannot upgrade the solution because cannot delete the old version because of the dependency.

     

     

  • RohanTyagiD365 Profile Picture
    5 on at

    Hello,

    Same thing happened with me, Error is misleading and actual error in history was "There is another solution uninstall going at the same time."

  • JeganathanG Profile Picture
    50 on at

    Hello,

           Today I am facing the same issue in Target Environment. At first, I tried to export the solution with a higher version, but it does not import into Target Environment. 

     

    JeganathanG_0-1671214037716.png

    Current Environment

    JeganathanG_4-1671214976100.png

    Target Environment

    JeganathanG_6-1671215019601.png

     

     

            And I have just checked the Same Solutions Version which I exported previously. The solution in the target environment has a lower version compared with the Solution in the current environment. So I just decrease the version in the current environment now it's working fine.

    JeganathanG_8-1671215729527.png

     

    JeganathanG_13-1671215991443.png

     

     

     

     

     

     

     

  • Thenerdy Profile Picture
    58 on at

    OK what does this mean? It will remove itself? Or will it take time?

  • Thenerdy Profile Picture
    58 on at

    I have a solution and changed the target to the current environment version - however the changes do not appear to have come through? Did your go through and get applied?

  • Thenerdy Profile Picture
    58 on at

    Did you get anywhere with this one? I am having the same issue and it's not liking the change I am making or I am unable to overwrite the existing solution with the remove components that are causing the issue. It just doesn't seem to overwrite the solution dependencies

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    This might be because you might have altered the flow in the destination environment which creates an unmanaged layer on top. Remove the unmanaged layer and the flow should update just fine.

     

  • Thenerdy Profile Picture
    58 on at

    I have several developers working on the instance - would be hard to tell which was changed - is there a way to find that out specifically? Any log or reference to what is causing the issue?

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    You will have to investigate each component separately to see if they have an unmanaged layer on top of the managed layer. An unmanaged layer gets created if you update the managed flow (which is bad practice)

    SudeepGhatakNZ_1-1675369595642.png

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard