Activity › Forums › Salesforce® Discussions › What is the reason for “Object cannot be Deleted” error?
-
What is the reason for “Object cannot be Deleted” error?
Posted by Avnish Yadav on August 8, 2018 at 6:33 AMSometimes while deleting a record it gives error “Object cannot be Deleted”. What is the reason for this kind of error?
Parul replied 7 years, 9 months ago 5 Members · 4 Replies -
4 Replies
-
Hi Avnish,
This is generic error message prompted by Salesforce many times, which is not well informative. To get informative message, we can try to delete same record in “Developer Console”. In Developer Console Debug log, we will get exact error message.
Example : Lets say there is one record which is parent of more than 2000 records and grand parent of 5000 records. In such scenario from developer console it gives error something like “record cannot be deleted because it has many associated objects” However in User Interface, it will just display that “Object cannot be deleted”. - [adinserter block='9']
-
Hello Avnish,
The error “Object cannot be Deleted” means you are using it somewhere else For e.g Active Trigger on Object or Using in Workflow. You can check its usage and then delete it.
Thanks.
-
Hi,
You need to see your debug log because it is generic UI error.
Hope this helps.
-
You need to check debug that blog must be used in somewhere with any process.
Thanks
Log In to reply.