Allowed language code

Error FX-SCH-A-000389 Factur-X

Value of 'ram:LanguageID' 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:LanguageID is not in the code list provided for it. An empty value is also accepted by the test condition.

What the rule means

ram:LanguageID identifies the language of the document. A code not in the list cannot be mapped to an allowed language using the specified values.

Please use an allowed language code for the document

The value in ram:LanguageID is not in the allowed code list. You can use a listed value or leave the element empty.

What to do
  1. Check the value of ram:LanguageID in the document header.
  2. Use an entry from the allowed code list or leave the value empty.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty value or a value present as an enumeration in the code list with identifier 4.

Where the rule applies

The rule applies to ram:LanguageID in the document header.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:LanguageID
Test expression (assert/@test)
string-length($codeValue4)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=4]/enumeration[@value=$codeValue4]