Invalid schemeID value on GlobalID

Error FX-SCH-A-000764 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 in the designated code list. This check also accepts an empty code value.

What the rule means

The code list limits the permitted scheme identifiers for the tax representative’s global identifier.

Please use an allowed `schemeID` value for `GlobalID`

The schemeID value on the tax representative’s global identifier is not in the designated code list. Using a value allowed by that list resolves the error.

What to do
  1. Locate ram:GlobalID in the seller tax representative details.
  2. Check the schemeID value against the code list designated for this identifier.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty code value or a value present in the code list identified by 11.

Where the rule applies

The rule applies to the schemeID attribute of ram:GlobalID in the seller tax representative details.

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