Disallowed schemeID value for GlobalID

Error FX-SCH-A-001146 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 provided for @schemeID on ram:GlobalID is not included in the code list allowed by this rule. The test also accepts an empty value.

What the rule means

@schemeID identifies the scheme of the global product identifier. A disallowed value does not conform to the code list defined for this designation.

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

The value of @schemeID on ram:GlobalID is not allowed by this rule. Check whether the value is included in the designated code list.

What to do
  1. Find ram:GlobalID in the invoice line’s product details.
  2. Check the value of @schemeID against the permitted code list.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty value or a value listed in enumeration 8 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

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

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