Skip to content

Warning

CII-DT-046: Leave the code list agency off a line's VAT category code

In short

Warning: worth checking.

CII-DT-046 warns that a VAT category code on one of your invoice lines has a listAgencyID attribute. Remove that attribute without changing the category code.

On this page

What it means

For each invoice line, the rule checks ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode (BT-151). It warns whenever that CategoryCode has a listAgencyID attribute, even if the attribute is empty.

Why it matters

The listAgencyID attribute identifies the organisation responsible for a code list. This rule excludes that extra identifier from the line's VAT category code.

How to fix it

Find the affected line's CategoryCode inside ApplicableTradeTax under SpecifiedLineTradeSettlement. Delete only its listAgencyID attribute, not the CategoryCode element or its value. If your software adds the attribute, ask its supplier to correct the CII export. Generate the file again and recheck it.

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

@listAgencyID 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-DT-046 still fails, and which other rules do.

Updated 6 November 2026