Faktura

CII-DT-033

fatalEN 16931syntax binding ruleCII

unitCode should not be present

Why it fails

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

How to fix it

Remove 'unitCode'. 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(), 'Quantity')]

not(@unitCode) or (/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery/ram:BilledQuantity/@unitCode)

Related rules

Part of CII-DT — CII data types.

Validate an invoice against this rule →