What it means
The check looks at the contract reference (ram:ContractReferencedDocument) in the agreement part of the invoice header and fails if it carries a line number (ram:LineID). EN 16931 uses this reference only for the contract number (BT-12).
Why it matters
This is a warning, so the invoice is still accepted. A recipient that follows the standard reads the contract number and ignores the line number. It is worth fixing if the buyer needs to know which contract line you are invoicing, because that detail is lost.
How to fix it
Take the contract line number out of the contract reference in your invoicing software, leaving only the contract number. In the XML, delete ram:LineID inside ram:ContractReferencedDocument and keep ram:IssuerAssignedID. If the contract line matters to the buyer, mention it in the invoice note.
The rule as published
LineID 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-298 still fails, and which other rules do.
Related rules
- CII-SR-299 Do not add a demand forecast reference
- CII-SR-300 Do not add a supply instruction reference
- CII-SR-301 Do not add a promotional deal reference
- CII-SR-302 Do not add a price list reference
- CII-SR-303 Do not give a line number on an additional document reference
- CII-SR-304 Do not add a requisition reference