---
title: "Passing Mustang's Factur-X validation does not mean the CEN EN 16931 rules pass"
url: "https://www.dariuszparys.com/notes/mustang-factur-x-validation-misses-cen-rules"
author: "Dariusz Parys"
published: 2026-12-04T00:00:00.000Z
description: "Mustang-CLI passed CII invoices that the CEN EN 16931 rules reject with CII-SR-461, because Mustang checks the FeRD Factur-X Schematron, which contains only part of the CEN syntax rules."
tags:
  - "E-Invoicing"
  - "Testing"
---

# Passing Mustang's Factur-X validation does not mean the CEN EN 16931 rules pass

## Context

Invoices generated as CII (Factur-X / ZUGFeRD, EN 16931 profile) were gated with Mustang-CLI 2.26.0 (`--action validate`), and all samples passed. Later, validating the same writer's output with the CEN EN 16931 rule set, the rule set the KoSIT validator runs, reported the fatal syntax rule **CII-SR-461**. The writer had put the VAT point date (`ram:TaxPointDate`) into every VAT breakdown, and only one is allowed.

## Insight

Mustang's EN 16931 profile check uses the FeRD Factur-X Schematron, which is not the complete CEN rule set. In Factur-X 1.09.2 (`FACTUR-X_EN16931.sch` from the Mustang repository) it contains 28 `CII-SR-*` rules, and CII-SR-461 is not among them. The CEN `EN16931-CII-validation` rules contain it. Check for a given rule yourself:

```bash
grep -c 'CII-SR-' FACTUR-X_EN16931.sch
grep -l 'CII-SR-461' FACTUR-X_EN16931.sch EN16931-CII-validation.*
```

So gate generated invoices with **both** Mustang (profile rules, plus the PDF/A check for hybrids) and the KoSIT validator with the CEN rules (and XRechnung rules where they apply). Both run in Docker on an `eclipse-temurin` JRE image, no local Java needed. Also compare verdicts of invoices that should agree, such as the CII and UBL forms of the same data: that comparison is what exposed this bug.

Not verified: whether Mustang reports CII-SR-461 some other way. Only the bundled Schematron was checked.

## Docs

A docs check did not find this difference described on these pages (no claim beyond them):

- [Mustang command line](https://www.mustangproject.org/commandline/)
- [Mustangproject History.md](https://raw.githubusercontent.com/ZUGFeRD/mustangproject/master/History.md)
- [Mustangproject README](https://github.com/ZUGFeRD/mustangproject)
- [eInvoicing-EN16931 releases](https://github.com/ConnectingEurope/eInvoicing-EN16931/releases)
- [EN16931-CII-syntax.sch](https://github.com/ConnectingEurope/eInvoicing-EN16931/blob/master/cii/schematron/abstract/EN16931-CII-syntax.sch)
- [FeRD ZUGFeRD 2.5.2 (English)](https://www.ferd-net.de/en/downloads/publications/details/zugferd-252-english)
