# ErrorInfo.Title([Text]) Method
> Version: _Available or changed with runtime version 11.0._
Specifies the title of the error.
## Syntax
```al
[Title := ]  ErrorInfo.Title([Title: Text])
```
> NOTE
> This method can be invoked using property access syntax.
## Parameters
ErrorInfo
Type: errorinfo-data-type
An instance of the errorinfo-data-type data type.
*[Optional] Title*
Type: ../text/text-data-type
The title of the ErrorInfo
## Return Value
*[Optional] Title*
Type: ../text/text-data-type
The current title of the ErrorInfo.
## Remarks
Set the Title property on error dialogs that are presented to the user to provide a more informative issue description. For advice on how to use the title to describe what's wrong and enable the user to quickly scan the meaning of the error, see User experience guidelines for errors<../../devenv-error-handling-guidelines#error-message-titles>.
You aren't required to set a title for error dialogs. For example, you might not want to add it for validation error messages. For more information, see
Error message best practices - what to say?<../../devenv-error-handling-guidelines#error_message_best_practices>.
## Example
```al
var
    dimension: Text[30];
    vendorCode: Text[30];
    MyErrorInfo: ErrorInfo;
begin
    // set up the error info object
    MyErrorInfo.Title('The line dimension value isn''t valid');
    MyErrorInfo.Message(
        StrSubstNo('The dimension value must be blank for the dimension %1 for Vendor %2', dimension, vendorCode)
    );
    MyErrorInfo.DetailedMessage('Add some text to help the person troubleshooting this error.');
    // maybe set more properties

    Error(MyErrorInfo);
end
```
## Related information
errorinfo-data-type
User experience guidelines for errors<../../devenv-error-handling-guidelines>
../../devenv-al-error-handling
Getting Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/errorinfo/errorinfo-title-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/errorinfo/errorinfo-title-method/
