Use an allowed scheme identifier for the global seller identifier

Error FX-SCH-A-001047 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 GlobalID is neither empty nor included in the code list for this marker. The rule accepts an empty value or a value listed in the code list.

What the rule means

The code list defines which values are allowed as the scheme designation for GlobalID. A value not listed cannot be associated with a marker recognized by this rule.

Please use an allowed scheme marker for the global seller identifier

The value of schemeID on the seller’s GlobalID is not included in its code list. The rule accepts an empty value or a value listed there.

What to do
  1. Find the GlobalID element under ItemSellerTradeParty and check the value of schemeID.
  2. Use either an empty value or a value from the code list with identifier 11.
  3. Regenerate the invoice and validate it again.
Technical details

The XPath accepts schemeID when its value is empty or is listed as a value in the code list with identifier 11.

Where the rule applies

The rule applies to the value of the schemeID attribute on the seller’s GlobalID element for an invoice line.

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