Improving error handling and error messages reduces friction for the users and highly impacts the user experience. Clear, informative error messages help users understand what went wrong and how to correct it, reducing frustration, and improving user satisfaction.
For guidance on how to formulate good error messages, see Error message best practices - what to say? in the following section.
With Business Central 2023 release wave 2, the error handling framework has been enhanced to include promoted actions in both error dialogs and validation errors. These promoted actions are designed to assist users in resolving errors more effectively. There are currently two main scenarios to keep in mind when deciding how to use recommended actions:
Here are some quick guidelines on when to use each type of error message and its accompanying recommended actions. However, it's essential to begin by considering whether the error could have been avoided in the first place.
| Error type | Description |
|---|---|
| Task dialogs | Task dialogs are used when an error can be mitigated by the user choosing between two (sometimes three) different options to continue their task without encountering an error. |
| Error messages with Fix-it actions | Fix-it actions can be used when the cause and solution to the error is known and can be solved by users with just one step. |
| Error messages with Show-it actions | Show-it actions can be used when an error must be corrected on a related table. A Show-it action can then offer a shortcut to the related table, enabling users to correct the error by themselves with one or multiple steps, while keeping the context of their current task. |
Fix-it actions are for when the correct value is known. If all the following four statements are true for your error case, then consider adding a recommended Fix-it action in your error message to enable users to easily unblock themselves from the error.
Example of an error message with a Fix-it action:

Example of a validation error dialog with a Fix-it action:

For more information, see Error messages with Fix-it actions
Show-it actions are for when the error location is known. A shortcut can then be provided to show the related page to enable users to easily unblock themselves from the error. If all the following four statements are true for your error case, then consider adding a recommended Show-it action in your error message.
Example of an error dialog with a Show-it action:

Example of a validation dialog with a Show-it action:

For more information, see Error messages with Show-it actions
Error messages are meant to unblock users. The primary purpose of the error dialog is to alert users to the fact that something has gone wrong and that they need to take action to continue. In the following, you find best practices for what to say in an error dialog versus in an in-line validation error situation.
Error dialogs should answer the following questions:
Title: [What went wrong]
Body content: [Why, if relevant] + [How to fix it]
Button label: [Clear action]
Validation errors should answer the following questions:
Title (if needed): [What went wrong]
Body content: [How to fix it]
Button label: [Clear action]
Use the following guidelines to remove friction for the users and positively affect the user experience, even when an error occurs.
The title of an error dialog is the first thing the user sees. Use the title to describe what’s wrong and enable the user to quickly scan the meaning.
In the body of the error dialog, use positive cases (telling what the user can do) where possible. Sometimes you need to tell what you can’t do, but for validation errors space is limited, so focus on the solution.
When you need to use error dialogs, where possible use a Fix-it action or a Show-it action. To achieve consistency in the user experience of such error dialogs, consider following these guidelines for button labels.
For Fix-it actions, consider
For Show-it actions, consider
When writing error messages, consider using these overall rules of thumb:
To write error messages that are simple and feel human, consider using contractions:
In error situations, it's crucial to show users we’re on their side. Utilize plain language and steer clear of the following words and phrases:
Remember these rules of thumb:
=, ", and ()For more guidelines on how to communicate to the user in a way they understand, see Microsoft's brand voice: Above all, simple and human.
Microsoft’s voice guidelines
Actionable errors
Understanding the error dialog
Dialog.Error(ErrorInfo) Method
AL error handling