Allowed date format

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 value of the @format attribute is neither empty nor listed as an allowed value in the date-format code list.

What the rule means

The format indicates how to interpret the date value in qdt:DateTimeString. An unlisted format code can make the date ambiguous or unprocessable.

Please use an allowed date format

The format of qdt:DateTimeString is not included in the allowed code list. You can correct the format value or leave the attribute empty.

What to do
  1. Find qdt:DateTimeString in the referenced document of the invoice line.
  2. Check the value of the @format attribute against the allowed code list, or leave it empty.
  3. Regenerate the invoice and validate it again.
Technical details

The test accepts an empty format value or a value listed in FACTUR-X_EXTENDED_codedb.xml under code list ID 17.

Where the rule applies

The rule applies to qdt:DateTimeString in the referenced document of 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]