Date format must be specified

Error FX-SCH-A-000979 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

The date value for the basis date of the payment discount 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 discount 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 discount terms.

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