The global identifier’s schemeID must contain an allowed value

Error FX-SCH-A-000802 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 for code list 11. An empty value or a value included in that list passes this check.

What the rule means

The check limits the value of schemeID to the values listed in code list 11, while also allowing an empty value. A non-empty value not listed there does not meet this requirement.

Please use an allowed `schemeID` value for the ship-from party’s global identifier

The schemeID value on the ship-from party’s global identifier is not in the available value list. You can change it to a value permitted by this check or leave it empty.

What to do
  1. Find the schemeID attribute on ram:GlobalID in ram:ShipFromTradeParty.
  2. Compare its non-empty value with the entries in code list 11, or leave it empty.
  3. Regenerate the invoice and validate it again.
Technical details

The test passes when codeValue11 is empty or is listed as an enumeration value under cl[@id=11] in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the value of the schemeID attribute on ram:GlobalID within ram:ShipFromTradeParty.

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