Allowed scheme code for the payer’s legal ID

Error FX-SCH-A-000940 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 the schemeID attribute on ram:ID is not in the code list used by this rule. An empty value is explicitly allowed by this check.

What the rule means

An allowed schemeID value associates the payer’s legal ID with a recognized identification scheme.

Please use an allowed code for the payer’s legal ID

The schemeID value on the payer’s legal ID is not in the allowed code list. Use an allowed value or leave it empty.

What to do
  1. Find ram:ID within the payer’s ram:SpecifiedLegalOrganization.
  2. Check the schemeID value against the allowed code list or remove the value.
  3. Generate the invoice again and validate it.
Technical details

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

Where the rule applies

The rule applies to the schemeID attribute of ram:ID within the payer’s ram:SpecifiedLegalOrganization.

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