Allowed currency for the VAT amount in invoice currency

Error FX-SCH-A-000486 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 this ram:TaxTotalAmount is not included in the code list allowed by the rule.

What the rule means

@currencyID identifies the currency of the VAT amount. An allowed currency code is required so that the currency can be interpreted unambiguously.

Please use an allowed currency for the VAT amount in invoice currency

The currency for the VAT amount in invoice currency uses a value that is not allowed for @currencyID. You can adjust the value using the applicable code list.

What to do
  1. Find the ram:TaxTotalAmount whose @currencyID matches ram:InvoiceCurrencyCode.
  2. Check the value of @currencyID against the code list allowed for it.
  3. Generate the invoice again and validate it again.
Technical details

The context selects ram:TaxTotalAmount by matching @currencyID with ram:InvoiceCurrencyCode. The code value must be empty or present in the enumeration with ID 19.

Where the rule applies

The rule applies to @currencyID on a ram:TaxTotalAmount whose currency matches ram:InvoiceCurrencyCode.

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