Date format not allowed

Error FX-SCH-A-000491 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:DateTimeString is not included in the date-format code list. An empty code value is also permitted by the test.

What the rule means

The format indicator determines how the date value is to be read. An unallowed indicator can lead to inconsistent interpretation of the issue date.

Please use an allowed date format for the issue date

The issue date format was not recognized as an allowed value. An appropriate format indicator makes the date value identifiable.

What to do
  1. Check the @format attribute on udt:DateTimeString.
  2. Compare its value with the permitted entries in the date-format code list.
  3. Recreate the invoice and validate it again.
Technical details

The test accepts an empty code value or a value found in code list ID 3 in FACTUR-X_BASIC_codedb.xml.

Where the rule applies

The rule applies to the date format on udt:DateTimeString for the issue date in ram:ExchangedDocument.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:IssueDateTime/udt:DateTimeString
Test expression (assert/@test)
string-length($codeValue3)=0 or document('FACTUR-X_BASIC_codedb.xml')/codedb/cl[@id=3]/enumeration[@value=$codeValue3]