cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
OliverR-82
Skilled Sharer
Skilled Sharer

Can't import solution because holding solution of upgrade exists

Hi community, I seem to be in a sort of "deadlock" here with trying to import a managed solution.

 

I have 1 existing managed solution containing a canvas app, 2 flows and some connection references and environment variables. I needed to update the app, and while doing that I noticed that the solution contained a connection reference that wasn't needed in that particular solution. So, I removed it from that particular solution. I then proceeded to export as a managed solution with a higher version, and tried to import it into the PRD environment.

 

However, the import into PRD failed with the message that the connection reference that I removed could not be deleted because of dependencies in other solutions

 

Failed to upgrade solution. Solution dependencies exist, cannot uninstall. DependencyCount : 1 RequiredComponentObject details: Type: connectionreference, ObjectName: xxx_sharedoffice365users_238ff, Id: xxx2d930-1b9e-4421-83f4-9c3b4bcbd73e, ParentObjectName: , ParentId: 00000000-0000-0000-0000-000000000000, DependentComponentObject details: Type: Workflow, ObjectName: Get participant siteuser Ids, Id: xxxx4ef7-bbb2-ed11-83ff-0022489dd6df, ParentObjectName: , ParentId: 00000000-0000-0000-0000-000000000000 DependencyType: Published

 

Yes, I'm aware that it's needed for other solutions but not this particular solution, that's why I removed it from this particular solution. But okay, apparently this isn't possible? Makes no sense to me but whatever... So I re-added the connection reference in the DEV environment, did another export as managed and proceeded to attempt another import in PRD.

 

Unfortunately, this time the import fails with the message that the HOLDING solution (<solutionname_Upgrade>) already exists, also as a managed solution. And I cannot delete that HOLDING solution because it contains a bunch of environment variables and connection references that are used in a lot of other solutions as well. 

 

 

Solution "xxxx" failed to import: Solution manifest import: FAILURE: Holding solution xxxx_Upgrade already exists.

 

 

 

So, now I'm in the situation where I cannot apply an upgrade to an existing managed solution because of a failed previous upgrade attempt. I've tried selecting "Update" as opposed to "Upgrade" but that doesn't make a difference; it fails with the message that the HOLDING solution already exists. Same if I choose "Stage for upgrade". And I cannot choose "Apply upgrade" on the existing solution because that fails with the very first error message I received, saying it cannot delete a connection reference because of dependencies (in other solutions).

 

Is there any way out of this?

5 REPLIES 5
LLinx
Resolver I
Resolver I

Hey Oliver

 

By what you describe of the problem, I think the following has happened: your other solutions probably were referring to the connection reference that was in the solution X you were deleting. While you may have adapted solution X to no longer contain that connection reference, the other flows are expecting it to be. If you remove the solution from the environment, the connection reference would cease to exist, which it can't because the other solutions require it.

 

I would personally create a new connection reference in DEV, make sure all solutions are linked to that one and include that in the first solution you deploy to Prod (or a new solution). Once those solutions no longer refer to Solution X's connection reference, I would expect you can remove it.

Hi @LLinx , thanks for your reply. In essence, the problem isn't even the connection reference or any particular component. The problem is that at this point I'm unable to make any changes to the original solution (regardless of the components I add or remove) because a holding (upgrade) solution exists that I cannot get rid of. As I understand, the only way to get rid of the holding solution is either:

  1. apply the upgrade, which fails. That's how I got in this situation in the first place
  2. delete the holding solution, which requires first updating all other solutions in the environment to remove all dependencies on shared components in the holding solution. This is simply not an option, as this would be a lot (a loooooot) of work.

In my opinion, it makes no sense that you cannot simply delete a HOLDING solution. It's simply a solution containing an upgrade to an existing solution. In my case, a failed upgrade that was not applied. It should be possible to just get rid of it and attempt another upgrade. In fact, if an upgrade fails the Power Platform should be smart enough to delete the holding solution right away, as it is obviously invalid at that point and can never be used anyhow! Now, because of this weird logic, there seems to be no way to move forward without having to update a bunch of other solutions just because they happen to share some components with the failed upgrade.

 

I guess the only way forward for me is to create an entirely new solution in DEV and deploy that as a new solution to PRD. And just leave the "old" solution (as well as the holding upgrade solution to that) existing in the PRD environment until the end of time, because I guess I'll never be able to delete it as long as dependencies exist.

 

Ugh, the Power Platform makes me want to tear my hair out sometimes.

LLinx
Resolver I
Resolver I

Hey Oliver

Spent some time this evening with @WConsulting discussing this, with him reproducing the issue.

Can you check whether your first upgrade of the solution completely went through? Probably you now have two versions of the "Solution X" on your environment, one waiting to complete install (_upgrade) and the old version. You should try to cancel the _upgrade version of the solution and then you should be able to import your solution that includes the connection reference again.

Yes, that's exactly what I'm trying to say the problem is 🙂 I have one solution waiting to complete install which is  (apparently) called the "holding" solution, with the _upgrade suffix. That's the source of the problem. It's preventing me from importing a new upgrade, and I can't get rid of it because it's a managed solution just like any other solution. How do you propose I would "cancel the _upgrade version of the solution"? As far as I can tell there's no way to do something like that?

OliverR-82
Skilled Sharer
Skilled Sharer

I managed to work around (not resolve) the problem by removing the dependency on the connection reference that the Upgrade was trying to remove. Thankfully it was only used in 1 unmanaged flow. After that, I was able to apply the upgrade to the solution, after which the Holding solution was removed.

 

It's still very strange to me that I was able to get into this "deadlock". The main thing I take away from this is to be very careful when removing components from a solution in DEV (unmanaged). When the component you remove is being used in another solution in the PRD environment (managed), the Upgrade will fail. Furthermore, if the solution you're upgrading contains other components that are also being used in other solutions, then you will not be able to delete the holding solution because of dependencies in the other solutions. Thus putting you in a deadlock situation.

 

Choosing Update instead of Upgrade may avoid this scenario, but I've not tried it out to confirm it.

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!   This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (tie)     Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (653)