[CII-SR-476] - Only one AdditionalReferencedDocument AttachmentBinaryObject BT-125 is allowed with TypeCode 916.
More than one AttachmentBinaryObject is present under AdditionalReferencedDocument elements with TypeCode 916. This combination may occur no more than once in total.
The rule limits the invoice to one embedded document with document type code 916 (BT-125). This keeps the number of attachments for this reference type unambiguous.
The invoice contains multiple embedded documents with TypeCode 916. You can limit this to one document.
- Check the
AdditionalReferencedDocumententries created withTypeCode916. - Check the call to
AddAdditionalReferencedDocument(...)and the value forattachmentBinaryObject. - Make sure there is no more than one associated
AttachmentBinaryObjectin total. - Generate the invoice again and validate it.
<ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:AttachmentBinaryObject>...</ram:AttachmentBinaryObject> </ram:AdditionalReferencedDocument> <ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:AttachmentBinaryObject>...</ram:AttachmentBinaryObject> </ram:AdditionalReferencedDocument>
<ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:AttachmentBinaryObject>...</ram:AttachmentBinaryObject> </ram:AdditionalReferencedDocument>
AdditionalReferencedDocument.AttachmentBinaryObject(BT-125)AdditionalReferencedDocument.Filename(BT-125-2)FacturXInvoice.AddAdditionalReferencedDocument(id, typeCode, issueDateTime, name, referenceTypeCode, attachmentBinaryObject, filename, uriID)(attachmentBinaryObject: BT-125)
- Information EN16931 XRechnung (CII) – overwrites CEN severity level "warning" because CII-SR-476 has a wrong rule context (see https://github.com/ConnectingEurope/eInvoicing-EN16931/issues/508); replaced by BR-TMP-5
- Information EN16931 XRechnung Extension (CII) – overwrites CEN severity level "warning" because CII-SR-476 has a wrong rule context (see https://github.com/ConnectingEurope/eInvoicing-EN16931/issues/508); replaced by BR-TMP-5
- Information EN16931 XRechnung CVD (CII) – overwrites CEN severity level "warning" because CII-SR-476 has a wrong rule context (see https://github.com/ConnectingEurope/eInvoicing-EN16931/issues/508); replaced by BR-TMP-5
Technical details
The test counts AttachmentBinaryObject elements under AdditionalReferencedDocument elements whose normalized TypeCode equals the text value 916. The count must be no greater than 1.
The rule applies to referenced documents in the invoice's ApplicableHeaderTradeAgreement.
rule/@context)assert/@test)- 2026-08-312026-08-31 · Addedcustom level "information" for `CII-SR-475` and `CII-SR-476` because both rules have a wrong rule context in CEN Schematron 1.3.16 (see https://github.com/ConnectingEurope/eInvoicing-EN16931/issues/508); replaced by BR-TMP-4 and BR-TMP-5 in XRechnung Schematron