WarningXRechnung (DE)DEInput required

BR-DE-26

Wenn im Element Invoice type code (BT-3) der Code 384 (Corrected invoice) übergeben wird, soll PRECEDING INVOICE REFERENCE BG-3 mind. einmal vorhanden sein.

What does this rule mean?

A corrected invoice (type code 384) is missing the preceding invoice reference (BG-3).

A corrected invoice must state which earlier invoice it corrects.

BG-3
Preceding invoice reference (group)
BT-3
Invoice type code (UNTDID 1001)
Official rule message (standard)

Wenn im Element Invoice type code (BT-3) der Code 384 (Corrected invoice) übergeben wird, soll PRECEDING INVOICE REFERENCE BG-3 mind. einmal vorhanden sein.

Official rule message from the standard.

Where the rule applies

Syntax: CII · UBL

The same rule, expressed twice: UBL and CII name the same fields with different paths. Running a CII file against the UBL rules is why you get errors that mean nothing.

UBL

  • /ubl:Invoice | /cn:CreditNote

CII

  • /rsm:CrossIndustryInvoice

Technical test

The rule passes when this Schematron expression holds true:

not(normalize-space(rsm:ExchangedDocument/ram:TypeCode) = '384') or                     (rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument)

How to fix it

A missing or incorrect business entry only you can supply. Add or correct it, then re-check.

Add the preceding invoice reference.

Correct the affected entry in your XML, then re-check the invoice. Validation runs locally in your browser — your file never leaves your machine.

Check an e-invoice here

Drop an XML or ZUGFeRD PDF file here. Validation runs locally in your browser against EN 16931 — your file never leaves your machine.

100% local — no upload, no account.

Related rules

← Back to the error library