Use an allowed date format code

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

The value of format is not empty and does not occur in the code list checked for this attribute. This specific check also accepts an empty value.

What the rule means

The format code identifies how the date value in udt:DateTimeString is represented. Under this rule, an unlisted code cannot be assigned to an allowed date format.

Please use an allowed format code for the invoice date

The value of the format attribute on the invoice date is not included in the code list checked for it. You can compare the entered code with the allowed entries.

What to do
  1. Locate the udt:DateTimeString for the invoice date.
  2. Check the value of its format attribute against the code list applicable to this attribute.
  3. Generate the invoice again and validate it once more.
Technical details

The XPath test accepts an empty format value or a value present in the code list identified by 3.

Where the rule applies

The rule applies to the format attribute of udt:DateTimeString for the invoice date 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]