Use an allowed identification scheme code for the payee

Error FX-SCH-A-000597 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 on ram:GlobalID is not included in the code list assigned to this attribute. This test also accepts an empty value.

What the rule means

The schemeID attribute identifies the scheme of the payee’s global identifier. A value that is not listed does not identify a scheme intended for this field.

Please use a valid identification scheme code for the payee

The scheme for the payee’s global identifier is not recognized as an allowed value. You can correct the schemeID attribute using the code list that applies to this field.

What to do
  1. Find ram:PayeeTradeParty and its ram:GlobalID element.
  2. Compare the schemeID attribute value with the code list that applies to this field.
  3. Replace any unlisted value with an allowed value.
  4. Generate the invoice again and validate it.
Technical details

The test accepts an empty value or a value listed in code list 15; a non-empty value that is not listed fails.

Where the rule applies

This rule applies to the schemeID attribute of ram:GlobalID within ram:PayeeTradeParty.

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