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 |
Check your file
Drop your e-invoice to see whether FX-SCH-A-000465 still fails, and which other rules do.
Related rules
- FX-SCH-A-000466 Use an allowed format for the earlier invoice date
- FX-SCH-A-000467 Keep at most one ram:ID for the payee
- FX-SCH-A-000468 Keep at most one ram:GlobalID for the payee
- FX-SCH-A-000469 The payee needs exactly one name element
- FX-SCH-A-000470 Add the scheme attribute to the payee's global identifier
- FX-SCH-A-000471 Use an allowed scheme for the payee identifier