Error codes

BR-CO-21: Each Document level allowance (BG-20) shall contain a Document level allowance r

Severity: fatal · Syntax: CII, UBL

Official message

Each Document level allowance (BG-20) shall contain a Document level allowance reason (BT-97) or a Document level allowance reason code (BT-98), or both.

What this means

The official message is: Each Document level allowance (BG-20) shall contain a Document level allowance reason (BT-97) or a Document level allowance reason code (BT-98), or both. This page does not add a further obligation.

Typical cause

The assertion in the context above failed for this file.

How to fix it

Adjust the file so the assertion succeeds, then validate it again. This page helps you read the rule.

Business term

BG-20, BT-97, BT-98

Related rules

Context and assertion

UBL /ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = false()]

CII //ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='false']

UBL

exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)

CII

(../ram:Reason) or (../ram:ReasonCode)

Check a file now, free of charge

curl -F "file=@rechnung.xml" https://checkxrechnung.com/v1/validate