Unable to restore a record from the Recycle Bin
|Knowledge Article Number||000123575|
|Description||You are unable to locate a record through the user interface, but running API queries with the Data Loader or other tool shows the record still within the org and attempts to restore the record fail or return an error message.|
|Resolution||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, if the record that is deleted is a child record of any master detail relationship, standard or custom, and the parent record is subsequently deleted, the child record is moved into a hard deleted state and cannot be restored. 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 the API using a variety of tools such as the Data Loader or Apex Explorer.
At this time the only option to restore the child record in this situation, or any record that is hard deleted, is to re-import the information back into Salesforce. This would apply to the following and more standard relationships as well as any custom master-detail relationships:
* Event Series is an event that is flagged through the UI or API with 'IsRecurrence = True'
** Event Recurrence is a single event of an Event Series that is flagged through the UI or API with 'IsRecurrence = False'
***If the Objects and relationships is not posted up above those items will be hard deleted and there is no way to restore those Objects. EX: Public Calendar and the Task and Events associated.
Related: Using the Recycle Bin