Invalid due-date type code

Error FX-SCH-A-001129 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 in ram:DueDateTypeCode is not included in the value list allowed for this element. This check permits an empty value.

What the rule means

ram:DueDateTypeCode describes the type of due date within the tax information. A value that is not allowed cannot be assigned unambiguously to a supported due-date type.

Please use an allowed due-date type for the tax information

The value provided in ram:DueDateTypeCode is not allowed for this tax information. You can correct the entry using the value list defined for this element; this check accepts an empty value.

What to do
  1. Locate the ram:ApplicableTradeTax tax information on the invoice line.
  2. Check the value of ram:DueDateTypeCode against the value list defined for it.
  3. Generate the invoice again and validate it once more.
Technical details

The check accepts an empty value or a value present in the code list for ram:DueDateTypeCode.

Where the rule applies

The rule applies to ram:DueDateTypeCode within the ram:ApplicableTradeTax tax information on an invoice line.

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