Invalid tax currency code

Error FX-SCH-A-000528 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 specified for it. An empty value does not trigger this error according to the test condition.

What the rule means

ram:TaxCurrencyCode identifies the tax currency used for tax amounts. A disallowed code can make the currency information invalid for business use.

Please use an allowed code for the tax currency

The value of ram:TaxCurrencyCode is not included in the specified code list. You can correct the entry by using a currency code allowed in that list.

What to do
  1. Locate ram:TaxCurrencyCode in the settlement information.
  2. Replace the disallowed value with a currency code included in the specified code list.
  3. Regenerate the invoice and validate it again.
Technical details

The test accepts an empty value or a value from code list 17 of the Factur-X code database.

Where the rule applies

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

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