What it means
This rule checks whether filename exists on ram:AttachmentBinaryObject inside a line's ram:SpecifiedLineTradeAgreement/ram:AdditionalReferencedDocument. An empty attribute satisfies the test. The rule does not check the name's contents, extension or pattern.
Why it matters
The filename attribute gives the embedded attachment a recognisable name without changing its contents.
How to fix it
Set filename on the affected ram:AttachmentBinaryObject to the actual file name, including its extension if it has one. Keep the name consistent with the attached file. 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 '@filename' 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 |
Check your file
Drop your e-invoice to see whether FX-SCH-A-001021 still fails, and which other rules do.
Related rules
- FX-SCH-A-001022 A line's referenced document date needs a format attribute
- FX-SCH-A-001023 The date format code on a line document reference is not allowed
- FX-SCH-A-001024 The reference type code on a line document is not allowed
- FX-SCH-A-001025 The document type code on a line document is not allowed
- FX-SCH-A-001026 Line delivery terms need exactly one delivery terms code
- FX-SCH-A-001027 The delivery terms code on a line is not allowed