Permitted quotation date format

Error FX-SCH-A-001068 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 not empty and does not appear in the Factur-X code list defined for this attribute.

What the rule means

The format attribute identifies how the date value is represented. A value that is not permitted cannot be interpreted as one of the defined date formats.

Please use a permitted format for the quotation date

The value of the format attribute on the qdt:DateTimeString element for the quotation date is not included in the applicable code list. You can check and adjust the format using that list.

What to do
  1. Check the value of the format attribute on the qdt:DateTimeString element for the quotation date.
  2. Use a value from the Factur-X code list defined for this attribute; under this rule, an empty value is also permitted.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty value or a value present in the enumeration for code list 17 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the format attribute of qdt:DateTimeString for the issue date of the referenced quotation in the quotation document associated with an invoice line.

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