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 |
Check your file
Drop your e-invoice to see whether CII-SR-249 still fails, and which other rules do.
Related rules
- CII-SR-250 Leave out the buyer's free-text description
- CII-SR-251 Leave out the buyer's legal form code
- CII-SR-252 Leave out the name inside the buyer's legal organisation
- CII-SR-254 Leave out the address inside the buyer's legal organisation
- CII-SR-255 Leave out the buyer's legal registration details block
- CII-SR-256 Leave out the ID of the buyer's contact