Invalid format code for the receiving advice date

Error FX-SCH-A-000793 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 not included in the applicable code list.

What the rule means

The format code specifies which recognized date format must be used to read the content of qdt:DateTimeString.

Please use an allowed format code for the receiving advice date

The format code on the receiving advice date is not recognized as an allowed value. It can be replaced with a value provided in the code list.

What to do
  1. Locate qdt:DateTimeString in the receiving advice’s ram:FormattedIssueDateTime.
  2. Compare the value of format with the applicable code list.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<qdt:DateTimeString format="999">20250131</qdt:DateTimeString>
✓ Correct
<qdt:DateTimeString format="102">20250131</qdt:DateTimeString>
Technical details

The test compares the value of format with entries in code list 17 in FACTUR-X_EXTENDED_codedb.xml; this test also permits an empty value.

Where the rule applies

The rule applies to the date format code in the receiving advice reference document.

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