fatalEN 16931syntax binding ruleCII
listAgencyID should not be present
'listAgencyID' is present, but this profile does not allow it — nothing in the EN 16931 semantic model maps to it.
Remove 'listAgencyID'. It is almost always left over from a generic template or a library that emits every field of the underlying schema. Reported as an error.
CII — context /rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:TypeCode
not(@listAgencyID)
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.