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

Community site session details

Session Id : iSnGJOKvksh1RhG9Z8azKy
Power Apps - Microsoft Dataverse
Unanswered

Delete key from managed solution

Like (0) ShareShare
ReportReport
Posted on 15 Jun 2022 12:34:32 by 96

Hi,

 

I have created a few keys on some of my tables and they have found their way into a managed solution in my test environment. I have since deleted them from my dev environment but no matter what I try I can't get rid of them in my test environment. I've tried using the Default solution and cloning my solution so I get the option to replace the solution in my test environment. No luck so far. I need to get rid of them because they create trouble elsewhere.

 

Any insights much appreciated!

Categories:
  • Rydman Profile Picture
    96 on 15 Jun 2022 at 19:50:55
    Re: Delete key from managed solution

    I've now removed all unmanaged solutions (except the last two that can't be removed). I still fail to upgrade:

     

    Rydman_0-1655322632722.png

     

  • ChrisPiasecki Profile Picture
    6,412 Most Valuable Professional on 15 Jun 2022 at 16:09:19
    Re: Delete key from managed solution

    Hi @Rydman ,

     

    You can convert your unmanaged solution to managed. At a high level, you'll need to:

    • Delete the unmanaged solution in your target environment,
    • Export the solution as managed from your dev environment
    • Import the managed solution into your target environment using the Power Platform CLI, using the convert-to-managed command line argument.

     

    More details are documented here. As the article suggests, would recommend copying the environment and testing this process first before doing it on the live environment.

     

    As a general, you should have unmanaged versions of your solutions saved in source control in an unpacked state. Only in your dev environment should the unmanaged versions be deployed. Managed versions should be deployed to any non-development environment.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • Rydman Profile Picture
    96 on 15 Jun 2022 at 15:14:31
    Re: Delete key from managed solution

    Yep, that’s it. In fact, it is the unmanaged solution that has problems with keys (it’s a auxiliary tool for shuffling data into the main solution, hence shares tables with it). A follow-up question before I proceed: can I export it, delete ut and then import it again? Or should I stick to all managed solutions in one environment?

  • ChrisPiasecki Profile Picture
    6,412 Most Valuable Professional on 15 Jun 2022 at 13:54:25
    Re: Delete key from managed solution

    Hi @Rydman,

     

    The error typically indicates you have an unmanaged solution in the environment. Can you take a screenshot of your list of solutions, including the column showing whether it's managed or unmanaged? Also, did you increase the solution version number when you exported as managed? The version number needs to be increased to at least a new minor version in order to do an upgrade. 

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • Rydman Profile Picture
    96 on 15 Jun 2022 at 13:18:21
    Re: Delete key from managed solution

    Hi,

     

    I get this error when trying the Update option:

    The imported solution and the existing solution must both be managed for upgrade.

     

    I'm pretty sure they both are (the package is named BaseloadInitialAssessment_1_4_0_2_managed.zip) so I guess it must be something else?

  • ChrisPiasecki Profile Picture
    6,412 Most Valuable Professional on 15 Jun 2022 at 12:41:49
    Re: Delete key from managed solution

    Hi @Rydman,

     

    How are you importing the managed solution in your test environment? You must use the Upgrade option in order to delete components no longer present in the solution. Using the Update option will not remove components, only add/update.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics

Loading complete