Skip to content

Warning

CII-SR-050: Remove the separate product type code

In short

Warning: worth checking.

CII-SR-050 warns that a CII invoice line contains ram:TypeCode in its product details. Remove this element. If you need its meaning, use an appropriate item classification identifier (BT-158), item description (BT-154) or item attribute (BG-32).

On this page

What it means

The test checks that the line's ram:SpecifiedTradeProduct, representing item information (BG-31), has no direct ram:TypeCode child. It does not check the code's value.

Why it matters

EN 16931 does not use ram:TypeCode in this location. A product classification or descriptive attribute has a different, defined place in the invoice.

How to fix it

Remove ram:TypeCode. If the code belongs to a recognised classification such as CPV or UNSPSC, use ram:DesignatedProductClassification/ram:ClassCode (BT-158) with the correct listID. Otherwise, explain any useful meaning in ram:Description (BT-154) or an item attribute (BG-32). Export the revised file and check it again.

Once the file is corrected, check it again for free: Validate an invoice against EN 16931

Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice

The rule as published

TypeCode should not be present

Where this rule applies

Rule set Version
EN 16931 (CII) 1.3.17
XRechnung 3.0 (CII) 3.0.2
NLCIUS (CII) 1.0.3.13
France CTC (CII) 1.4.0-04
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether CII-SR-050 still fails, and which other rules do.

Updated 6 November 2026