What it means
This rule checks ram:TypeCode inside ram:AdditionalReferencedDocument under a line's ram:SpecifiedLineTradeSettlement. A non-empty value must belong to the profile's document type code list. An empty value passes this check. The rule does not count type code elements or, by itself, require every reference to use 130.
Why it matters
The document type code identifies the kind of reference. A code-list check is separate from checking whether a particular code suits the reference.
How to fix it
Check what the line reference identifies. For an invoiced object reference (BT-128), set its ram:TypeCode to 130. Do not apply that value indiscriminately to a different kind of reference. Remove the reference block only if it is not needed. Generate the file again and recheck it.
Once the file is corrected, check it again for free: Validate a ZUGFeRD invoice
Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice Beta
The rule as published
Value of 'ram:TypeCode' is not allowed. Where this rule applies
| Rule set | Version |
|---|---|
| Factur-X 1.09 EN 16931 | 1.0.9-2 |
| ZUGFeRD 2.5 EN 16931 | 2.5.2 |
Check your file
Drop your e-invoice to see whether FX-SCH-A-000618 still fails, and which other rules do.
Related rules
- FX-SCH-A-000619 Use a valid VAT category code for the line
- FX-SCH-A-000620 Check the line tax type code
- FX-SCH-A-000621 Check the line period end date format
- FX-SCH-A-000622 Check the line period start date format
- FX-SCH-A-000623 Use an allowed line discount reason code
- FX-SCH-A-000624 Use an allowed line charge reason code