Allowed date format for the invoice date

Error FX-SCH-A-000634 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 udt:DateTimeString has a value for the format attribute that is not in the date-format code list, the value is not allowed. An empty value is also accepted by the test condition.

What the rule means

The format identifier determines how the invoice date is to be interpreted. An unlisted identifier does not provide an interpretation supported by this rule.

Please use an allowed date format for the invoice date

The format identifier on the invoice date is not in the allowed code list. You can change the value or leave it empty.

What to do
  1. Check the format attribute on udt:DateTimeString in ram:IssueDateTime.
  2. Use an entry from the allowed code list or leave the attribute empty.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty value or a value present as an enumeration in the code list with identifier 3.

Where the rule applies

The rule applies to udt:DateTimeString in ram:IssueDateTime in the document header.

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