Allowed document context identifier

Error FX-SCH-A-000556 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 its designated code list.

What the rule means

ram:ID provides the identifier for the specified document context. A value absent from the list is not allowed for this identifier.

Please use an allowed identifier for the document context

The identifier in ram:ID is not included in the designated code list. You can replace it with a listed value or leave it empty.

What to do
  1. Check ram:ID within ram:GuidelineSpecifiedDocumentContextParameter.
  2. Use only a value from the code list applicable to this element, 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 in the enumeration of code list ID 1 in FACTUR-X_EN16931_codedb.xml.

Where the rule applies

The rule applies to ram:ID within ram:GuidelineSpecifiedDocumentContextParameter in rsm:ExchangedDocumentContext.

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