Use an allowed identifier scheme for the legal organization

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 identifier. This check allows an empty value.

What the rule means

The value list ensures that the specified identifier scheme is one of the values defined for the legal organization’s identifier.

Please use an allowed identifier scheme for the legal organization

The identifier scheme specified for the ship-to party’s legal organization is not in the defined value list. Change schemeID to an allowed entry or leave it empty.

What to do
  1. Find ram:ID under ram:SpecifiedLegalOrganization for the ship-to party.
  2. Check the schemeID value against the defined value list, or leave it empty.
  3. Generate the invoice again and validate it.
Technical details

An empty value passes this check; otherwise, schemeID must match an entry in the value list identified by 12.

Where the rule applies

This rule applies to the schemeID attribute of the legal organization’s ram:ID for the ship-to party within 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]