Permitted invoice-line tax category code

Error FX-SCH-A-001064 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 in ram:CategoryCode is not empty and does not appear in the Factur-X code list defined for this field.

What the rule means

The code assigns the tax information to a tax category. A value that is not permitted cannot be interpreted according to the defined categories.

Please use a permitted tax code for the invoice line

The tax code in ram:CategoryCode does not match the values permitted for this field. You can check and adjust it using the applicable code list.

What to do
  1. Check the value of ram:CategoryCode in the tax information for the invoice line’s net price.
  2. Use a value from the Factur-X code list defined for this field; under this rule, an empty value is also permitted.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty value or a value present in the enumeration for code list 24 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to ram:CategoryCode in the tax information for an item’s net price on an invoice line.

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