Skip to content

Warning

CII-SR-249: Leave out the buyer's role code

In short

Warning: worth checking.

CII-SR-249 means the buyer has a RoleCode element, which EN 16931 does not use. Remove the role code from the buyer. It is only a warning, so the file is still accepted.

On this page

What it means

The buyer must not have a RoleCode element, a code that says which role the party plays. The invoice already shows who the buyer is by the section the party sits in, so the standard has no use for a code. The same restriction applies in the CII rules for XRechnung, NLCIUS and the French CTC rules.

Why it matters

This is a warning, so the file is still accepted. The recipient's software reads only the fields the standard defines, so the role code is ignored. It does no harm to the invoice, but it is noise in the file. Fix it if the recipient asks for a file without warnings, otherwise it can wait.

How to fix it

The role code is added by your invoicing software, usually from a party role or customer type setting on the customer record. Clear that setting, or switch off the option that writes it into the e-invoice. If you edit the XML yourself, delete the RoleCode element inside the buyer.

The rule as published

RoleCode 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-249 still fails, and which other rules do.

Updated 6 November 2026