Format attribute required for the actual delivery date

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 udt:DateTimeString in ram:OccurrenceDateTime has no format attribute. This attribute is required in this context.

What the rule means

The format attribute identifies the format used for the actual delivery event date. Without it, the date format cannot be determined unambiguously in this context.

Please add the format of the actual delivery date

The date of the actual delivery event is missing its format. Add the attribute so the date is clearly identified in this context.

What to do
  1. Locate the udt:DateTimeString in ram:OccurrenceDateTime within ram:ActualDeliverySupplyChainEvent.
  2. Add the format attribute to that element.
  3. Generate the invoice again and validate it again.
Technical details

The Schematron test checks whether the format attribute is present on the current udt:DateTimeString.

Where the rule applies

The rule applies to udt:DateTimeString within ram:OccurrenceDateTime 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