Allowed scheme for the legal identifier

Error FX-SCH-A-000877 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 value of @schemeID on ram:SpecifiedLegalOrganization/ram:ID is not included in the list of values allowed for it.

What the rule means

The scheme identifies the type of the invoicee’s legal identifier.

Please use an allowed scheme for the legal identifier

The value of @schemeID on the invoicee’s legal identifier is not allowed. Use a value permitted for this identifier.

What to do
  1. Locate ram:ID in the invoicee’s ram:SpecifiedLegalOrganization.
  2. Check the value of @schemeID against the applicable code list.
  3. Regenerate the invoice and validate it again.
Technical details

The rule compares the value of @schemeID with entries in the code list identified as 12; this test does not reject an empty value.

Where the rule applies

The rule applies to the @schemeID attribute of ram:ID in the invoicee’s ram:SpecifiedLegalOrganization.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:InvoiceeTradeParty/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]