Use an allowed guideline identifier

Error FX-SCH-A-000636 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 non-empty value of ram:ID is not included in the code list used by this rule. The test also accepts an empty value.

What the rule means

ram:ID identifies the guideline specified in the document context. A non-empty value must correspond to an entry in the checked code list.

Please use an allowed guideline identifier

The value provided in ram:ID is not recognized as an allowed guideline identifier. A non-empty value must be included in the code list checked for this rule.

What to do
  1. Check the value in ram:ID of GuidelineSpecifiedDocumentContextParameter.
  2. Use a non-empty value included in the code list applicable to this rule, or leave the value empty.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty string or a value present as an enumeration in codedb/cl[@id=1].

Where the rule applies

The rule applies to ram:ID in the GuidelineSpecifiedDocumentContextParameter.

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