Invalid tax type code

Error FX-SCH-A-000857 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

If ram:TypeCode is not empty, its value must be present in the tax type code list. The supplied value is not allowed there.

What the rule means

The code identifies the tax type in the VAT breakdown. A value that is not allowed cannot be reliably classified as an intended tax type.

Please use an allowed tax type code

The value of ram:TypeCode is not allowed in the applicable code list. You can enter an allowed value or leave the element empty.

What to do
  1. Check the value of ram:TypeCode.
  2. Use a value allowed by the code list or leave the element empty.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty value or a value from the code list identified by 26.

Where the rule applies

The rule applies to ram:TypeCode within a document-level VAT breakdown.

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