Use an allowed format for the delivery date and time

Error FX-SCH-A-000449 Factur-X

Value of '@format' is not allowed.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The value of format on udt:DateTimeString is neither empty nor present in the code list defined for it.

What the rule means

The format identifier describes how the delivery date and time is represented. A value that is not allowed may prevent consistent interpretation.

Please use an allowed format for the delivery date and time

The value of format for the delivery date and time is not included in the defined code list. Use a value listed there or leave the value empty.

What to do
  1. Check the format attribute of udt:DateTimeString.
  2. Use a value from the corresponding code list or leave the value empty.
  3. Regenerate the invoice and validate it again.
Technical details

The test accepts an empty value or a value occurring as @value in the code list with id=3.

Where the rule applies

The rule applies to the format attribute of udt:DateTimeString for the delivery date and time.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ ram:ActualDeliverySupplyChainEvent/ram:OccurrenceDateTime/udt:DateTimeString
Test expression (assert/@test)
string-length($codeValue3)=0 or document('FACTUR-X_BASIC-WL_codedb.xml')/codedb/cl[@id=3]/enumeration[@value=$codeValue3]