---
title: "Codeunit 31 Last Error Context Element, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/31-last-error-context-element/points/
object: https://jonas-paprotka.de/ref/codeunit/31-last-error-context-element/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/31-last-error-context-element/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 31 Last Error Context Element, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/31-last-error-context-element/points/

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

## Set

[Line 10](https://jonas-paprotka.de/ref/codeunit/31-last-error-context-element/source/#L10).

- [12](https://jonas-paprotka.de/ref/codeunit/31-last-error-context-element/source/#L12) calls [Codeunit 30 Error Context Element](https://jonas-paprotka.de/ref/codeunit/30-error-context-element/) `Copy`

## Set

[Line 15](https://jonas-paprotka.de/ref/codeunit/31-last-error-context-element/source/#L15).

- [17](https://jonas-paprotka.de/ref/codeunit/31-last-error-context-element/source/#L17) calls [Codeunit 30 Error Context Element](https://jonas-paprotka.de/ref/codeunit/30-error-context-element/) `Set`

## GetErrorMessage

[Line 20](https://jonas-paprotka.de/ref/codeunit/31-last-error-context-element/source/#L20).

- [23](https://jonas-paprotka.de/ref/codeunit/31-last-error-context-element/source/#L23) calls [Codeunit 30 Error Context Element](https://jonas-paprotka.de/ref/codeunit/30-error-context-element/) `GetErrorMessage`

## Source

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

JOP-AL, 2026-11-20.
