Use an allowed schemeID value

Error FX-SCH-A-000626 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 is not included in the code list used by this rule. This test also accepts an empty value.

What the rule means

schemeID indicates the identification scheme used to interpret the global product identifier.

Please use an allowed scheme for `ram:GlobalID`

The schemeID on ram:GlobalID does not match a value in the associated code list. You can enter an allowed scheme or leave the value empty.

What to do
  1. Check the schemeID attribute of ram:GlobalID.
  2. Use a scheme from the code list allowed by this rule, or leave the attribute empty.
  3. Regenerate the invoice and validate it again.
Technical details

The test accepts an empty value or a value listed in code list 5.

Where the rule applies

The rule applies to the schemeID attribute of ram:GlobalID for the product of an invoice line.

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