Provide the format attribute for the due date

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

What the rule means

The @format attribute identifies the format of the date value. It is required in this context so that the content of udt:DateTimeString can be interpreted as a date.

Please provide the due date’s format

@format is missing from the due date’s udt:DateTimeString. Add this attribute to specify the date format.

What to do
  1. Find ram:DueDateDateTime/udt:DateTimeString in the payment terms.
  2. Add the required @format attribute to the element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:DueDateDateTime>
  <udt:DateTimeString>20261115</udt:DateTimeString>
</ram:DueDateDateTime>
✓ Correct
<ram:DueDateDateTime>
  <udt:DateTimeString format="102">20261115</udt:DateTimeString>
</ram:DueDateDateTime>
Technical details

In the context of ram:DueDateDateTime/udt:DateTimeString, the test checks only whether the @format attribute is present.

Where the rule applies

The rule applies to udt:DateTimeString within the due date in the payment terms.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradePaymentTerms/ram:DueDateDateTime/udt:DateTimeString
Test expression (assert/@test)
@format