Date format code is required

Error FX-SCH-A-001074 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 @format attribute is missing from udt:DateTimeString. The test requires the attribute to be present.

What the rule means

The format code describes how to read the date value. Without it, the format of the occurrence date is not specified.

Please add the date format code for the delivery event

The occurrence date of the actual delivery event is missing its date-format code. Add the @format attribute so that the date is provided with its format.

What to do
  1. Locate udt:DateTimeString inside ram:OccurrenceDateTime.
  2. Add the required @format attribute there.
  3. Generate the invoice again and validate it again.
Technical details

The XPath test @format checks only whether the attribute is present on the current udt:DateTimeString.

Where the rule applies

The rule applies to udt:DateTimeString of the occurrence date in the actual delivery event of an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeDelivery/ram:ActualDeliverySupplyChainEvent/ram:OccurrenceDateTime/ udt:DateTimeString
Test expression (assert/@test)
@format