Specify the allowance basis date-time format

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 udt:DateTimeString for the allowance basis date-time.

What the rule means

The format attribute identifies the format used for the date-time value. Without it, the value cannot be interpreted according to its format.

Please specify the allowance basis date-time format

The format is missing from the allowance basis date-time. You can resolve this by adding the format information.

What to do
  1. Find udt:DateTimeString in the allowance basis date-time.
  2. Add the format attribute there.
  3. Generate the invoice again and validate it.
Technical details

The XPath test directly checks whether the format attribute is present on udt:DateTimeString.

Where the rule applies

The rule applies to udt:DateTimeString within the allowance basis date-time in the document-level payment terms.

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