Use an allowed code for the tax currency

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

A non-empty value in ram:TaxCurrencyCode is not included in permitted code list 42. This check does not reject an empty value.

What the rule means

ram:TaxCurrencyCode specifies the currency used for the VAT information. A disallowed code does not identify this currency using an accepted value.

Please use an allowed code for the tax currency

The specified tax-currency value is not included in the permitted code list. Use an entry from code list 42 for ram:TaxCurrencyCode.

What to do
  1. Check the value in ram:TaxCurrencyCode.
  2. Replace any disallowed value with an entry from code list 42.
  3. Regenerate the invoice and validate it again.
Technical details

The test accepts an empty value; otherwise, ram:TaxCurrencyCode must match a value in the enumeration of code list 42.

Where the rule applies

Applies to ram:TaxCurrencyCode at document level within the settlement information.

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