Allowed tax category code for the advance payment

Error FX-SCH-A-000955 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

If ram:CategoryCode has a value, that value must be included in the code list used by the rule. A value not in the list is not allowed. An empty value passes this specific check.

What the rule means

The tax category code assigns the tax information to a category. The check confirms that any supplied code is included in the designated code list.

Please use an allowed tax category code for the advance payment

The advance payment tax category code is not in the designated code list. This check accepts an empty value.

What to do
  1. Locate ram:CategoryCode in the advance payment’s ram:IncludedTradeTax.
  2. Compare its value with the code list designated for this rule.
  3. Replace a value that is not listed with an allowed code, or leave the value empty.
  4. Regenerate the invoice and validate it again.
Technical details

The test allows an empty code value. Otherwise, the value must occur as an enumeration in code list 24 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to ram:CategoryCode within the ram:IncludedTradeTax tax information for an advance payment.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedAdvancePayment/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]