Permitted 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

The value of the format attribute on udt:DateString is not included in the code list defined for it. The test permits a missing or empty format value.

What the rule means

The format indicates how the date value in udt:DateString is to be interpreted. A permitted format code supports unambiguous processing of the date.

Please use a permitted format for the tax date

The format attribute of udt:DateString contains a value that is not permitted. You can update or omit the format value.

What to do
  1. Check the format attribute on udt:DateString under ram:TaxPointDate.
  2. Use only a format value permitted by the code list, or omit the attribute.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty code value or a value from code list ID 44 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the format attribute of udt:DateString under ram:TaxPointDate within a ram:ApplicableTradeTax tax entry.

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]