Format attribute for the order date

Error FX-SCH-A-000784 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 required format attribute is missing from DateTimeString in this context.

What the rule means

The format attribute identifies the format of the date value in DateTimeString. Without this attribute, the date format is not specified.

Please specify the order date format

The DateTimeString for the end customer order document is missing the format attribute. Add the format attribute so the date value is specified.

What to do
  1. Locate DateTimeString under FormattedIssueDateTime in UltimateCustomerOrderReferencedDocument.
  2. Add the required format attribute to DateTimeString.
  3. Generate the invoice again and validate it.
Technical details

The test checks for the presence of the format attribute on the context element DateTimeString; this test does not check the attribute value.

Where the rule applies

The rule applies to DateTimeString within the formatted issue date of the end customer order document.

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