Skip to content

Error

FX-SCH-A-001022: A line's referenced document date needs a format attribute

In short

Error: fails the selected checks.

FX-SCH-A-001022 means the date of a document referenced on your invoice line is missing the format attribute on qdt:DateTimeString. Add an allowed format code that matches the date text.

On this page

What it means

This rule checks format on ram:AdditionalReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString under a line's ram:SpecifiedLineTradeAgreement. It checks attribute presence only. It does not check the format value or the date itself.

Why it matters

The attribute identifies how the referenced document's date is represented. This is the referenced document's date, not your invoice date.

How to fix it

Find the affected qdt:DateTimeString and add format with the appropriate allowed code. For a date written as YYYYMMDD, use 102. Keep the date text and code consistent. If your software omits the attribute, have its export corrected, then export and recheck.

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

Attribute '@format' is required in this context.

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

Updated 6 November 2026