fatalEN 16931syntax binding ruleCII
TypeCode must exist exactly once
'TypeCode' must appear exactly once, and it is either missing or repeated.
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.
CII — context /rsm:CrossIndustryInvoice/rsm:ExchangedDocument
count(ram:TypeCode) = 1
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.