Similar to ENTITY_IS_DELETED error, if we attempt to undelete a record from recycle bin by mistake which has already been hard deleted, the following error is encountered: UNDELETE_FAILED.
When a record is deleted, it moves to the Recycle Bin. This is known as "soft deletion," allowing the record to be easily restored through the user interface.
However, under certain conditions, a deleted record will no longer appear in the Recycle Bin:
Master-Detail Relationship (Child Deleted First):
If a record is a child or detail in a master-detail relationship and it is deleted before its parent record, then after the parent is deleted, the child record transitions to a "hard deleted" status. In this state, the child record cannot be recovered through the Recycle Bin and must be recreated if needed.
Master-Detail Relationship (Parent Deleted):
If a 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 will not be visible in the Recycle Bin. Recovering the parent record will simultaneously restore the child record. It is not possible to recover the child record independently without first recovering the parent record.
Once a record reaches a hard deleted status, it can no longer be found through the user interface. However, for a limited time, it can still be accessed via API tools like Data Loader. Once it is permanently hard deleted, the original record cannot be restored and must be recreated.
REFERENCE:
1) Help Article
Comments
Post a Comment
Please Write your comment here.