Allowed date format for the validity period

Error FX-SCH-A-000632 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 date value in the validity period is to be interpreted. An unlisted identifier does not provide an interpretation supported by this rule.

Please use an allowed date format for the validity period

The format identifier on the date value in the validity period 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 the validity period.
  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:CompleteDateTime of ram:EffectiveSpecifiedPeriod in the document header.

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