Home › Error code lexicon › CII-SR-476
CII-SR-476 Field BT-125 CII syntax rules (CII-SR)

Fix CII-SR-476: More than one attachment (BT-125) in the invoice

[CII-SR-476] - Only one AdditionalReferencedDocument AttachmentBinaryObject BT-125 is allowed with TypeCode 916.

CII-SR-476 in your own invoice? Upload the file and find every error in seconds.

What does CII-SR-476 mean?

CII-SR-476 is a syntax rule of EN 16931 for CII. It allows only one ram:AttachmentBinaryObject (BT-125) on attachments with TypeCode 916 and counts all attachments of the invoice together, not each one on its own. But the standard allows any number of attachments (BG-24). From two embedded attachments on, the warning therefore always appears; the invoice stays valid.

Common causes of CII-SR-476

How to fix CII-SR-476

  1. Find the faulty spot in the XML. Open the XML of the invoice and go to field BT-125 along this XPath://ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject
  2. Apply the fix. Harmless: the rule counts all attachments of the invoice together instead of each one on its own. EN 16931 explicitly allows several attachments (BG-24 any number of times). The invoice stays valid.
  3. Validate again. Save the file and validate it again to check that CII-SR-476 is no longer reported.
Concrete fix

Harmless: the rule counts all attachments of the invoice together instead of each one on its own. EN 16931 explicitly allows several attachments (BG-24 any number of times). The invoice stays valid.

XPath//ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject

Frequent questions about CII-SR-476

Is CII-SR-476 an error?
No. It is a warning, the invoice stays valid. The rule counts all attachments together instead of each one on its own.
Can I avoid the warning?
Only with a single attachment. You can merge several files into one PDF beforehand; you do not have to.

Related error codes

Check CII-SR-476 automatically

Instead of digging through the XML by hand you can validate your ZUGFeRD or XRechnung file online: upload the PDF or the XML and you get every error with rule ID, affected field, fix and XPath, as a readable report or as JSON through the API.

Find every error automatically instead of searching by hand

Upload your ZUGFeRD, Factur-X or XRechnung file: you get every violation back with rule ID, field, fix and XPath.

Validate online for free
Check invoice