Error codes

BR-CO-23: Each Invoice line allowance (BG-27) shall contain an Invoice line allowance reas

Severity: fatal · Syntax: CII, UBL

Official message

Each Invoice line allowance (BG-27) shall contain an Invoice line allowance reason (BT-139) or an Invoice line allowance reason code (BT-140), or both.

What this means

The official message is: Each Invoice line allowance (BG-27) shall contain an Invoice line allowance reason (BT-139) or an Invoice line allowance reason code (BT-140), 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-27, BT-139, BT-140

Related rules

Context and assertion

UBL //cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]

CII //ram:SpecifiedLineTradeSettlement/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