Allowed scheme ID value for the global identifier

Error FX-SCH-A-000873 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 GlobalID is not included in the code list for this attribute. The test permits an empty value.

What the rule means

The test permits either an empty schemeID value or a value listed in its associated code list. Other non-empty values are not allowed.

Please use an allowed scheme ID value for the invoicee

The value of schemeID on the invoicee’s GlobalID is not allowed. You can leave it empty or use a value listed in the associated code list.

What to do
  1. Find the schemeID attribute on the invoicee’s GlobalID.
  2. Leave its value empty or replace it with a value listed in the associated code list.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:GlobalID schemeID="INVALID"/>
✓ Correct
<ram:GlobalID schemeID=""/>
Technical details

The test accepts a value of length zero or a value present in the enumeration of code list cl with ID 11.

Where the rule applies

The rule applies to the schemeID attribute of the invoicee’s GlobalID.

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