Disallowed date format for the delivery note reference

Error FX-SCH-A-001080 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 qdt:DateTimeString contains a value that is not in the code list for this format. This check permits an empty value.

What the rule means

The format indicates how the date value is to be interpreted. A disallowed format code can prevent the date from being read unambiguously according to the intended encoding.

Please use an allowed date format for the delivery note

The date format of the delivery note reference is not in the code list provided for it. You can adjust the format value and check the invoice again.

What to do
  1. Check @format on qdt:DateTimeString under ram:DeliveryNoteReferencedDocument.
  2. Use a value allowed by the code list for this format.
  3. Generate the invoice again and validate it again.
Technical details

The check verifies that the format value is empty or occurs as enumeration/@value in codedb/cl[@id=17].

Where the rule applies

The rule applies to qdt:DateTimeString in the issue date of the referenced delivery note at invoice-line level.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeDelivery/ram:DeliveryNoteReferencedDocument/ram:FormattedIssueDateTime/ qdt:DateTimeString
Test expression (assert/@test)
string-length($codeValue17)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=17]/enumeration[@value=$codeValue17]