Allowed date format value

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

The value of @format on udt:DateTimeString is not included in the value list checked for this context. An empty value also fails this rule.

What the rule means

The format value specifies how the content of udt:DateTimeString is to be interpreted as a date and time. A disallowed value does not satisfy the checked format requirement.

Please use an allowed format value for the date

The value of @format on udt:DateTimeString is empty or is not included in the value list checked for it. Use a value allowed by that list.

What to do
  1. Locate udt:DateTimeString within ram:CompleteDateTime.
  2. Check the value of the @format attribute.
  3. Replace an empty or disallowed value with a value included in the checked value list.
  4. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty $codeValue3 or a value listed as @value in code list cl with ID 3 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the value of the @format attribute on udt:DateTimeString within ram:CompleteDateTime in ram:EffectiveSpecifiedPeriod.

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]