Disallowed identification scheme

Error FX-SCH-A-000899 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 of ram:ID is not included in the applicable code list. An empty value is allowed by the test condition.

What the rule means

The identification scheme indicates the system used to form the legal organization’s identifier. A disallowed scheme value can prevent that identifier from being classified.

Please use an allowed scheme for `ram:ID`

The legal organization’s identifier for the invoicer uses a scheme in ram:ID that is not in the applicable code list. An allowed value makes it possible to classify the identifier.

What to do
  1. Locate ram:ID under the invoicer’s ram:SpecifiedLegalOrganization.
  2. Check the value of @schemeID and compare it with the entries allowed for this scheme.
  3. Generate the invoice again and validate it once more.
Technical details

The test checks whether the value read from @schemeID is empty or occurs in the code list identified by 12.

Where the rule applies

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

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