Tax currency code is not allowed

Error FX-SCH-A-000196 Factur-X

Value of 'ram:TaxCurrencyCode' 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:TaxCurrencyCode is not included in the code list referenced by this rule. This check does not reject an empty value.

What the rule means

The code identifies the currency used for tax. A currency code that is not allowed cannot identify this information as intended.

Please use an allowed currency code for tax

The value in ram:TaxCurrencyCode is not included in the code list referenced for this invoice. You can adjust the currency code in this element.

What to do
  1. Find ram:TaxCurrencyCode in the document-level settlement.
  2. Compare its value with the codes allowed for ram:TaxCurrencyCode.
  3. Replace any disallowed value with an allowed code.
  4. Generate the invoice again and validate it once more.
Technical details

The check accepts an empty string value or a value present in code list 11 in FACTUR-X_BASIC-WL_codedb.xml.

Where the rule applies

The rule applies to ram:TaxCurrencyCode in the document-level settlement.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:TaxCurrencyCode
Test expression (assert/@test)
string-length($codeValue11)=0 or document('FACTUR-X_BASIC-WL_codedb.xml')/codedb/cl[@id=11]/enumeration[@value=$codeValue11]