Allowed scheme for the global identifier

Error FX-SCH-A-000873 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:GlobalID is not included in the list of values allowed for this identifier.

What the rule means

An allowed scheme indicates the type represented by the invoicee’s global identifier.

Please use an allowed scheme for the global identifier

The value of @schemeID on the invoicee’s ram:GlobalID is not allowed. Use a value permitted by the code list for this identifier.

What to do
  1. Locate ram:GlobalID for the invoicee.
  2. Check the value of @schemeID against the code list applicable to this identifier.
  3. Regenerate the invoice and validate it again.
Technical details

The rule compares the value of @schemeID with entries in the code list identified as 11; this test does not reject an empty value.

Where the rule applies

The rule applies to the @schemeID attribute of the invoicee’s ram:GlobalID.

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