Allowed invoice currency code

Error FX-SCH-A-000514 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 neither empty nor included in the code list used by this rule.

What the rule means

If provided, the invoice currency code must come from the permitted code list. The rule also accepts an empty value.

Please provide an allowed currency code for the invoice

This rule does not recognize the value in ram:InvoiceCurrencyCode as allowed. You can correct it with a value from the applicable code list or leave it empty.

What to do
  1. Check the value in ram:InvoiceCurrencyCode.
  2. Use an entry from the applicable code list or leave the value empty.
  3. Regenerate the invoice and check it again.
Technical details

The test accepts an empty value or an entry from FACTUR-X_BASIC_codedb.xml, code list 17.

Where the rule applies

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

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