Skip to content

Commit 07cf99b

Browse files
Update restore-deleted-records.md
1 parent 3d3dd0c commit 07cf99b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

powerapps-docs/developer/data-platform/restore-deleted-records.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,16 +295,18 @@ The following errors might occur when restoring records.
295295

296296
#### RefCannotBeRestoredRecycleBinNotFound
297297

298-
**TODO: Explain how to avoid this error and change the section heading**
298+
If some related records whose reference were removed as part of Cascade relationship, no longer exist, the restore operation will fail. To avoid this, always restore the related records not deleted as part of current record, before trying to restore the primary record.
299299

300+
After enabling this setting, you might receive the following error:
300301
> Name: `RefCannotBeRestoredRecycleBinNotFound`<br />
301302
> Code: `0x80049959`<br />
302303
> Number: `-2147182247`<br />
303304
> Message: `Entity with id '<Guid Value>' and logical name '<Entity.LogicalName>' does not exist. We cannot restore the reference '<Referred Primary Key Name>' that must be restored as part of this Restore call. ValueToBeRestored: <Guid Value>, ReferencedEntityName: <Referenced Entity Name>, AttributeName: <Referred Attribute Name>`
304305
306+
305307
#### DuplicateExceptionRestoreRecycleBin
306308

307-
**TODO: Explain how to avoid this error and change the section heading**
309+
Donot create records with specific primary keys, otherwise, if the previous record was in deleted state, the new record will prevent the deleted record to be restored.
308310

309311
> Name: `DuplicateExceptionRestoreRecycleBin`<br />
310312
> Code: `0x80044a02`<br />
@@ -313,7 +315,7 @@ The following errors might occur when restoring records.
313315
314316
#### DuplicateExceptionEntityKeyRestoreRecycleBin
315317

316-
**TODO: Explain how to avoid this error and change the section heading**
318+
Donot create records with similar Alternate Keys that were already deleted, this will prevent previous record was in deleted state to be restored. The new record will need to be deleted before previous record is restored.
317319

318320
> Name: `DuplicateExceptionEntityKeyRestoreRecycleBin`<br />
319321
> Code: `0x80049929`<br />
@@ -322,7 +324,7 @@ The following errors might occur when restoring records.
322324
323325
#### PicklistValueOutOfRangeRecycleBin
324326

325-
**TODO: Explain how to avoid this error and change the section heading**
327+
Do not delete Picklist or Option Set values directly, instead rename them with (deprecated) tag, because it will prevent the records deleted at the time to be restored. (with in configured duration, default is 30 days).
326328

327329
> Name: `PicklistValueOutOfRangeRecycleBin`<br />
328330
> Code: `0x80049949`<br />

0 commit comments

Comments
 (0)