I am trying to delete an entity if it has no dependencies. If it does, I am catching the exception and updating it as inactive. However, it still throws an exception. I am p