Required date format attribute

Error FX-SCH-A-001009 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. Without this attribute, the format of the date value is not specified.

What the rule means

The format attribute describes how to read the date value. It enables the exchange-rate date to be interpreted unambiguously.

Please add the date format for the exchange-rate date

The format is missing from the exchange-rate date. Add the attribute to the date value so that its format is specified.

What to do
  1. Find udt:DateTimeString for the exchange-rate date.
  2. Add the missing @format attribute.
  3. Generate the invoice again and validate it.
Technical details

The test checks whether the @format attribute is present on the context node udt:DateTimeString.

Where the rule applies

The rule applies to udt:DateTimeString for the exchange-rate date in the currency exchange details for tax amounts.

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