# BR-TMP-5: Two attachments in one document reference (CII)

Source: https://veriport.io/einvoice-rules/br-tmp-5 (published 2026-11-17)

In CII, an additional supporting document of type 916 (BG-24) may contain at most one attached file, BT-125 (`ram:AttachmentBinaryObject`). Below: the message, the cause and the fix, and an invoice our validator checked, failing and fixed.

- **Specification:** [XRechnung 3.0 rules](/einvoice-rules/xrechnung), XRechnung 3.0.2 schematron 2.6.0
- **Severity:** warning
- **Business terms:** BT-125, BG-24
- **Reported by** `POST /einvoice/validate` and our free validators, with a link to this page

## The message validators print

BR-TMP-5 is a rule of the XRechnung 3.0 rules (xrechnung-schematron 2.6.0 (XRechnung 3.0.2)) for CII. It is a warning: the invoice stays valid, but should be corrected.

```text
[BR-TMP-5] BT-125 "Attached document" (ram:AttachmentBinaryObject) darf innerhalb von "Additional Supporting documents" (BG-24) höchstens einmal vorkommen.
```

## What it checks

In CII, an additional supporting document of type 916 (BG-24) may contain at most one attached file, BT-125 (`ram:AttachmentBinaryObject`). It is a warning.

## Why invoices fail it

Several files are embedded under one document reference.

## How to fix it

Write one `ram:AdditionalReferencedDocument` per attached file.

## A failing invoice and its fix, checked

We start from our sample invoice (two lines at 19 %, Berlin to Stuttgart), written by our own generator as XRechnung 3.0 in CII. The change below (`-` the failing version, `+` the fixed one) makes the rule fail. Both versions went through our validator on 2026-11-17 (the XML schema and the official rule files, as `POST /einvoice/validate` runs them): the fixed one is valid, the failing one reports BR-TMP-5 and 1 other rule, as a real file with this mistake would.

| Rule | Severity | Where | Message |
|---|---|---|---|
| [CII-SR-476](/einvoice-rules/cii-sr-476) | information | `/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement` | Only one AdditionalReferencedDocument AttachmentBinaryObject BT-125 is allowed with TypeCode 916. |
| **BR-TMP-5** | warning | `/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument` | BT-125 "Attached document" (ram:AttachmentBinaryObject) darf innerhalb von "Additional Supporting documents" (BG-24) höchstens einmal vorkommen. |

```diff
  …
          <ram:Name>Stundennachweis</ram:Name>
          <ram:AttachmentBinaryObject mimeCode="text/csv" filename="stunden-2026-10.csv">RGF0dW07U3R1bmRlbgoyMDI2LTEwLTAxOzgK</ram:AttachmentBinaryObject>
-         <ram:AttachmentBinaryObject mimeCode="text/csv" filename="stunden-2026-09.csv">RGF0dW07U3R1bmRlbgoyMDI2LTA5LTMwOzgK</ram:AttachmentBinaryObject>
        </ram:AdditionalReferencedDocument>
      </ram:ApplicableHeaderTradeAgreement>
  …
```

## The rule as published

Where the rule applies (`context`) and what must hold (`test`), unmodified from XRechnung 3.0.2 schematron 2.6.0. An `assert` fails when its test is false.

Text and test: © KoSIT, Apache License 2.0. Quoted unmodified; the explanations on this page are Veriport’s.

```xpath
context: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument[ram:TypeCode = '916']
test:    count(ram:AttachmentBinaryObject) <= 1
```

## Check your own invoice

Drop your XRechnung, ZUGFeRD or Peppol file into a free validator ([Peppol BIS](/tools/peppol-validator), [XRechnung](/tools/xrechnung-pruefen), [Factur-X](/tools/valider-factur-x)): each runs the same rule files and links every finding to its rule page. From your own code, `POST /einvoice/validate` ([reference](/docs/einvoice)) returns the same check as JSON, each finding with an `explanation` field pointing here (5 calls a check, anonymous within the daily allowance).

## Read next

- [BR-TMP-3: Gross and net price base quantities differ (CII)](https://veriport.io/einvoice-rules/br-tmp-3)
- [BR-TMP-4: Supporting document description repeated (CII)](https://veriport.io/einvoice-rules/br-tmp-4)
- [BR-TMP-6: UBL date not in YYYY-MM-DD form](https://veriport.io/einvoice-rules/br-tmp-6)
- [BR-TMP-7: CII date without format 102](https://veriport.io/einvoice-rules/br-tmp-7)
- [BR-DEX-01: XRechnung Extension rule BR-DEX-01](https://veriport.io/einvoice-rules/br-dex-01)
- [BR-52: Supporting document reference (BT-122) missing](https://veriport.io/einvoice-rules/br-52)
- [All XRechnung 3.0 rules](https://veriport.io/einvoice-rules/xrechnung)
- [All e-invoice rules, search](https://veriport.io/einvoice-rules)
- [Check an e-invoice free (XRechnung prüfen)](https://veriport.io/tools/xrechnung-pruefen)
- [Create a valid e-invoice free (German form)](https://veriport.io/tools/e-rechnung-erstellen)

## Sources

- XRechnung — the German CIUS of EN 16931 (standard, versions and bundles; version 3.0.2 in force) — https://xeinkauf.de/xrechnung/ (2026-10-28)
- Validator configuration XRechnung v2026-08-31 (XRechnung 3.0.2, CEN schematron 1.3.16, xrechnung-schematron 2.6.0) — https://github.com/itplr-kosit/validator-configuration-xrechnung/releases/tag/v2026-08-31 (2026-10-28)
- XRechnung schematron (xrechnung-schematron) and the XRechnung validator configuration: licence, Apache License 2.0 (LICENSE files; NOTICE of the configuration: « Copyright 2020 Koordinierungsstelle für IT-Standards ») — https://github.com/itplr-kosit/xrechnung-schematron/blob/master/LICENSE (2026-11-17)
