Skip to content

Commit 64331e7

Browse files
committed
Update error headings
1 parent 867c9c4 commit 64331e7

File tree

1 file changed

+9
-145
lines changed

1 file changed

+9
-145
lines changed

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

Lines changed: 9 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ search.audienceType:
1111
- developer
1212
contributors:
1313
- JimDaly
14+
- shahzorkhan123
1415
- TakeN0
1516
ms.custom: bap-template
1617
---
@@ -293,7 +294,7 @@ function Restore-AccountRecord {
293294

294295
The following errors might occur when restoring records.
295296

296-
#### RefCannotBeRestoredRecycleBinNotFound
297+
#### Restore related records before restoring primary record
297298

298299
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.
299300

@@ -303,27 +304,27 @@ If some related records whose reference were removed as part of Cascade relation
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
305306

306-
#### DuplicateExceptionRestoreRecycleBin
307+
#### Don't specify primary key values when creating records
307308

308-
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.
309+
It is generally a good practice to always let Dataverse set the primary key when creating a record. If you create a new record that has the same primary key value as a deleted record, the deleted record can't be restored. If you do, you must delete the new record before you can restore the deleted one.
309310

310311
> Name: `DuplicateExceptionRestoreRecycleBin`<br />
311312
> Code: `0x80044a02`<br />
312313
> Number: `-2147182279`<br />
313314
> Message: `Please delete the existing conflicting record '<Entity Platform Name>' with primary key '<Primary Key Name>' and primary key value '<Primary Key Value>' before attempting restore.`
314315
315-
#### DuplicateExceptionEntityKeyRestoreRecycleBin
316+
#### Records with matching alternate key values will block restore
316317

317-
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.
318+
If you create a record that has the same alternate key column values as a deleted record, you can't restore it. If you do, you must delete the new record before you can restore the deleted one.
318319

319320
> Name: `DuplicateExceptionEntityKeyRestoreRecycleBin`<br />
320321
> Code: `0x80049929`<br />
321322
> Number: `-2147182295`<br />
322323
> Message: `Duplicate entity key preventing restore of record '<Entity Platform Name>' with primary key '<Primary Key Name>' and primary key value '<Primary Key Value>'. See inner exception for entity key details.`
323324
324-
#### PicklistValueOutOfRangeRecycleBin
325+
#### Records using removed Choice options can't restored
325326

326-
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.
327+
If you delete an optionset option, and that option was used in a deleted record, you can't restore it because the option is now invalid. Before deleting an option set option, check that no records use that option, including deleted records.
327328

328329
> Name: `PicklistValueOutOfRangeRecycleBin`<br />
329330
> Code: `0x80049949`<br />
@@ -1011,141 +1012,4 @@ The following tables are the result of the query found in [Detect which tables d
10111012
`workflowcardconnections`<br />
10121013
`workqueue`<br />
10131014
:::column-end:::
1014-
:::row-end:::
1015-
1016-
1017-
1018-
1019-
1020-
1021-
## REMOVE BEFORE PUBLISHING: Markdown examples to delete when we are done
1022-
1023-
Each `##` section has a navigation link at the top of the page. Introduce key capabilities with a section. You may want to use this when you link between articles.
1024-
1025-
### Sub section
1026-
1027-
Each sub section provides a 'link-able' section of the doc. You may want to use this when you link between articles.
1028-
1029-
#### Sub-sub section
1030-
1031-
You can divide your sub sections with linkable headings. You shouldn't go deeper than `####` if you can avoid it.
1032-
1033-
## Tables
1034-
1035-
Please use markdown tables. HTML tables will render, but are not preferred. Try not to use more than three columns.
1036-
1037-
1038-
|Column1 |Column2 |Column3 |
1039-
|---------|---------|---------|
1040-
|Row1-1|Row2-1|Row2-1: When adding content to a row, all the content must be in a single line. <br /> If you need to add a break, use `<br />`.|
1041-
|Row1-2|Row2-2|Row2-2|
1042-
|Row1-3|Row2-3|Row2-3|
1043-
|Row1-4|Row2-4|Row2-4|
1044-
|Row1-5|Row2-5|Row2-5|
1045-
1046-
## Images
1047-
1048-
Put all your images in the media folder at the same level as the file.
1049-
1050-
:::image type="content" source="media/dev-resources-menu.png" alt-text="A screenshot of the developer resources menu in Power Apps.":::
1051-
1052-
## Code
1053-
1054-
When you include multiple lines of code, use this:
1055-
1056-
```csharp
1057-
// Hello world
1058-
```
1059-
1060-
If you use a word in a sentence to refer to a specific term that shouldn't be localized, surround it with backtick characters: `IObservable`.
1061-
1062-
1063-
1064-
## Links
1065-
1066-
There are several types of links you can use:
1067-
1068-
### Local links
1069-
1070-
You can link to other articles in the same repo with relative paths: [Search for Dataverse records](search/overview.md) , or [Update and delete table rows using the Web API](webapi/update-delete-entities-using-web-api.md), or [Update and delete table rows using the SDK for .NET](org-service/entity-operations-update-delete.md).
1071-
1072-
### Links to sections
1073-
1074-
You can add links to headings of other sections of the same document: [Detect which tables do not have recycle bin enabled](#detect-which-tables-do-not-have-recycle-bin-enabled)
1075-
1076-
You can link to headings of other sections of a different document: [DeleteMultiple Availability](deletemultiple.md#availability)
1077-
1078-
You can link to a section of another document on Microsoft Learn: [Power Platform CLI](/power-platform/developer/cli/introduction)
1079-
1080-
> [!NOTE]
1081-
> If you change the heading (or someone else changes the heading), the link will break. You (or they) will get a build warning when that happens.
1082-
1083-
### Other Microsoft Learn articles
1084-
1085-
You can link to other articles in different repos by removing `https://learn.microsoft.com/en-us` from the URL. For example: [Microsoft Power Platform developer documentation](/power-platform/developer/).
1086-
1087-
### Links to reference articles
1088-
1089-
If you want to link to a reference topic for a property, use this pattern: <xref:System.String.Length>, or [String.Length Property](xref:System.String.Length), or [String.IndexOf Method](xref:System.String.IndexOf%2A). After you have added one link, subsequent mentions can just use back ticks: `IndexOf` method.
1090-
1091-
The [Learn Authoring Pack](https://marketplace.visualstudio.com/items?itemName=docsmsft.docs-authoring-pack) provides a tool to make adding these easier when you are using a local clone of the repo.
1092-
1093-
> [!NOTE]
1094-
> I strongly recommend using VS Code with a local clone of the repo. Happy to give you a demo and help you get set up. [Learn more about using Visual Studio Code to work with our content](/bacx/make-major-changes?branch=main)
1095-
1096-
Different ways to link to a class name:
1097-
1098-
<!-- I prefer this -->
1099-
- [RecalcEngine class](xref:Microsoft.PowerFx.RecalcEngine)
1100-
- <xref:Microsoft.PowerFx.RecalcEngine>
1101-
- <xref:Microsoft.PowerFx.RecalcEngine?displayProperty=nameWithType>
1102-
- <xref:Microsoft.PowerFx.RecalcEngine?displayProperty=fullName>
1103-
1104-
## Numbering
1105-
1106-
With markdown, don't set explicit numbers. Always use `1` and markdown will order them for you.
1107-
1108-
1. First
1109-
1. Second
1110-
1. Third
1111-
1. Fourth
1112-
1113-
To add instructions within a list, add a new line and three characters:
1114-
1115-
1. First
1116-
1117-
1. First One
1118-
1. First Two
1119-
1. First Three
1120-
1121-
1. Second
1122-
1. Third
1123-
1124-
1. Third One
1125-
1. Third Two
1126-
1. Third Three
1127-
1128-
1. Fourth
1129-
1130-
1131-
## Alerts
1132-
1133-
There are several types of alerts you can use, but use them sparingly.
1134-
1135-
> [!NOTE]
1136-
> Information the user should notice even if skimming
1137-
1138-
> [!TIP]
1139-
> Optional information to help a user be more successful
1140-
1141-
> [!IMPORTANT]
1142-
> Essential information required for user success
1143-
1144-
> [!CAUTION]
1145-
> Negative potential consequences of an action
1146-
1147-
> [!WARNING]
1148-
> Dangerous certain consequences of an action
1149-
1150-
1151-
1015+
:::row-end:::

0 commit comments

Comments
 (0)