Disallowed buyer order date format code

Error FX-SCH-A-001030 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 on qdt:DateTimeString is not empty and is not included in the code list identified by 17. An empty attribute value passes this check.

What the rule means

The code in the format attribute identifies the format of the referenced buyer order date value. A supplied code must belong to the corresponding code list.

Please check the buyer order date format code

The value of format on the referenced buyer order issue date is not included in the applicable code list. You can review and adjust the value based on this rule.

What to do
  1. Locate qdt:DateTimeString in the issue date of the affected ram:BuyerOrderReferencedDocument.
  2. Check whether the value of format is included in the applicable code list.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty attribute value or a value present in FACTUR-X_EXTENDED_codedb.xml under code-list identifier 17.

Where the rule applies

The rule applies to the format attribute of qdt:DateTimeString in the issue date of the referenced buyer order at invoice line level.

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