At most one attachment for documents with TypeCode 916

Warning CII-SR-476 Syntax (UBL/CII)

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

Recommendation: The invoice remains valid but should be corrected so that it can be processed automatically.
What is wrong

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.

What the rule means

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.

Affected fields BT-125
Please use no more than one attachment for `TypeCode` 916

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.

What to do
  1. Find the ram:AdditionalReferencedDocument elements with ram:TypeCode 916 in ApplicableHeaderTradeAgreement.
  2. Check AdditionalReferencedDocument.AttachmentBinaryObject and AdditionalReferencedDocument.Filename, as well as the call to AddAdditionalReferencedDocument(...).
  3. Ensure that there is no more than one ram:AttachmentBinaryObject in total for this type.
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<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>
✓ Correct
<ram:ApplicableHeaderTradeAgreement>
  <ram:AdditionalReferencedDocument>
    <ram:TypeCode>916</ram:TypeCode>
    <ram:AttachmentBinaryObject>QQ==</ram:AttachmentBinaryObject>
  </ram:AdditionalReferencedDocument>
</ram:ApplicableHeaderTradeAgreement>
Check in FactoorSharp
  • AdditionalReferencedDocument.AttachmentBinaryObject (BT-125)
  • AdditionalReferencedDocument.Filename (BT-125-2)
  • FacturXInvoice.AddAdditionalReferencedDocument(id, typeCode, issueDateTime, name, referenceTypeCode, attachmentBinaryObject, filename, uriID) (attachmentBinaryObject: BT-125)
Different severity at KoSIT
  • 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.

Where the rule applies

The rule applies to ram:AdditionalReferencedDocument within ApplicableHeaderTradeAgreement at document level.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement
Test expression (assert/@test)
count(ram:AdditionalReferencedDocument[normalize-space(ram:TypeCode) = '916']/ ram:AttachmentBinaryObject) <= 1
Changes in the KoSIT validation rules
  • 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