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 : Nbu8IbEVv/r3tIycZm+1zF
Power Apps - Microsoft Dataverse
Answered

Unable to delete solution - environment variable dependency

Like (0) ShareShare
ReportReport
Posted on 27 Sep 2021 04:27:44 by 186

Hi all,

 

I am unable to delete a managed solution in our environment because the solution is dependant on environment variables inside the solution. This is the error message I get when trying to delete:

 

Failed deleting solution. Solution dependencies exist, cannot uninstall.
DependencyCount : 2 
 
 RequiredComponentObject details: 
 Type: EnvironmentVariableDefinition,
 ObjectName: bis_shared_sharepointonline_afaaa77a749f4a2191f48c8f8bff0eca,
 Id: 954fabf4-e6ed-4076-ae9a-715264980fa2,
 ParentObjectName: ,
 ParentId: 00000000-0000-0000-0000-000000000000,
 DependentComponentObject details: Type: EnvironmentVariableValue,
 ObjectName: ,
 Id: 5843089e-56f6-eb11-94ef-000d3acbef83,
 ParentObjectName: ,
 ParentId: 00000000-0000-0000-0000-000000000000
 
 RequiredComponentObject details:
 Type: EnvironmentVariableDefinition,
 ObjectName: bis_ERPITRegisterDebugMode,
 Id: 3959504b-d9b1-4fce-920d-e6532ce1c495,
 ParentObjectName: ,
 ParentId: 00000000-0000-0000-0000-000000000000,
 DependentComponentObject details: Type: EnvironmentVariableValue,
 ObjectName: ,
 Id: d8ace36b-b6f8-eb11-94ef-00224810d2e8,
 ParentObjectName: ,
 ParentId: 00000000-0000-0000-0000-000000000000

 

The environment variables are not used in any other solutions.

 

There are no unmanaged layers in the solution.

 

I am unable to delete the environment variable values because they are are managed:

 

...in the current operation (Delete) failed during managed property evaluation of condition: Managed Property Name: ismanaged; Component Name: EnvironmentVariableValue;

 

lkaspar_0-1632716588598.png

 

Anyone have an idea how I can remove the dependency and delete the solution?

 

  • Pokke Profile Picture
    58 on 24 Feb 2024 at 14:43:40
    Re: Unable to delete solution - environment variable dependency

    Hi all, 

     

    cant find the mentioned option. I tried to deploy a solution via pipeline and got the same error. 

    But it seems in 2024 the menu is completely different or i´m blind. 

    Can anyone help me to find a way to delete the environment variable to deploy again with success?

  • Verified answer
    lukas.schauffele Profile Picture
    186 on 27 Sep 2021 at 23:52:19
    Re: Unable to delete solution - environment variable dependency

    @Mira_Ghaly - you are an absolute life safer. It was actually your first suggestion of removing the environment values which did the trick, but I had to go about it a certain way.

     

    I initially went to the Environment Variable Value Dataverse table, edited the record and removed the value. That did not work.

     

    The steps I took to get it to work for anyone running into the same issue:

     

    1. On the problem environment variable, click on Show dependencies to open the Dependency Details page

    2. Click on the entry under Dependent components (it doesn't look like a hyperlink but it is)

    3. Remove the value

    4. Click on Save

     

    This doesn't make a whole lot of sense to me because the page that opens looks to be the same one as the one in my initial approach but it worked.

     

    Thanks again Mira

  • Mira Ghaly Profile Picture
    11,409 Moderator on 27 Sep 2021 at 05:17:09
    Re: Unable to delete solution - environment variable dependency

    @LKS 

    have you checked dependencies on each of the environment variables?

     

  • lukas.schauffele Profile Picture
    186 on 27 Sep 2021 at 05:00:08
    Re: Unable to delete solution - environment variable dependency

    Hi @Mira_Ghaly 

     

    I've removed the values but still unable to delete the solution. Same error message.

  • Verified answer
    Mira Ghaly Profile Picture
    11,409 Moderator on 27 Sep 2021 at 04:50:14
    Re: Unable to delete solution - environment variable dependency

    @LKS 

    Try to remove any value assigned to this environment variable , save publish and try to uninstall.

     

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics