Provide the format attribute

Error FX-SCH-A-000631 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 the udt:DateTimeString element.

What the rule means

The format attribute identifies the format of the date or time value in udt:DateTimeString.

Please add `format` to `udt:DateTimeString`

The udt:DateTimeString element has no format indicator. Add the format attribute to this element.

What to do
  1. Find udt:DateTimeString within ram:CompleteDateTime.
  2. Add the format attribute to udt:DateTimeString.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<udt:DateTimeString>20261115</udt:DateTimeString>
✓ Correct
<udt:DateTimeString format="102">20261115</udt:DateTimeString>
Technical details

The test directly checks for the presence of the @format attribute on the context node udt:DateTimeString.

Where the rule applies

The rule applies to the udt:DateTimeString element within ram:CompleteDateTime in the ram:EffectiveSpecifiedPeriod period.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:EffectiveSpecifiedPeriod/ ram:CompleteDateTime/udt:DateTimeString
Test expression (assert/@test)
@format