Allowed value for schemeID

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 does not match any value allowed for this attribute in the code list. An empty value passes this value check, provided the attribute is present.

What the rule means

The allowed values specify the identification scheme used for the global product identifier. A different non-empty value cannot be recognized as a valid scheme for this element.

Please use an allowed value for `schemeID`

The value provided for schemeID is not in the code list allowed for this attribute. You can change it to an allowed value.

What to do
  1. Locate ram:GlobalID in the referenced product on the invoice line.
  2. Check the schemeID attribute against the values allowed for this field.
  3. Generate the invoice again and validate it again.
Technical details

The test passes if the checked value is empty or occurs in the enumeration for code list ID 14 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

This rule applies to the schemeID attribute of ram:GlobalID within a referenced product on 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]