Hi all,
I have created a product in released products, and without using it anywhere I want to delete it. The problem I'm facing is that I receive the following error:

While debugging, I have found out that my code goes from InventTable.delete() to InventItemLocation.validateDelete(), as shown in the call stack below:


Upon further debugging, I found out that after entering the super() of InventTable.delete(), it goes to the validate delete of InventItemLocation, and I'm not able to identify if there are any customizations done or any CoC's written which call the InventItemLocation.validateDelete() method. I have compared the behavior with an OOTB code without any customizations, and have seen that the InventItemLocation.validateDelete() method does not get called when deleting the product on that environment.
I have tried using trace parser for identifying from where the InventItemLocation.validateDelete() method is being called, furthermore I have also tried debugging into the super calls, but am not successful in identifying from where or why it is being called.
Has anyone ever encountered such a problem? Help and advice would be appreciated.
Thankyou