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;
Anyone have an idea how I can remove the dependency and delete the solution?
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?
@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
Try to remove any value assigned to this environment variable , save publish and try to uninstall.
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2