Buyer identifier scheme code not allowed

Error FX-SCH-A-000494 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 on ram:GlobalID is not included in the applicable code list. An empty code value is also permitted by the test.

What the rule means

ram:GlobalID contains a global identifier for the buyer; @schemeID identifies the scheme used. A scheme that is not allowed is not specified in a permitted form.

Please use an allowed scheme for the buyer’s global identifier

The scheme for the buyer’s global identifier was not recognized as an allowed value. An appropriate scheme identifies the type of identifier unambiguously.

What to do
  1. Check @schemeID on ram:GlobalID under ram:BuyerTradeParty.
  2. Compare its value with the permitted entries in the applicable code list.
  3. Recreate the invoice and validate it again.
Technical details

The test accepts an empty code value or a value found in code list ID 11 in FACTUR-X_BASIC_codedb.xml.

Where the rule applies

The rule applies to the @schemeID attribute on ram:GlobalID in ram:BuyerTradeParty.

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