Use an allowed date format code

Error FX-SCH-A-001088 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 specified non-empty value of format is not included in the code list used by this rule.

What the rule means

An allowed format code identifies the representation of the date value so that it can be read according to a specified format.

Please use an allowed date format code

The specified code for the receiving advice date format is not accepted. You can resolve the issue by using a value included in the code list.

What to do
  1. Check the value of format on the qdt:DateTimeString element.
  2. Replace any value that is not allowed with a value from the specified code list.
  3. Generate the invoice again and validate it once more.
Technical details

The test permits an empty code value or requires the format value to appear in the code list identified by 17.

Where the rule applies

The rule applies to the format attribute of qdt:DateTimeString within the date of the referenced receiving advice for an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeDelivery/ram:ReceivingAdviceReferencedDocument/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]