VAT category code not allowed

Error FX-SCH-A-000619 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 neither empty nor included in the applicable code list.

What the rule means

ram:CategoryCode identifies the VAT category of the line item. A code that is not allowed cannot be classified according to the applicable VAT categories.

Please use an allowed VAT category code

The line item's VAT category has a value that is not in the applicable code list. You can adjust this value using an allowed category code.

What to do
  1. Locate ram:CategoryCode in the line item's ram:ApplicableTradeTax.
  2. Check its value and use only a code from the allowed code list.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:CategoryCode>INVALID</ram:CategoryCode>
✓ Correct
<ram:CategoryCode/>
Technical details

The XPath test accepts an empty value or a value included in code list 10.

Where the rule applies

The rule applies to ram:CategoryCode in ram:ApplicableTradeTax within a line item's settlement information.

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