Skip to content

Error

FX-SCH-A-000335: Use an allowed line status reason code

In short

Error: fails the selected checks.

FX-SCH-A-000335 means an invoice line in your Factur-X or ZUGFeRD Extended file has a line status reason code outside the profile's allowed list. Correct ram:LineStatusReasonCode to the listed code for the intended reason.

On this page

What it means

The test checks ram:LineStatusReasonCode inside the line's ram:AssociatedDocumentLineDocument. The checked value must be empty or exactly match an entry in code list 7 in FACTUR-X_EXTENDED_codedb.xml. It does not check whether the element is present.

Why it matters

The reason must use the profile's agreed codes rather than a free-text description. A code-list match checks the vocabulary, not whether the reason is appropriate for the line.

How to fix it

Check the intended reason for the affected line's status. Correct ram:LineStatusReasonCode to the corresponding code from the Extended profile's list, exactly as listed. If your software exports an unlisted value, ask its supplier to correct the mapping. Export 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:LineStatusReasonCode' is not allowed.

Where this rule applies

Rule set Version
Factur-X 1.09 EXTENDED 1.0.9-2
ZUGFeRD 2.5 EXTENDED 2.5.2
Rule text from phive-rules 4.6.4.

Check your file

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

Updated 6 November 2026