Permitted tax type code

Error FX-SCH-A-000857 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 in ram:TypeCode is not included in the code list defined for this element. The test permits an empty value.

What the rule means

The code identifies the type of tax entry. A permitted value enables this entry to be classified consistently.

Please use a permitted tax type code

The value in ram:TypeCode is not listed as a permitted tax type code. You can update the value or leave the element empty.

What to do
  1. Check the value in ram:TypeCode.
  2. Use only a value permitted by the code list, or leave the element empty.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty value or a value present in code list ID 26 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to ram:TypeCode within a document-level ram:ApplicableTradeTax tax entry.

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