Allowed tax category code

Error FX-SCH-A-000537 Factur-X

Value of 'ram:CategoryCode' 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:CategoryCode is not included in the code list used by this rule.

What the rule means

The tax category code assigns the tax entry to a tax category. A value that is not allowed cannot assign a compliant category to this entry.

Please use an allowed code for the invoice line tax category

The value in ram:CategoryCode for this invoice line is not allowed by this rule. You can replace it with a value provided in the code list.

What to do
  1. Check the value in ram:CategoryCode.
  2. Use a value included in the code list for this element.
  3. Generate the invoice again and check it again.
Technical details

A non-empty value is matched against the entries in code list cl with identifier 8 in FACTUR-X_BASIC_codedb.xml.

Where the rule applies

The value of ram:CategoryCode within ram:ApplicableTradeTax for an invoice line.

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