Invalid currency identifier for the tax-currency amount

Error FX-SCH-A-001143 Factur-X

Value of '@currencyID' 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 currencyID on TaxTotalAmount is not present in the code list used for this check. This rule checks the amount whose currency corresponds to TaxCurrencyCode.

What the rule means

The currency identifier of the tax amount in tax currency must be a value permitted by this rule. This ensures that the amount's currency is stated unambiguously and in accordance with the rule.

Please provide an allowed currency identifier for the tax amount in tax currency

The currency identifier on TaxTotalAmount does not match a value allowed by this rule. You can update the value in the invoice.

What to do
  1. Locate the invoice-line TaxTotalAmount whose currencyID matches the tax currency.
  2. Check that the value of currencyID is included in the code list used for this check.
  3. Regenerate the invoice and validate it again.
Technical details

The test checks whether the evaluated code value is empty or occurs in the enumeration with identifier 32 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to TaxTotalAmount within an invoice line's SpecifiedLineTradeSettlement when its currencyID matches the tax currency.

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