Date format must be specified for the payment penalty

Error FX-SCH-A-000981 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 udt:DateTimeString element for the basis date.

What the rule means

The format attribute identifies how the date value in udt:DateTimeString is to be interpreted.

Please specify the basis date format for the payment penalty

The date value for the basis date of the payment penalty terms is missing its format. Add this information so the value can be interpreted.

What to do
  1. Find the basis date udt:DateTimeString in the payment penalty terms.
  2. Add the format attribute to this element.
  3. Generate the invoice again and validate it.
Technical details

The XPath checks only whether the format attribute is present on the context node.

Where the rule applies

The rule applies to the format attribute of udt:DateTimeString within the basis date of payment penalty terms.

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