Use an 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 empty and does not occur in the code list checked for this element. This specific check also accepts an empty value.

What the rule means

ram:LanguageID identifies a language using a code. Under this rule, a code outside the associated code list is not recognized as an allowed language code.

Please use an allowed language code

The value in ram:LanguageID is not included in the code list checked for this field. You can check the entered code against the allowed entries and adjust it.

What to do
  1. Locate ram:LanguageID in the document header.
  2. Check whether its value is included in the code list applicable to this element.
  3. Generate the invoice again and validate it once more.
Technical details

The XPath test accepts an empty value or a value present in the code list identified by 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]