Permitted invoice currency code

Error FX-SCH-A-000861 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 in ram:InvoiceCurrencyCode is not included in the code list defined for this element. The test permits an empty value.

What the rule means

The code identifies the invoice currency. A permitted currency code enables the invoice amounts to be interpreted consistently.

Please use a permitted invoice currency code

The value in ram:InvoiceCurrencyCode is not listed as a permitted invoice currency code. You can update the value or leave the element empty.

What to do
  1. Check the value in ram:InvoiceCurrencyCode.
  2. Use only a value permitted by the code list, or leave the element empty.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty value or a value present in code list ID 42 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to ram:InvoiceCurrencyCode within the document-level billing information.

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