Allowed value for the invoice currency

Error FX-SCH-A-000040 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 non-empty and is not in the code list allowed for the invoice currency.

What the rule means

ram:InvoiceCurrencyCode indicates the currency in which the invoice amounts are expressed. A value that is not allowed cannot be identified as a valid invoice currency.

Please use an allowed value for the invoice currency

This check does not recognize the value of ram:InvoiceCurrencyCode as allowed. Use a value from the applicable code list; an empty value is also accepted by this check.

What to do
  1. Locate ram:InvoiceCurrencyCode in the settlement information.
  2. Compare its value with the code list allowed for the invoice currency.
  3. Use a value listed there or leave the value empty.
  4. Generate the invoice again and validate it.
Technical details

The check accepts an empty value or a value from the enumeration with identifier cl[@id=6] in FACTUR-X_MINIMUM_codedb.xml.

Where the rule applies

The rule applies to the value of ram:InvoiceCurrencyCode in the document-level settlement information.

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