Loading

Unable to restore a deleted record from the Recycle Bin

Fecha de publicación: Oct 13, 2022
Descripción

You may find that a deleted record is not visible in the Recycle Bin, but when you run an Export All through Data Loader or another API tool, the record still shows in the results. If you attempt to restore or undelete it via API, it returns an error message:

UNDELETE_FAILED Entity is not in the recycle bin

Solución


When a record is deleted it is placed into the Recycle Bin. It is considered to be soft deleted and can be restored without issue through the user interface.

However, there are certain circumstances in which a deleted record will no longer show in the Recycle Bin:

  • If the record is a child or detail in a master-detail relationship, and the parent record is deleted after the child, the child record is moved to a hard deleted status. In this scenario, the child record cannot be recovered and will need to be recreated.
  • If the record is a child or detail in a master-detail relationship and the parent record is deleted, the child record is also soft deleted but cannot be viewed in the recycle bin. In this scenario, recovering the parent record will also recover the child record. You will not be able to recover the child record without recovering the parent.
 

Once hard deleted, you will no longer be able to locate the record through the user interface, but for a time you can still see the record through API tools such as the Data Loader. Once it is this status, there is no way to recover or undelete the original record and it will need to be recreated.

 

Notes:
Número del artículo de conocimiento

000386040

 
Cargando
Salesforce Help | Article