Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
166 changes: 15 additions & 151 deletions power-platform/power-fx/reference/function-errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ The **Errors** function returns a [table](/power-apps/maker/canvas-apps/working-
- **Message**. A description of the error. This error string can be displayed for the end user. This message may be generated by the data source and could be long and contain raw column names that may not have any meaning to the user.
- **Error**. An error code that can be used in formulas to help resolve the error:

| ErrorKind | Description |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ErrorKind.Conflict | Another change was made to the same record, resulting in a change conflict. Use the **[Refresh](function-refresh.md)** function to reload the record and try the change again. |
| ErrorKind.ConstraintViolation | One or more constraints have been violated. |
| ErrorKind.CreatePermission | An attempt was made to create a record, and the current user doesn't have permission to create records. |
| ErrorKind.DeletePermission | An attempt was made to delete a record, and the current user doesn't have permission to delete records. |
| ErrorKind.EditPermission | An attempt was made to edit a record, and the current user doesn't have permission to edit records. |
| ErrorKind.GeneratedValue | An attempt was made to change a column that the data source generates automatically. |
| ErrorKind.MissingRequired | The value for a required column is missing from the record. |
| ErrorKind.None | There's no error. |
| ErrorKind.NotFound | An attempt was made to edit or delete a record, but the record couldn't be found. Another user may have changed the record. |
| ErrorKind.ReadOnlyValue | An attempt was made to change a column that's read only. |
| ErrorKind.Sync | An error was reported by the data source. Check the Message column for more information. |
| ErrorKind.Unknown | There was an error, but of an unknown kind. |
| ErrorKind.Validation | There was a general validation issue detected, that didn't fit one of the other kinds. |
Value | ErrorKind | Description |
----- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
0 | ErrorKind.None | There's no error. |
1 | ErrorKind.Sync | An error was reported by the data source. Check the Message column for more information. |
2 | ErrorKind.MissingRequired | The value for a required column is missing from the record. |
3 | ErrorKind.CreatePermission | An attempt was made to create a record, and the current user doesn't have permission to create records. |
4 | ErrorKind.EditPermissions | An attempt was made to edit a record, and the current user doesn't have permission to edit records. |
5 | ErrorKind.DeletePermissions | An attempt was made to delete a record, and the current user doesn't have permission to delete records. |
6 | ErrorKind.Conflict | Another change was made to the same record, resulting in a change conflict. Use the **[Refresh](function-refresh.md)** function to reload the record and try the change again. |
7 | ErrorKind.NotFound | An attempt was made to edit or delete a record, but the record couldn't be found. Another user may have changed the record. |
8 | ErrorKind.ConstraintViolated | One or more constraints have been violated. |
9 | ErrorKind.GeneratedValue | An attempt was made to change a column that the data source generates automatically. |
10 | ErrorKind.ReadOnlyValue | An attempt was made to change a column that's read only. |
11 | ErrorKind.Validation | There was a general validation issue detected, that didn't fit one of the other kinds. |
12 | ErrorKind.Unknown | There was an error, but of an unknown kind. |

Errors can be returned for the entire data source, or for only a selected row by providing the _Record_ argument to the function.

Expand Down Expand Up @@ -117,139 +117,3 @@ You can also add a **Reload** button on the form, so that the user can efficient
**ReloadButton.OnSelect = Revert( IceCream, EditRecord )**

[!INCLUDE[footer-include](../../includes/footer-banner.md)]