Allowed business process guideline identifier

Error FX-SCH-A-000418 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 neither empty nor included in the code list used for this identifier.

What the rule means

When provided, the identifier must match a value defined in the associated code list.

Please use an allowed business process guideline identifier

The identifier in ram:ID is not included in the associated code list. Use a value listed there or leave ram:ID empty.

What to do
  1. Find ram:ID in ram:GuidelineSpecifiedDocumentContextParameter.
  2. Check the value against the code list for this identifier.
  3. Use a value included in that list or leave ram:ID empty.
  4. Generate the invoice again and validate it.
Technical details

The test accepts an empty resolved code value or a value from the enumeration for code list ID 1.

Where the rule applies

The rule checks ram:ID within ram:GuidelineSpecifiedDocumentContextParameter in 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-WL_codedb.xml')/codedb/cl[@id=1]/enumeration[@value=$codeValue1]