Permitted tax type code

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 non-empty value of ram:TypeCode is not permitted by the tax type code list. The test also accepts an empty value.

What the rule means

ram:TypeCode identifies the tax type in the allowance’s tax information. A code that is not permitted does not comply with the rule for this entry.

Please use a permitted tax type code for the allowance

The tax type code in the allowance’s tax information is not permitted. A value from the designated code list or an empty value satisfies the test.

What to do
  1. Check the value of ram:TypeCode in ram:CategoryTradeTax.
  2. Use a value from the tax type code list, or leave the value empty.
  3. Generate the invoice again and validate it.
Technical details

The test permits an empty value; otherwise, the value of ram:TypeCode must be present in code list 26 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule checks ram:TypeCode within ram:CategoryTradeTax for a document-level allowance identified in ram:SpecifiedTradeAllowanceCharge by ram:ChargeIndicator having the value false.

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]