Invalid date format

Error FX-SCH-A-001135 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 the @format attribute is not in the permitted code list for this field. An empty format code is permitted by the test condition.

What the rule means

The format specifies how to interpret the date of the referenced invoice document. A disallowed format code prevents that date from being interpreted unambiguously.

Please use an allowed format for `qdt:DateTimeString`

The date format in the referenced invoice document is not recognized. You can adjust the format value or leave it empty.

What to do
  1. Locate qdt:DateTimeString for the referenced invoice document on the invoice line.
  2. Check the value of its @format attribute against the permitted code list.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty format code or a value included in the code list with ID 17.

Where the rule applies

The rule applies to qdt:DateTimeString of a referenced invoice document on an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeSettlement/ram:InvoiceReferencedDocument/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]