Disallowed identification scheme

Error FX-SCH-A-000895 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:GlobalID 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 invoicer’s global identifier. A disallowed scheme value can prevent that identifier from being classified.

Please use an allowed scheme for `ram:GlobalID`

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

What to do
  1. Check the value of @schemeID in ram:GlobalID.
  2. Compare the value 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 11.

Where the rule applies

The rule applies to the invoicer’s ram:GlobalID under ram:InvoicerTradeParty.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:InvoicerTradeParty/ram:GlobalID
Test expression (assert/@test)
string-length($codeValue11)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=11]/enumeration[@value=$codeValue11]