---
title: "Codeunit 11 Gen. Jnl.-Check Line"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/11-gen-jnl-check-line/
type: codeunit
id: 11
name: "Gen. Jnl.-Check Line"
app: "Base Application"
namespace: Microsoft.Finance.GeneralLedger.Journal
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/11-gen-jnl-check-line/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 11 Gen. Jnl.-Check Line

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/11-gen-jnl-check-line/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Finance.GeneralLedger.Journal |
| Versions | 17-28 |
| Source file | Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| RunCheck | (var Record Gen. Journal Line) | - | public | 17-28 | - | - |
| GetErrors | (var Record Error Message) | - | public | 17-28 | - | - |
| DateNotAllowed | (Date) | Boolean | public | 17-28 | - | - |
| IsDateNotAllowed | (Date, var RecordId) | Boolean | public | 17-28 | - | - |
| SetSkipFiscalYearCheck | (Boolean) | - | public | 17-28 | - | - |
| SetOverDimErr | () | - | public | 17-28 | - | - |
| CheckSalesDocNoIsNotUsed | (var Record Gen. Journal Line) | - | public | 17-28 | - | - |
| CheckPurchDocNoIsNotUsed | (var Record Gen. Journal Line) | - | public | 17-28 | - | - |
| CheckDocType | (Record Gen. Journal Line) | - | public | 17-28 | - | - |
| SetBatchMode | (Boolean) | - | public | 17-28 | - | - |
| SetLogErrorMode | (Boolean) | - | public | 17-28 | - | - |
| IsVendorPaymentToCrMemo | (Record Gen. Journal Line) | Boolean | public | 18-28 | - | - |
| ErrorIfPositiveAmt | (Record Gen. Journal Line) | - | public | 19-28 | - | - |
| ErrorIfNegativeAmt | (Record Gen. Journal Line) | - | public | 19-28 | - | - |
| ThrowGenJnlLineError | (Record Gen. Journal Line, Text, Text) | - | public | 19-28 | - | - |
| CheckGenProdPostingGroupWhenAdjustForPmtDisc | (Record Gen. Journal Line) | - | public | 19-28 | - | - |
| CheckBalGenProdPostingGroupWhenAdjustForPmtDisc | (Record Gen. Journal Line) | - | public | 19-28 | - | - |
| LogTestField | (Variant, Integer) | - | public | 19-22 | Pending 20.0 | Replaced with TestField(..., ErrorInfo.Create()) |
| LogTestField | (Variant, Integer, Variant) | - | public | 19-22 | Pending 20.0 | Replaced with TestField(..., ErrorInfo.Create()) |
| LogError | (Variant, Text) | - | public | 19-22 | Pending 20.0 | Replaced with Error(..., ErrorInfo.Create()) |
| LogFieldError | (Variant, Integer, Text) | - | public | 19-22 | Pending 20.0 | Replaced with FieldError(..., ErrorInfo.Create()) |
| DeferralPostingDateNotAllowed | (Date) | Boolean | public | 20-28 | - | - |
| DateNotAllowed | (Date, Code[20]) | Boolean | public | 20-28 | - | - |
| IsDeferralPostingDateNotAllowed | (Date, var RecordId) | Boolean | public | 20-28 | - | - |
| IsDateNotAllowed | (Date, var RecordId, Code[20]) | Boolean | public | 20-28 | - | - |
| SetGenJnlBatch | (Record Gen. Journal Batch) | - | public | 20-28 | - | - |
| CheckVATDateAllowed | (Date) | - | internal | 21-22 | - | - |
| HasVAT | (var Record Gen. Journal Line) | Boolean | internal | 21-28 | - | - |
| CheckGLAccountSourceCurrency | (var Record G/L Account, Code[10]) | - | internal | 25-28 | - | - |
| SetIgnoreJournalTemplNameMandatoryCheck | () | - | public | 26-28 | - | - |
| CheckDeferralPostingAllowed | (Boolean) | - | public | 27-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCheckAccountNo | (var Record Gen. Journal Line) | 17-28 | - | - |
| Integration event | OnAfterCheckBalAccountNo | (var Record Gen. Journal Line) | 17-28 | - | - |
| Integration event | OnAfterCheckGenJnlLine | (var Record Gen. Journal Line) | 17-18 | - | - |
| Integration event | OnAfterDateNoAllowed | (Date, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeDateNotAllowed | (Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckAccountNo | (var Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckBalAccountNo | (var Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckDimensions | (var Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckDocType | (Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckBalDocType | (Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckICPartner | (Enum Gen. Journal Account Type, Code[20], Option, var Boolean) | 17-20 | - | - |
| Integration event | OnBeforeCheckSalesDocNoIsNotUsed | (Option, Code[20], var Boolean, Record Gen. Journal Line) | 17-21 | - | - |
| Integration event | OnBeforeCheckPurchDocNoIsNotUsed | (Option, Code[20], var Boolean, Record Gen. Journal Line) | 17-28 | - | - |
| Integration event | OnBeforeErrorIfNegativeAmt | (Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeErrorIfPositiveAmt | (Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeRunCheck | (var Record Gen. Journal Line) | 17-23 | - | - |
| Integration event | OnBeforeCheckPostingDateInFiscalYear | (Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnCheckDimensionsOnAfterAssignDimTableIDs | (var Record Gen. Journal Line, var Integer, var Code[20]) | 17-19 | - | - |
| Integration event | OnBeforeCheckAccountType | (Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckBalAccountType | (Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckAppliesToDocNo | (Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckJobNoIsEmpty | (Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckZeroAmount | (Record Gen. Journal Line, Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckElectronicPaymentFields | (var Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeIsVendorPaymentToCrMemo | (Record Gen. Journal Line, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnAfterCheckGenJnlLine | (var Record Gen. Journal Line, var Codeunit Error Message Management) | 19-28 | - | - |
| Integration event | OnBeforeLogTestField | (Variant, Integer, var Boolean) | 19-22 | Pending 20.0 | Will be removed due to calling procedure obsoletion |
| Integration event | OnAfterDeferralPostingDateNoAllowed | (Date, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeIsDateNotAllowed | (Date, RecordId, Record Gen. Journal Batch, var Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeIsDeferralPostingDateNotAllowed | (Date, RecordId, Record Gen. Journal Batch, var Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeTestDocumentNo | (var Record Gen. Journal Line, var Boolean) | 20-28 | - | - |
| Integration event | OnCheckDimensionsOnAfterAssignDimTableIDs | (var Record Gen. Journal Line, var Integer, var Code[20], var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeCheckICPartner | (Enum Gen. Journal Account Type, Code[20], Option, var Boolean, Record Gen. Journal Line) | 21-28 | - | - |
| Integration event | OnBeforeCheckSalesDocNoIsNotUsed | (Option, Code[20], var Boolean, Record Gen. Journal Line, var Record Cust. Ledger Entry) | 22-28 | - | - |
| Integration event | OnBeforeCheckVATDate | (var Record Gen. Journal Line, var Boolean) | 22-28 | - | - |
| Integration event | OnCheckSalesDocNoIsNotUsedOnAfterSetFilters | (Record Gen. Journal Line, var Record Cust. Ledger Entry) | 22-28 | - | - |
| Integration event | OnCheckAccountNoOnBeforeCheckICPartner | (var Record Gen. Journal Line, var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeRunCheck | (var Record Gen. Journal Line, Boolean, var Boolean) | 24-28 | - | - |
| Integration event | OnBeforeTestAccountAndBalAccountType | (var Record Gen. Journal Line, var Boolean) | 24-28 | - | - |
| Integration event | OnBeforeTestAppliesToID | (var Record Gen. Journal Line, var Boolean) | 24-28 | - | - |
| Integration event | OnBeforeCheckDates | (var Record Gen. Journal Line) | 28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
