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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Unable to delete solut...
Power Apps
Answered

Unable to delete solution - environment variable dependency

(0) ShareShare
ReportReport
Posted on 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?

 

  • Verified answer
    Mira Ghaly Profile Picture
    11,415 Moderator on at

    @LKS 

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

     

  • lukas.schauffele Profile Picture
    186 on at

    Hi @Mira_Ghaly 

     

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

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @LKS 

    have you checked dependencies on each of the environment variables?

     

  • Verified answer
    lukas.schauffele Profile Picture
    186 on at

    @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

  • Pokke Profile Picture
    61 on at

    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?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard