Disallowed value in ram:TypeCode

Error FX-SCH-A-000620 Factur-X

Value of 'ram:TypeCode' 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 non-empty value in ram:TypeCode is not included in the code list defined for this field. An empty value also passes this specific check.

What the rule means

ram:TypeCode identifies the tax type for the invoice line. A non-empty value must come from the code list defined for this field so that the tax information can be classified unambiguously.

Please use an allowed tax type code for ram:TypeCode

The value in the invoice line’s ram:TypeCode does not match the code list defined for it. Using an allowed value makes the tax information identifiable.

What to do
  1. Check the value in ram:TypeCode on the affected invoice line.
  2. Compare the non-empty value with the codes allowed for ram:TypeCode.
  3. Generate the invoice again and validate it again.
Technical details

The check accepts an empty value or a value found in codedb/cl[@id=9]/enumeration.

Where the rule applies

The rule applies to ram:TypeCode within the VAT details of an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:TypeCode
Test expression (assert/@test)
string-length($codeValue9)=0 or document('FACTUR-X_EN16931_codedb.xml')/codedb/cl[@id=9]/enumeration[@value=$codeValue9]