Skip to content

Error

FX-SCH-A-001031: The date of the line contract reference needs a format code

In short

Error: fails the selected checks.

FX-SCH-A-001031 means the date in your line's contract reference is missing the format attribute. Add a format code that matches how you have written the date, such as 102 for YYYYMMDD.

On this page

What it means

When a line's contract reference contains ram:ContractReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString, that date element must have a format attribute. This rule checks only that the attribute exists, not whether it is empty, contains an allowed code or matches the date text.

Why it matters

The attribute identifies how the contract date is written. Its presence is a structural requirement for this date element in the Extended profile.

How to fix it

Add the format attribute to qdt:DateTimeString under the affected line's ram:ContractReferencedDocument/ram:FormattedIssueDateTime. For an eight-digit date written as YYYYMMDD, use format="102" and make the date text match. Export again 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

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

Updated 6 November 2026