Allowed value for ram:TaxCurrencyCode

Error FX-SCH-A-001011 Factur-X

Value of 'ram:TaxCurrencyCode' 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:TaxCurrencyCode is not empty and is not included in the code list allowed for this element. An empty value is permitted by the test condition.

What the rule means

ram:TaxCurrencyCode specifies a currency code for the tax currency. A non-empty value must be one of the values allowed by the Factur-X code list.

Please check the value of `ram:TaxCurrencyCode`

The value of ram:TaxCurrencyCode does not match the allowed code list. You can resolve this by using an allowed value or leaving the element empty.

What to do
  1. Compare the value of ram:TaxCurrencyCode with the allowed code list, or leave the element empty.
  2. Regenerate the invoice and validate it again.
Technical details

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

Where the rule applies

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

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