Invalid scheme code for the seller’s global identifier

Error FX-SCH-A-000579 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 the schemeID attribute in ram:GlobalID is neither empty nor included in the designated code list.

What the rule means

The scheme code identifies the system or type of the seller’s global identifier. An allowed code enables this identifier to be interpreted consistently.

Please check the scheme code for the seller’s global identifier

A scheme code is specified for the seller’s ram:GlobalID, but it does not match the designated code list. You can adjust the value or leave the attribute empty.

What to do
  1. Check the value of the schemeID attribute in ram:GlobalID.
  2. Use a value included in the designated code list or leave the attribute empty.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SellerTradeParty>
  <ram:GlobalID schemeID="NOT-A-CODE">123456</ram:GlobalID>
</ram:SellerTradeParty>
✓ Correct
<ram:SellerTradeParty>
  <ram:GlobalID schemeID="">123456</ram:GlobalID>
</ram:SellerTradeParty>
Technical details

The test accepts an empty value or a value present in the code list identified as 15.

Where the rule applies

The rule applies to the schemeID attribute of ram:GlobalID within the seller details in ram:SellerTradeParty.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTradeParty/ram:GlobalID
Test expression (assert/@test)
string-length($codeValue15)=0 or document('FACTUR-X_EN16931_codedb.xml')/codedb/cl[@id=15]/enumeration[@value=$codeValue15]