---
title: "Codeunit 6220 Sustain. Jnl. Errors Mgt., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/points/
object: https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/
app: "Sustainability"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/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 6220 Sustain. Jnl. Errors Mgt., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/points/

10 procedures and triggers with a step in src/Apps/W1/Sustainability/app/src/Journal/SustainJnlErrorsMgt.Codeunit.al, in source order, read from the text, not from a run.

## CollectSustJnlCheckParameters

[Line 17](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L17).

- [23](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L23) calls `GetFullBatchCheck`
- [24](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L24) calls `GetRecXRecOnModify`

## GetErrorsFromSustJnlCheckResultValues

[Line 28](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L28).

- [36](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L36) writes [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) DeleteAll
- [38](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L38) calls `GetDeletedSustJnlLine`
- [42](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L42) writes [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) DeleteAll
- [49](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L49) writes [Table 700 Error Message](https://jonas-paprotka.de/ref/table/700-error-message/) DeleteAll
- [53](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L53) calls [Codeunit 28 Error Message Management](https://jonas-paprotka.de/ref/codeunit/28-error-message-management/) `GetErrorsFromResultValues`
- [56](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L56) calls `SetFullBatchCheck`

## SetRecXRecOnModify

[Line 59](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L59).

- [61](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L61) calls `BackgroundCheckEnabled`
- [62](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L62) calls `SaveJournalLineToBuffer`
- [63](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L63) calls `SaveJournalLineToBuffer`

## SaveJournalLineToBuffer

[Line 67](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L67), local.

- [71](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L71) writes [Table 6214 Sustainability Jnl. Line](https://jonas-paprotka.de/ref/table/6214-sustainability-jnl-line/) Modify
- [74](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L74) writes [Table 6214 Sustainability Jnl. Line](https://jonas-paprotka.de/ref/table/6214-sustainability-jnl-line/) Insert

## GetRecXRecOnModify

[Line 78](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L78).

- [85](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L85) writes [Table 6214 Sustainability Jnl. Line](https://jonas-paprotka.de/ref/table/6214-sustainability-jnl-line/) Delete

## GetDeletedSustJnlLine

[Line 102](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L102).

- [107](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L107) writes [Table 6214 Sustainability Jnl. Line](https://jonas-paprotka.de/ref/table/6214-sustainability-jnl-line/) Insert

## InsertDeletedLine

[Line 118](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L118).

- [120](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L120) calls `BackgroundCheckEnabled`

## OnDeleteRecordEventSustainabilityJournal

[Line 137](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L137), local.

- [139](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L139) calls `InsertDeletedLine`

## OnModifyRecordEventSustainabilityJournal

[Line 143](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L143), local.

- [145](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L145) calls `SetRecXRecOnModify`

## OnInsertRecordEventSustainabilityJournal

[Line 149](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L149), local.

- [151](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/source/#L151) calls `SetRecXRecOnModify`

## Source

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

JOP-AL, 2026-11-20.
