{"title":"Codeunit 29 Error Message Handler, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":29,"name":"Error Message Handler","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/","path":"src/Layers/W1/BaseApp/Modules/System/ErrorMessage/ErrorMessageHandler.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:700":{"name":"Error Message","url":"https://jonas-paprotka.de/ref/table/700-error-message/"},"codeunit:1511":{"name":"Notification Lifecycle Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1511-notification-lifecycle-mgt/"},"table:701":{"name":"Error Message Register","url":"https://jonas-paprotka.de/ref/table/701-error-message-register/"}},"procs":[{"name":"AppendTo","line":21,"kind":"procedure","params":1,"steps":[[29,"ext","table",700,"LogLastError",0],[41,"write",700,"Insert"]]},{"name":"Activate","line":46,"kind":"procedure","params":1,"steps":[[48,"event","OnBeforeActivateErrorMessageHandler",0]]},{"name":"ShowErrors","line":61,"kind":"procedure","params":0,"steps":[[64,"call","RegisterErrorMessages",0],[65,"ext","table",700,"ShowErrors",0]]},{"name":"NotifyAboutErrors","line":69,"kind":"procedure","params":0,"steps":[[72,"call","ShowNotification",1],[72,"call","RegisterErrorMessages",0]]},{"name":"InformAboutErrors","line":75,"kind":"procedure","params":1,"steps":[[79,"call","NotifyAboutErrors",0],[81,"call","ShowErrors",0]]},{"name":"ShowNotification","line":85,"kind":"procedure","access":"local","params":1,"steps":[[91,"ext","table",700,"GetContext",1],[92,"ext","codeunit",1511,"RecallNotificationsForRecord",2],[96,"ext","codeunit",1511,"SendNotification",2]]},{"name":"RegisterErrorMessages","line":104,"kind":"procedure","params":1,"steps":[[110,"call","FillErrorCallStack",0],[111,"ext","table",700,"LogLastError",1],[117,"ext","table",700,"GetContext",1],[118,"ext","table",701,"New",1],[123,"ext","table",700,"SetErrorCallStack",1],[123,"ext","table",700,"GetErrorCallStack",0],[124,"write",700,"Insert"],[126,"write",700,"Modify"],[129,"event","OnAfterRegisterErrorMessages",0]]},{"name":"WriteMessagesToFile","line":132,"kind":"procedure","params":2,"steps":[[141,"ext","table",700,"LogLastError",0]]},{"name":"OnGetErrorsHandler","line":203,"kind":"procedure","access":"local","params":1,"steps":[[210,"ext","table",700,"SetErrorCallStack",1],[210,"ext","table",700,"GetErrorCallStack",0],[211,"write",700,"Insert"]]},{"name":"HasErrors","line":217,"kind":"procedure","params":0,"steps":[[219,"ext","table",700,"HasErrors",1]]},{"name":"OnGetLastErrorID","line":223,"kind":"procedure","access":"local","params":2,"steps":[[226,"ext","table",700,"GetLastID",0]]},{"name":"OnGetCachedLastErrorID","line":239,"kind":"procedure","access":"local","params":1,"steps":[[242,"ext","table",700,"GetCachedLastID",0]]},{"name":"OnLogErrorHandler","line":246,"kind":"procedure","access":"local","params":7,"steps":[[251,"ext","table",700,"LogContextFieldError",5],[252,"call","GetLink",1]]},{"name":"OnLogSimpleErrorHandler","line":257,"kind":"procedure","access":"local","params":2,"steps":[[260,"ext","table",700,"LogSimpleMessage",2]]},{"name":"OnPushContextHandler","line":271,"kind":"procedure","access":"local","params":0,"steps":[[273,"ext","table",700,"LogSimpleMessage",2],[275,"write",700,"Modify"]]},{"name":"OnLogLastErrorHandler","line":279,"kind":"procedure","access":"local","params":0,"steps":[[282,"ext","table",700,"LogLastError",0]]}]}