Allowed business process specification 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 value of ram:ID is not in the code list provided for it. An empty value is also accepted by the test condition.

What the rule means

ram:ID identifies the business process specification applied to the document. A value not in the list cannot be mapped to a specification provided by the code list.

Please use an allowed identifier for the business process specification

The value in ram:ID is not in the allowed code list. You can use a listed value or leave the element empty.

What to do
  1. Check the value of ram:ID in ram:GuidelineSpecifiedDocumentContextParameter.
  2. Use an entry from the allowed code list or leave the value empty.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty value or a value present as an enumeration in the code list with identifier 1.

Where the rule applies

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