Use an allowed date format value

Error FX-SCH-A-000732 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 is neither empty nor included in the code list for this format. As a result, the format value is not one of the permitted values.

What the rule means

An allowed format value enables consistent interpretation of the date. The rule also permits an empty value.

Please use an allowed format for the quotation date

The value in the @format attribute for the referenced quotation date is not in the permitted code list. Change the value or leave it empty.

What to do
  1. Find the qdt:DateTimeString for the referenced quotation date.
  2. Check the @format value against the permitted code list or leave it empty.
  3. Generate the invoice again and validate it.
Technical details

The value of @format is checked against code list 17; an empty value also satisfies the check.

Where the rule applies

The rule applies to the format of qdt:DateTimeString for the referenced quotation date in the agreement.

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