Use an allowed guideline identifier

Error FX-SCH-A-000026 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 empty and is not listed as an allowed value in enumeration 1 in FACTUR-X_MINIMUM_codedb.xml.

What the rule means

The guideline identifier must either be empty or match a value in the enumeration defined for this rule.

Please use an allowed guideline identifier

The value in ram:ID does not match an allowed entry. The identifier may be empty or match a value from the designated code list.

What to do
  1. Check the value of ram:ID in ram:GuidelineSpecifiedDocumentContextParameter.
  2. Clear the value or use an entry from the designated code list.
  3. Generate the invoice again and validate it once more.
Technical details

The XPath test accepts an empty value or checks for a match with an enumeration value under codedb/cl[@id=1] in the specified code list.

Where the rule applies

The rule checks the value of ram:ID within ram:GuidelineSpecifiedDocumentContextParameter.

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