Invalid tax type code on the allowance

Error FX-SCH-A-000972 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 of ram:TypeCode is neither empty nor included in the permitted code list.

What the rule means

ram:TypeCode identifies the tax type in the tax information for the allowance. A permitted code classifies this information under the intended tax type.

Please check the allowance’s tax type code

The value of ram:TypeCode for the allowance does not match the permitted code list. You can correct the value using the list or leave it empty.

What to do
  1. Check ram:TypeCode in the allowance’s ram:CategoryTradeTax.
  2. Use a value from the permitted code list or leave the value empty.
  3. Regenerate the invoice and check it again.
Technical details

The test accepts an empty code or a value from code list 26 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to ram:TypeCode within ram:CategoryTradeTax of a document-level allowance in ram:SpecifiedTradeAllowanceCharge.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator="false"]/ ram:CategoryTradeTax/ram:TypeCode
Test expression (assert/@test)
string-length($codeValue26)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=26]/enumeration[@value=$codeValue26]