Allowed tax type code for the advance payment

Error FX-SCH-A-000957 Factur-X

Value of 'ram:TypeCode' 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:TypeCode 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 type code identifies the tax type in the advance payment’s tax information. The check confirms that any supplied code is included in the designated code list.

Please use an allowed tax type code for the advance payment

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

What to do
  1. Locate ram:TypeCode 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 26 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

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

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