Allowed tax type code

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

The value of ram:TypeCode is not included in the code list used by this rule.

What the rule means

The tax type code identifies the type of tax entry. A value that is not allowed does not match an entry in the code list used by this rule.

Please use an allowed code for the invoice line tax type

The value in ram:TypeCode for this invoice line is not allowed by this rule. You can replace it with a value provided in the code list.

What to do
  1. Check the value in ram:TypeCode.
  2. Use a value included in the code list for this element.
  3. Generate the invoice again and check it again.
Technical details

A non-empty value is matched against the entries in code list cl with identifier 7 in FACTUR-X_BASIC_codedb.xml.

Where the rule applies

The value of ram:TypeCode within ram:ApplicableTradeTax for an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:TypeCode
Test expression (assert/@test)
string-length($codeValue7)=0 or document('FACTUR-X_BASIC_codedb.xml')/codedb/cl[@id=7]/enumeration[@value=$codeValue7]