Invalid date format

Error FX-SCH-A-000856 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

If the format attribute is not empty, its value must be present in the applicable code list. The supplied format value is not allowed there.

What the rule means

An allowed format declaration defines how to interpret the tax date value. A value that is not allowed can result in inconsistent date interpretation.

Please use an allowed format for the tax date

The format attribute on udt:DateString contains a value that is not allowed. Use a value from the applicable code list or leave the attribute empty.

What to do
  1. Check the value of the format attribute on udt:DateString under ram:TaxPointDate.
  2. Use a value allowed by the code list or leave the attribute empty.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty format attribute or a value from the code list identified by 44.

Where the rule applies

The rule applies to the format attribute of udt:DateString within ram:TaxPointDate in the document-level VAT breakdown.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:ApplicableTradeTax/ram:TaxPointDate/udt:DateString
Test expression (assert/@test)
string-length($codeValue44)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=44]/enumeration[@value=$codeValue44]