Allowed invoice currency code

Error FX-SCH-A-000464 Factur-X

Value of 'ram:InvoiceCurrencyCode' 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:InvoiceCurrencyCode is neither empty nor included in the code list checked for this field.

What the rule means

The currency code identifies the currency of the invoice. A code not in the list cannot be recognized by the rule as an allowed invoice currency.

Please use an allowed currency code for the invoice

The value in ram:InvoiceCurrencyCode is not recognized as an allowed currency code. You can resolve this by using a value from the checked code list.

What to do
  1. Locate ram:InvoiceCurrencyCode in the settlement information.
  2. Check its value against the code list for this field.
  3. Generate the invoice again and validate it.
Good to know

According to the test, an empty value is also allowed.

Technical details

The test accepts an empty value or a value from the code list identified by 11.

Where the rule applies

The rule applies to the value of ram:InvoiceCurrencyCode in the invoice settlement information.

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