Sample XML·XML · ~8 KB

XRechnung UBL — Invalid Test Document

Intentionally invalid XRechnung 3.0 (UBL) file with 8 built-in errors that the KoSIT validator reports as exactly 10 findings (9 fatal, 1 warning) — ideal for testing validators, error-handling routines, and QA processes.

Download

Format: XML · Size: ~8 KB · Updated: 2026-09-29

About this resource

The file is well-formed, valid against the UBL 2.1 schema and carries the XRechnung 3.0 identifier, so the KoSIT validator selects the XRechnung scenario, runs all business rules and recommends 'reject'. Its eight built-in errors, all common in practice, produce exactly these 10 findings: (1) buyer reference BT-10 missing: BR-DE-15. (2) neither seller VAT ID nor tax number: BR-DE-16 and BR-S-02. (3) seller city missing: BR-DE-3. (4) Skonto line with PROZENT=2 instead of 2.00: BR-DE-18. (5) credit transfer (code 30) without IBAN: BR-DE-23-a and BR-61. (6) BT-106 differs from the sum of the lines: BR-CO-10. (7) amount due BT-115 does not match the total with VAT: BR-CO-16. (8) corrected invoice (type 384) without a reference to the original invoice: BR-DE-26 (warning). BR-DE-26 is the only warning; the other nine findings are fatal.

Every error is documented in the XML comments: the comment explains what is wrong, which rule ID the validation report shows, and what the correct value would be. The document thus serves not only as a test input but also as a learning tool for understanding common XRechnung validation errors.

This document MUST NOT be used as a real invoice. It is intended exclusively for testing and educational purposes.

How to use this template

Download the XML file and upload it to an XRechnung validator (KoSIT Validator or docutools.pro). Check whether your validator reports all 10 findings (9 fatal, 1 warning) with the rule IDs listed. Verified with KoSIT validator 1.5.0 (XRechnung 3.0.2 configuration of 31 October 2024) and with the rules of the KoSIT configuration of 31 August 2026; both report the same 10 findings. Use the errors as test cases for your own error-handling logic.

This resource is provided for informational purposes only. It does not constitute legal, tax, or professional advice. Always consult a qualified tax advisor or lawyer for your specific situation.