Faktura

CII-DT-024

fatalEN 16931syntax binding ruleCII

ReferenceTypeCode should not be present

Why it fails

'ReferenceTypeCode' is present, but this profile does not allow it — nothing in the EN 16931 semantic model maps to it.

How to fix it

Remove 'ReferenceTypeCode'. It is almost always left over from a generic template or a library that emits every field of the underlying schema. Reported as a error.

What the validator checks

CII — context //ram:*[ends-with(name(), 'ReferencedDocument')]

not(ram:ReferenceTypeCode) or (self::ram:AdditionalReferencedDocument and ram:TypeCode='130')

Related rules

Part of CII-DT — CII data types.

Validate an invoice against this rule →