Skip to content

Warning

CII-DT-051: Do not add a customs duty flag to VAT information

In short

Warning: worth checking.

CII-DT-051 warns that a tax element in your CII file contains CustomsDutyIndicator. Remove that element from the tax information and recheck the file.

On this page

What it means

The rule checks every ram element whose name ends in TradeTax and warns if it has a direct ram:CustomsDutyIndicator child. The warning applies regardless of the indicator's value.

Why it matters

The warning concerns an extra customs duty flag in the XML. It does not determine whether customs duty is owed or how you should record it on the invoice.

How to fix it

Delete ram:CustomsDutyIndicator from each affected tax element. Do not add, remove or reclassify charges solely because of this warning. If your software adds the element, ask its supplier to correct the CII export, then generate and check a new file.

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

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

Updated 6 November 2026