Skip to content

Error

FX-SCH-A-000618: Use a valid document type code for the line reference

In short

Error: fails the selected checks.

FX-SCH-A-000618 means the document type code on a line reference is not allowed. Correct ram:TypeCode to the appropriate code from the profile's list. For an invoiced object reference (BT-128), use 130.

On this page

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
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether FX-SCH-A-000618 still fails, and which other rules do.

Updated 6 November 2026