Invalid delivery date format

Error FX-SCH-A-000505 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 format attribute of DateTimeString contains a value that is not included in the applicable format code list. This check also accepts an empty value.

What the rule means

The format indicates how the value of DateTimeString is to be interpreted as a date or time. A value that is not permitted can make this interpretation ambiguous.

Please provide an allowed format for the delivery date and time

The format specified for the delivery date and time is not included in the applicable code list. You can adjust the value using the format code list that applies to DateTimeString.

What to do
  1. Check the format attribute of DateTimeString in OccurrenceDateTime.
  2. Compare the entered value with the format code list for this attribute.
  3. Generate the invoice again and validate it once more.
Technical details

A non-empty value of DateTimeString/@format is checked against the entries in code list 3 in FACTUR-X_BASIC_codedb.xml.

Where the rule applies

The rule applies to the time of the delivery event in ActualDeliverySupplyChainEvent, specifically to the format attribute of DateTimeString in OccurrenceDateTime.

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_codedb.xml')/codedb/cl[@id=3]/enumeration[@value=$codeValue3]