InvoiceValidator.eu

CII-SR-476

warningEN 16931syntax binding ruleCIIBT-125

Only one AdditionalReferencedDocument AttachmentBinaryObject BT-125 is allowed with TypeCode 916.

Why it fails

More than one attached document (BT-125) is present in an AdditionalReferencedDocument with TypeCode 916. EN 16931 gives this a single value, so a receiver has no rule for choosing between the copies. This one is reported as a warning, not an error: the invoice still passes EN 16931, but which copy a receiving system picks is undefined and some will refuse it. To attach two files, repeat the whole AdditionalReferencedDocument group, once per file.

How to fix it

Keep the one attached document (BT-125) that is correct and delete the others. Repeated singular elements almost always come from a serialiser emitting every value it holds instead of choosing one — fix it at the source, not by trimming the output file.

What the validator checks

CII — context /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement

count(ram:AdditionalReferencedDocument[normalize-space(ram:TypeCode) = '916']/ram:AttachmentBinaryObject) <= 1

Related rules

Part of CII-SR — CII restrictions.

Check your own invoice against CII-SR-476

…or paste the XML instead

Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.