{"title":"ErrorInfo.DetailedMessage([Text]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/errorinfo/errorinfo-detailedmessage-method/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/errorinfo/errorinfo-detailedmessage-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Specifies a detailed error message.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"ErrorInfo.DetailedMessage([Text]) Method","slug":"errorinfodetailedmessagetext-method","at":0,"chars":1731},{"level":2,"title":"Syntax","slug":"syntax","at":139,"chars":160},{"level":2,"title":"Parameters","slug":"parameters","at":299,"chars":196},{"level":2,"title":"Return Value","slug":"return-value","at":495,"chars":121},{"level":2,"title":"Remarks","slug":"remarks","at":616,"chars":438},{"level":2,"title":"Example","slug":"example","at":1054,"chars":451},{"level":2,"title":"Related information","slug":"related-information","at":1505,"chars":226}],"text":"# ErrorInfo.DetailedMessage([Text]) Method\n> Version: _Available or changed with runtime version 8.0._\nSpecifies a detailed error message.\n## Syntax\n```al\n[DetailedMessage := ]  ErrorInfo.DetailedMessage([DetailedMessage: Text])\n```\n> NOTE\n> This method can be invoked using property access syntax.\n## Parameters\nErrorInfo\nType: errorinfo-data-type\nAn instance of the errorinfo-data-type data type.\n*[Optional] DetailedMessage*\nType: ../text/text-data-type\nThe detailed message of the ErrorInfo\n## Return Value\n*[Optional] DetailedMessage*\nType: ../text/text-data-type\nThe current detailed message of the ErrorInfo.\n## Remarks\nThe 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>.\nYou 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.\n## Example\n```al\nvar\n    dimension: Text[30];\n    vendorCode: Text[30];\n    MyErrorInfo: ErrorInfo;\nbegin\n    // set up the error info object\n    MyErrorInfo.Message(\n        StrSubstNo('The dimension value must be blank for the dimension %1 for Vendor %2', dimension, vendorCode)\n    );\n    MyErrorInfo.DetailedMessage('Add some text to help the person troubleshooting this error.');\n    // maybe set more properties\n\n    Error(MyErrorInfo);\nend\n```\n## Related information\nerrorinfo-data-type\nUnderstanding the error dialog<../../devenv-error-dialog>\n../../devenv-al-error-handling\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}