Invalid format value

Error FX-SCH-A-000646 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 qdt:DateTimeString is neither empty nor present in the designated code list.

What the rule means

The format value identifies how the date is represented. A value that is not permitted can prevent the date from being interpreted unambiguously.

Please use an allowed format for `qdt:DateTimeString`

The date format value in the referenced document is not accepted. You can change the value or leave it empty.

What to do
  1. Find the referenced document with ram:TypeCode 916.
  2. Check the value of the format attribute on qdt:DateTimeString.
  3. Use a value permitted by the code list or leave the attribute empty.
  4. Generate the invoice again and validate it again.
Technical details

The XPath test passes when the checked value is empty or is found in code list 17.

Where the rule applies

The rule applies to qdt:DateTimeString within a referenced document with ram:TypeCode 916 in the seller-buyer agreement.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:AdditionalReferencedDocument[ram:TypeCode="916"]/ram:FormattedIssueDateTime/ qdt:DateTimeString
Test expression (assert/@test)
string-length($codeValue17)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=17]/enumeration[@value=$codeValue17]