---
title: "Codeunit 29 Error Message Handler, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/points/
object: https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 29 Error Message Handler, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/points/

16 procedures and triggers with a step in src/Layers/W1/BaseApp/Modules/System/ErrorMessage/ErrorMessageHandler.Codeunit.al, in source order, read from the text, not from a run.

## AppendTo

[Line 21](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L21).

- [29](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L29) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `LogLastError`
- [41](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L41) writes [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) Insert

## Activate

[Line 46](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L46).

- [48](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L48) raises `OnBeforeActivateErrorMessageHandler`

## ShowErrors

[Line 61](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L61).

- [64](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L64) calls `RegisterErrorMessages`
- [65](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L65) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `ShowErrors`

## NotifyAboutErrors

[Line 69](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L69).

- [72](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L72) calls `ShowNotification`
- [72](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L72) calls `RegisterErrorMessages`

## InformAboutErrors

[Line 75](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L75).

- [79](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L79) calls `NotifyAboutErrors`
- [81](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L81) calls `ShowErrors`

## ShowNotification

[Line 85](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L85), local.

- [91](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L91) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `GetContext`
- [92](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L92) calls [Codeunit 1511 Notification Lifecycle Mgt.](https://jonas-paprotka.de/ref/codeunit/1511-notification-lifecycle-mgt/) `RecallNotificationsForRecord`
- [96](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L96) calls [Codeunit 1511 Notification Lifecycle Mgt.](https://jonas-paprotka.de/ref/codeunit/1511-notification-lifecycle-mgt/) `SendNotification`

## RegisterErrorMessages

[Line 104](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L104).

- [110](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L110) calls `FillErrorCallStack`
- [111](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L111) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `LogLastError`
- [117](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L117) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `GetContext`
- [118](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L118) calls [Table 701 Error Message Register](https://jonas-paprotka.de/ref/table/701-error-message-register/) `New`
- [123](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L123) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `SetErrorCallStack`
- [123](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L123) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `GetErrorCallStack`
- [124](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L124) writes [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) Insert
- [126](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L126) writes [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) Modify
- [129](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L129) raises `OnAfterRegisterErrorMessages`

## WriteMessagesToFile

[Line 132](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L132).

- [141](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L141) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `LogLastError`

## OnGetErrorsHandler

[Line 203](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L203), local.

- [210](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L210) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `SetErrorCallStack`
- [210](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L210) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `GetErrorCallStack`
- [211](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L211) writes [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) Insert

## HasErrors

[Line 217](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L217).

- [219](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L219) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `HasErrors`

## OnGetLastErrorID

[Line 223](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L223), local.

- [226](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L226) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `GetLastID`

## OnGetCachedLastErrorID

[Line 239](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L239), local.

- [242](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L242) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `GetCachedLastID`

## OnLogErrorHandler

[Line 246](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L246), local.

- [251](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L251) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `LogContextFieldError`
- [252](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L252) calls `GetLink`

## OnLogSimpleErrorHandler

[Line 257](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L257), local.

- [260](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L260) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `LogSimpleMessage`

## OnPushContextHandler

[Line 271](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L271), local.

- [273](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L273) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `LogSimpleMessage`
- [275](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L275) writes [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) Modify

## OnLogLastErrorHandler

[Line 279](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L279), local.

- [282](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/source/#L282) calls [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) `LogLastError`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
