Format attribute for the issue date

Error FX-SCH-A-000959 Factur-X

Attribute '@format' is required in this context.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The relevant qdt:DateTimeString is missing the format attribute. This attribute is required in this context.

What the rule means

The format attribute indicates how to read the date value in qdt:DateTimeString. Without it, the issue date’s format is not specified.

Please add the format to the advance payment document’s issue date

The date value of the referenced advance payment document is missing its format attribute. Add the attribute so the date is provided with its format.

What to do
  1. Find the qdt:DateTimeString under ram:FormattedIssueDateTime.
  2. Add the format attribute with a value allowed in this context.
  3. Generate the invoice again and validate it once more.
Technical details

The test checks whether the format attribute is present on qdt:DateTimeString.

Where the rule applies

The rule applies to the date value in qdt:DateTimeString for the issue date of a referenced advance payment document.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedAdvancePayment/ram:InvoiceSpecifiedReferencedDocument/ram:FormattedIssueDateTime/ qdt:DateTimeString
Test expression (assert/@test)
@format