# ErrorInfo.DetailedMessage([Text]) Method
> Version: _Available or changed with runtime version 8.0._
Specifies a detailed error message.
## Syntax
```al
[DetailedMessage := ]  ErrorInfo.DetailedMessage([DetailedMessage: 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] DetailedMessage*
Type: ../text/text-data-type
The detailed message of the ErrorInfo
## Return Value
*[Optional] DetailedMessage*
Type: ../text/text-data-type
The current detailed message of the ErrorInfo.
## Remarks
The detailed message isn't shown to the end user, but is included in the Copy details part of the error dialog. For more information about the Copy details part of the error dialog, see Understanding the error dialog<../../devenv-error-dialog>.
You aren't required to set a detailed message for error dialogs. But it might be helpful to add more technical information here to help a person who needs to troubleshoot the issue.
## Example
```al
var
    dimension: Text[30];
    vendorCode: Text[30];
    MyErrorInfo: ErrorInfo;
begin
    // set up the error info object
    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
Understanding the error dialog<../../devenv-error-dialog>
../../devenv-al-error-handling
Get 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-detailedmessage-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-detailedmessage-method/
