Skip to content

Fatal

CII-DT-022: Only supporting document references may contain embedded attachments

In short

Fatal: fails the selected checks.

CII-DT-022 means a CII document reference contains ram:AttachmentBinaryObject outside the permitted supporting document structure. Remove the element from that reference or recreate the attachment on ram:AdditionalReferencedDocument with ram:TypeCode 916.

On this page

What it means

The check applies to all CII reference elements whose names end in ReferencedDocument. A ram:AttachmentBinaryObject is allowed only when its parent is ram:AdditionalReferencedDocument with a ram:TypeCode value of 916. It holds the supporting document attachment (BT-125).

Why it matters

An embedded supporting document has a specific place in the CII mapping. Other reference types do not provide this attachment field.

How to fix it

Remove ram:AttachmentBinaryObject from the affected reference. If you need to include the file, attach it to a supporting document reference using ram:AdditionalReferencedDocument with ram:TypeCode 916. Keep the contract, order or other original reference in its proper form. Export the corrected file 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

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

Updated 6 November 2026