- Only one AdditionalReferencedDocument AttachmentBinaryObject BT-125 is allowed with TypeCode 916.
More than one ram:AttachmentBinaryObject is present in total for additional referenced documents whose ram:TypeCode is 916. The rule allows at most one attachment for this document type.
The rule limits the number of attachments for additional referenced documents identified by TypeCode 916. This document type can therefore have no more than one binary attachment.
More than one attachment is included for the additional referenced documents with TypeCode 916. The invoice can be adjusted so that only one ram:AttachmentBinaryObject is included for this type.
- Find the
ram:AdditionalReferencedDocumentelements withram:TypeCode916inApplicableHeaderTradeAgreement. - Check
AdditionalReferencedDocument.AttachmentBinaryObjectandAdditionalReferencedDocument.Filename, as well as the call toAddAdditionalReferencedDocument(...). - Ensure that there is no more than one
ram:AttachmentBinaryObjectin total for this type. - Generate the invoice again and validate it once more.
<ram:ApplicableHeaderTradeAgreement> <ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:AttachmentBinaryObject>QQ==</ram:AttachmentBinaryObject> </ram:AdditionalReferencedDocument> <ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:AttachmentBinaryObject>Qg==</ram:AttachmentBinaryObject> </ram:AdditionalReferencedDocument> </ram:ApplicableHeaderTradeAgreement>
<ram:ApplicableHeaderTradeAgreement> <ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:AttachmentBinaryObject>QQ==</ram:AttachmentBinaryObject> </ram:AdditionalReferencedDocument> </ram:ApplicableHeaderTradeAgreement>
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 XPath counts ram:AttachmentBinaryObject elements in ram:AdditionalReferencedDocument whose normalized ram:TypeCode value is 916 and allows no more than one.
The rule applies to ram:AdditionalReferencedDocument within ApplicableHeaderTradeAgreement at document level.
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