Invoice guideline identifier not allowed

Error FX-SCH-A-000493 Factur-X

Value of 'ram:ID' 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:ID is not included in the code list for invoice guidelines. An empty code value is also permitted by the test.

What the rule means

ram:ID indicates which invoice guideline is specified for the document context. An allowed value identifies that guideline unambiguously.

Please use an allowed invoice guideline identifier

The invoice guideline identifier was not recognized as an allowed value. An allowed value associates the document context with the specified guideline.

What to do
  1. Check ram:ID under ram:GuidelineSpecifiedDocumentContextParameter.
  2. Compare its value with the permitted entries in the invoice-guideline code list.
  3. Recreate the invoice and validate it again.
Technical details

The test accepts an empty code value or a value found in code list ID 1 in FACTUR-X_BASIC_codedb.xml.

Where the rule applies

The rule applies to ram:ID in ram:GuidelineSpecifiedDocumentContextParameter within the document context.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ ram:ID
Test expression (assert/@test)
string-length($codeValue1)=0 or document('FACTUR-X_BASIC_codedb.xml')/codedb/cl[@id=1]/enumeration[@value=$codeValue1]