Advance payment tax type

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

A non-empty value in ram:TypeCode is not included in the code list defined for this field. This check also accepts an empty value.

What the rule means

The code classifies the tax type of the advance payment. An unsupported code may prevent this tax information from being classified unambiguously.

Please use an allowed tax code for the advance payment

The value of ram:TypeCode in the advance payment’s tax information is not allowed. You can adjust the field using the available code list.

What to do
  1. Check the value of ram:TypeCode for the advance payment.
  2. Use only a value from the code list defined for this field, or leave the field empty.
  3. Generate the invoice again and validate it once more.
Technical details

An empty value passes the check; otherwise, the value must occur in the code list identified by 26.

Where the rule applies

The rule applies to ram:TypeCode within the tax information of an advance payment in the invoice settlement.

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]