Skip to content

Error

FX-SCH-A-000559: A reference to the invoiced object must use the type code 130

In short

Error: fails the selected checks.

FX-SCH-A-000559 means a non-empty ram:TypeCode in your invoiced object reference (BT-18) is not on the permitted code list. Keep one ram:TypeCode with the value 130 in the affected ram:AdditionalReferencedDocument, then export and recheck your invoice.

On this page

What it means

In the EN 16931 profiles of Factur-X and ZUGFeRD, this rule checks each ram:TypeCode in a ram:AdditionalReferencedDocument under ram:ApplicableHeaderTradeAgreement that already contains a type code of 130. A non-empty value must be on the referenced code list. An empty value passes this test; the number of type-code elements is checked separately.

Why it matters

The type code identifies the purpose of the reference. An unsupported value does not follow the code list used for this reference.

How to fix it

Check the invoiced object reference (BT-18) in your source invoice. In the XML, keep one ram:TypeCode containing 130 in the affected ram:AdditionalReferencedDocument. Put any genuinely separate reference in its own ram:AdditionalReferencedDocument. If your software writes extra type-code elements, report the problem to its supplier. Export and recheck the file.

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

Updated 6 November 2026