Skip to content

Error

FX-SCH-A-000465: Add the format attribute to the earlier invoice date

In short

Error: fails the selected checks.

FX-SCH-A-000465 means an earlier invoice date (BT-26) is missing the format attribute on qdt:DateTimeString. Add the attribute to that date. For a date written as YYYYMMDD, use format 102.

On this page

What it means

When a preceding invoice reference (BG-3) includes its invoice date (BT-26), this rule checks for format on ram:InvoiceReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString under ram:ApplicableHeaderTradeSettlement. It checks only that the attribute exists, not its value or the date text. It does not require you to provide the optional date.

Why it matters

The format attribute declares how the earlier invoice date is encoded. A missing attribute does not by itself show that the earlier invoice cannot be identified through its number (BT-25).

How to fix it

Keep any preceding invoice reference that your invoice needs. Add format to the affected qdt:DateTimeString and make it match the date text. If you use 102, write the date as YYYYMMDD. Have the XML export corrected if necessary, then export and recheck the invoice.

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 BASIC WL 1.0.9-2
Factur-X 1.09 BASIC 1.0.9-2
Factur-X 1.09 EN 16931 1.0.9-2
Factur-X 1.09 EXTENDED 1.0.9-2
ZUGFeRD 2.5 BASIC WL 2.5.2
ZUGFeRD 2.5 BASIC 2.5.2
ZUGFeRD 2.5 EN 16931 2.5.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-000465 still fails, and which other rules do.

Updated 6 November 2026