Allowed value for the buyer identifier’s schemeID

Error FX-SCH-A-000697 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 on GlobalID is not included in the applicable code list. The test accepts an empty value or a value from code list 11.

What the rule means

A value from the specified code list identifies the scheme of the buyer’s global identifier.

Please use an allowed value for the buyer identifier’s `schemeID`

The supplied schemeID value for the buyer’s GlobalID is not allowed. Use a value from the applicable code list.

What to do
  1. Check schemeID on the GlobalID element in BuyerTradeParty.
  2. Replace any disallowed value with a value from code list 11.
  3. Regenerate the invoice and validate it again.
Technical details

The test accepts schemeID when its value is empty or occurs in the enumeration for code list 11.

Where the rule applies

The rule applies to the schemeID attribute of GlobalID in BuyerTradeParty.

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