Invalid tax type code

Error FX-SCH-A-001131 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 value in ram:TypeCode is not included in the value list defined for this code. This check permits an empty value.

What the rule means

ram:TypeCode specifies the type of tax information. A code that is not listed cannot be processed as a valid tax type.

Please use an allowed code for the tax type

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

What to do
  1. Locate ram:TypeCode 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 26.

Where the rule applies

The rule applies to ram:TypeCode within the tax information 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($codeValue26)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=26]/enumeration[@value=$codeValue26]