Invalid scheme for the ship-from organization identifier

Error FX-SCH-A-000806 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:ID is not included in the code list used by this rule. An empty value is also accepted by this check.

What the rule means

The scheme identifies the system used to classify the organization identifier. A value not listed cannot be matched to an allowed scheme using the code list applied by this rule.

Please use a valid scheme for the ship-from organization identifier

The scheme in @schemeID of the ram:ID identifier is not recognized by the code list in use. You can adjust the value to match that list.

What to do
  1. Locate ram:ID in ram:SpecifiedLegalOrganization for the ship-from party.
  2. Check the value of @schemeID against the code list used by this rule.
  3. Correct the value if it is not included in the list.
  4. Regenerate the invoice and validate it again.
Technical details

The check accepts either an empty value (string-length($codeValue12)=0) or an entry in code list 12 of the Factur-X code database.

Where the rule applies

This rule applies to the @schemeID attribute of ram:ID in ram:SpecifiedLegalOrganization for the ship-from party (ram:ShipFromTradeParty).

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