Attached document no more than once

Warning BR-TMP-5 XRechnung

BT-125 "Attached document" (ram:AttachmentBinaryObject) may occur no more than once within "Additional Supporting documents" (BG-24).

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

Within this additional supporting document, ram:AttachmentBinaryObject occurs more than once. The attached document BT-125 may occur no more than once in this document.

What the rule means

BT-125 contains the attached document in document group BG-24. Limiting it to at most one ram:AttachmentBinaryObject prevents multiple document contents from being assigned to the same supporting document.

Affected fields BT-125 BG-24
Please attach the supporting document no more than once

The additional supporting document contains multiple ram:AttachmentBinaryObject elements. The document content can be attached only once in this document.

What to do
  1. Remove any extra ram:AttachmentBinaryObject elements from the additional supporting document.
  2. Check AdditionalReferencedDocument.AttachmentBinaryObject or the attachmentBinaryObject parameter in the call to AddAdditionalReferencedDocument(...).
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:AdditionalReferencedDocument>
  <ram:TypeCode>916</ram:TypeCode>
  <ram:AttachmentBinaryObject>QUJD</ram:AttachmentBinaryObject>
  <ram:AttachmentBinaryObject>REVG</ram:AttachmentBinaryObject>
</ram:AdditionalReferencedDocument>
✓ Correct
<ram:AdditionalReferencedDocument>
  <ram:TypeCode>916</ram:TypeCode>
  <ram:AttachmentBinaryObject>QUJD</ram:AttachmentBinaryObject>
</ram:AdditionalReferencedDocument>
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)
Technical details

The test counts the ram:AttachmentBinaryObject elements in the current ram:AdditionalReferencedDocument and permits no more than one.

Where the rule applies

Additional supporting documents in ram:AdditionalReferencedDocument with ram:TypeCode 916.

Original message from the Schematron
BT-125 "Attached document" (ram:AttachmentBinaryObject) darf innerhalb von "Additional Supporting documents" (BG-24) höchstens einmal vorkommen.
Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:AdditionalReferencedDocument[ram:TypeCode = '916']
Test expression (assert/@test)
count(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