Use an allowed identification scheme value

Error FX-SCH-A-001102 Factur-X

Value of '@schemeID' 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 @schemeID is not included in the value list defined for this identification scheme. An empty value passes this particular value check.

What the rule means

The value list restricts @schemeID to values defined for this identification context. This keeps the identification within the specified code list.

Please use an allowed identification scheme value for the organization

The value entered for @schemeID is not in the value list defined for it. You can resolve this by using a value from that list.

What to do
  1. Check the value of @schemeID on the relevant ram:ID element.
  2. Use a value from the code list defined for this identification scheme.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:ID schemeID="UNKNOWN">123</ram:ID>
✓ Correct
<ram:ID schemeID="">123</ram:ID>
Technical details

The check accepts an empty value or a value present in code list 12 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to @schemeID on the ram:ID element of the legal organization under ram:ShipToTradeParty of an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeDelivery/ram:ShipToTradeParty/ram:SpecifiedLegalOrganization/ ram:ID
Test expression (assert/@test)
string-length($codeValue12)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=12]/enumeration[@value=$codeValue12]