Skip to content

Error

FX-SCH-A-000266: Each line needs one line number block

In short

Error: fails the selected checks.

FX-SCH-A-000266 means an invoice line has no line information block (ram:AssociatedDocumentLineDocument), or has more than one. Make sure each line has exactly one block, then export and recheck the invoice.

On this page

What it means

Each invoice line (BG-25) must contain exactly one ram:AssociatedDocumentLineDocument element. This block holds the line number (BT-126) and any line note (BT-127). The rule counts these blocks in each ram:IncludedSupplyChainTradeLineItem. It applies to the Basic, EN 16931 and Extended profiles of Factur-X and ZUGFeRD.

Why it matters

The block groups the line number and notes for that line. A missing or repeated block does not match the required XML structure.

How to fix it

Check the affected line's number and notes in your invoicing software. If you create the XML yourself, add the missing ram:AssociatedDocumentLineDocument or combine unintended duplicates, preserving the correct ram:LineID and any relevant notes. If your software produces the faulty structure, ask its supplier to correct the export. Export again and recheck.

Once the file is corrected, check it again for free: Validate a ZUGFeRD invoice

Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice Beta

The rule as published

Element 'ram:AssociatedDocumentLineDocument' must occur exactly 1 times.

Where this rule applies

Rule set Version
Factur-X 1.09 BASIC 1.0.9-2
Factur-X 1.09 EN 16931 1.0.9-2
Factur-X 1.09 EXTENDED 1.0.9-2
ZUGFeRD 2.5 BASIC 2.5.2
ZUGFeRD 2.5 EN 16931 2.5.2
ZUGFeRD 2.5 EXTENDED 2.5.2
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether FX-SCH-A-000266 still fails, and which other rules do.

Updated 8 November 2026