Use an allowed schemeID value

Error FX-SCH-A-001151 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 ram:GlobalID is not included in the code list used by this rule. An empty value or a value included in the code list passes this check.

What the rule means

The code list limits the permitted scheme identifiers for the global product identifier to recognized values; the check also permits an empty attribute value.

Please use an allowed value for `schemeID`

The value entered for schemeID on ram:GlobalID is not in the permitted code list. Use a value listed there or leave the value empty.

What to do
  1. Locate ram:GlobalID for the referenced product.
  2. Check the schemeID attribute value against the permitted code list.
  3. Replace it with a listed value or clear it.
  4. Regenerate the invoice and validate it again.
Technical details

The XPath passes when schemeID is empty or its value matches an entry in code list 14.

Where the rule applies

The rule checks the value of the schemeID attribute on ram:GlobalID of a referenced product within an invoice line.

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