Use an allowed VAT category code

Error FX-SCH-A-000853 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 code list used by this rule.

What the rule means

ram:CategoryCode identifies the VAT category in the VAT breakdown. The code list defines which categories are allowed in this context.

Please use an allowed VAT category code

The value of ram:CategoryCode in the VAT breakdown is not accepted by this rule. An empty value or a value included in the associated code list is allowed.

What to do
  1. Check the value of ram:CategoryCode in the affected ram:ApplicableTradeTax.
  2. Use a value included in the associated code list, or leave the value empty.
  3. Regenerate the invoice and validate it again.
Technical details

The test accepts an empty value or a value listed in the code list with identifier 24.

Where the rule applies

The rule applies to ram:CategoryCode within ram:ApplicableTradeTax at document level.

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