---
title: "Codeunit 6220 Sustain. Jnl. Errors Mgt."
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/
type: codeunit
id: 6220
name: "Sustain. Jnl. Errors Mgt."
app: "Sustainability"
namespace: Microsoft.Sustainability.Journal
versions: "24-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
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.

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

| | |
| --- | --- |
| App | Sustainability |
| Namespace | Microsoft.Sustainability.Journal |
| Versions | 24-29 |
| Minors | W1 24.0-29.0; DE 24.0-29.0; US 24.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/6220-sustain-jnl-errors-mgt/editions.json) |
| SingleInstance | Yes |
| Access | Internal |
| Source file | src/Journal/SustainJnlErrorsMgt.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CollectSustJnlCheckParameters | (SustainabilityJnlLine: Record "Sustainability Jnl. Line"; var ErrorHandlingParameters: Record "Error Handling Parameters") | - | public | 24-29 | - | - |
| GetErrorsFromSustJnlCheckResultValues | (ResultValues: List of [Text]; var TempErrorMsg: Record "Error Message" temporary; ErrorHandlingParameters: Record "Error Handling Parameters") | - | public | 24-29 | - | - |
| SetRecXRecOnModify | (xRec: Record "Sustainability Jnl. Line"; Rec: Record "Sustainability Jnl. Line") | - | public | 24-29 | - | - |
| GetRecXRecOnModify | (var xRec: Record "Sustainability Jnl. Line"; var Rec: Record "Sustainability Jnl. Line") | Boolean | public | 24-29 | - | - |
| SetFullBatchCheck | (NewFullBatchCheck: Boolean) | - | public | 24-29 | - | - |
| GetFullBatchCheck | () | Boolean | public | 24-29 | - | - |
| GetDeletedSustJnlLine | (var TempSustJnlLine: Record "Sustainability Jnl. Line" temporary; ClearBuffer: Boolean) | Boolean | public | 24-29 | - | - |
| InsertDeletedLine | (SustJnlLine: Record "Sustainability Jnl. Line") | - | public | 24-29 | - | - |
| BackgroundCheckEnabled | () | Boolean | public | 24-29 | - | - |

## Source

Symbols: Microsoft.Sustainability.symbols.b3780cd9-f8f8-4a83-a4d5-0c2ad87b28af, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
