InvoiceValidator.eu

CII-SR-014

fatalEN 16931syntax binding ruleCII

TypeCode must exist exactly once

Why it fails

'TypeCode' must appear exactly once, and it is either missing or repeated.

How to fix it

Make sure there is one and only one 'TypeCode'. If you have several values, they belong in a repeatable group, not in repeated elements; if it is absent, it is mandatory in this profile.

What the validator checks

CII — context /rsm:CrossIndustryInvoice/rsm:ExchangedDocument

count(ram:TypeCode) = 1

Related rules

Part of CII-SR — CII restrictions.

Check your own invoice against CII-SR-014

…or paste the XML instead

Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.