Unable to delete a managed solution consisting of an SLA-enabled entity
Unable to delete a managed solution that contains an entity with a service-level agreement (SLA) enabled on it. This entity has been created as part of a previously imported solution.
Use this example to understand the issue:
- Create a new solution in Org1 and name it Field solution.
- Create a new entity in Field solution and name it Field work.
- Export Field solution as a managed solution.
- Import Field solution into a new org named Org2.
- Create another solution in Org1 and name it Delta Field solution.
- Associate the entity Field work with Delta Field solution. Enable SLA on the entity.
- Export Delta Field solution as a managed solution.
- Import Delta Field solution into Org2.
Now, if you try to delete Delta Field solution from Org2, you won’t be able to because it has an entity Field work associated with it that has SLA enabled.
To be able to delete Delta Field solution in Org2, delete Field solution first.
Field solution can be deleted because the entity associated with it —Field work— does not have SLA enabled. Deleting Field solution ensures that not just the SLA configuration, but also the entity is deleted.
You can’t delete a managed solution that contains an entity that has SLA enabled on it, created as part of a previously imported solution. Once enabled on an entity, SLA can’t be disabled.
To delete a managed solution with an SLA-enabled entity, you need to first delete the previously imported managed solution that created the entity entry. This ensures that the entity entry is deleted. Then, you can create the entity again or reimport the managed solution.
This workaround won’t work for out-of-the-box (OOB) entities because you can’t delete OOB entities or managed solutions that have OOB entities associated with them.