Use an allowed due date type code

Error FX-SCH-A-000854 Factur-X

Value of 'ram:DueDateTypeCode' 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 ram:DueDateTypeCode is neither empty nor included in the code list used by this rule.

What the rule means

ram:DueDateTypeCode indicates the type of due date. The code list defines which type codes are allowed in this context.

Please use an allowed due date type code

The value of ram:DueDateTypeCode in ram:ApplicableTradeTax is not accepted by this rule. An empty value or a value included in the associated code list is allowed.

What to do
  1. Check the value of ram:DueDateTypeCode in the affected ram:ApplicableTradeTax.
  2. Use a value included in the associated code list, or leave the value empty.
  3. Regenerate the invoice and validate it again.
Technical details

The test accepts an empty value or a value listed in the code list with identifier 27.

Where the rule applies

The rule applies to ram:DueDateTypeCode within ram:ApplicableTradeTax at document level.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:ApplicableTradeTax/ram:DueDateTypeCode
Test expression (assert/@test)
string-length($codeValue27)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=27]/enumeration[@value=$codeValue27]