cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lkaspar
Resolver I
Resolver I

Unable to delete solution - environment variable dependency

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?

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Mira_Ghaly
Dual Super User II
Dual Super User II

@lkaspar 

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

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

@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

View solution in original post

4 REPLIES 4
Mira_Ghaly
Dual Super User II
Dual Super User II

@lkaspar 

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

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

lkaspar
Resolver I
Resolver I

Hi @Mira_Ghaly 

 

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

Mira_Ghaly
Dual Super User II
Dual Super User II

@lkaspar 

have you checked dependencies on each of the environment variables?

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

@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

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,077)