An allowed schemeID value for the manufacturer identifier

Error FX-SCH-A-001161 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 on ram:GlobalID is neither empty nor included in the value list used by this rule.

What the rule means

The value of schemeID must either be empty or match a value permitted by the code list for this identifier. Another value cannot be recognized as an allowed identification scheme.

Please use an allowed scheme value for the manufacturer identifier

The schemeID value on the manufacturer’s global identifier is not in the permitted value list. Use a value from that list or leave the attribute value empty.

What to do
  1. Locate ram:GlobalID in the product’s manufacturer details.
  2. Check the schemeID value against the values allowed by this rule.
  3. Use an allowed value or leave schemeID empty.
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:GlobalID schemeID="UNLISTED_VALUE">123456</ram:GlobalID>
✓ Correct
<ram:GlobalID schemeID="">123456</ram:GlobalID>
Technical details

The test accepts an empty value or a value from codedb.xml, code list cl with id=11; other values are rejected.

Where the rule applies

The rule checks the value of the schemeID attribute on ram:GlobalID in the manufacturer details of a product on an invoice line.

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