Attribute @format is missing

Error FX-SCH-A-000021 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 inside ram:IssueDateTime.

What the rule means

The @format attribute identifies the format of the issue date value.

Please specify the issue date format

The issue date is missing the @format attribute. Add it to the udt:DateTimeString element.

What to do
  1. Add @format to udt:DateTimeString inside ram:IssueDateTime.
  2. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:IssueDateTime>
  <udt:DateTimeString>20250115</udt:DateTimeString>
</ram:IssueDateTime>
✓ Correct
<ram:IssueDateTime>
  <udt:DateTimeString format="102">20250115</udt:DateTimeString>
</ram:IssueDateTime>
Technical details

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

Where the rule applies

The rule applies to the @format attribute on udt:DateTimeString within ram:IssueDateTime in the document header.

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