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 defined for this code. This check permits an empty value.

What the rule means

ram:DueDateTypeCode identifies the type of due date. A code that is not listed cannot be processed as a valid value of this type.

Please use an allowed code for the due-date type

The value in ram:DueDateTypeCode is not in the expected value list. You can correct this entry using an allowed code.

What to do
  1. Locate ram:DueDateTypeCode in the relevant invoice line.
  2. Replace its value with a code from the defined value list.
  3. Generate the invoice again and check it.
Technical details

The test accepts an empty value or a value contained in code list 27.

Where the rule applies

The rule applies to ram:DueDateTypeCode within the tax information of 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]