Permitted schemeID value

Error FX-SCH-A-000681 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 is neither empty nor included in the value list allowed for this attribute.

What the rule means

The value of schemeID must be empty or match an entry in the designated code list for global identifiers.

Please use a permitted value for schemeID

The value of schemeID on ram:GlobalID is not permitted. It must be empty or match a value in the designated code list.

What to do
  1. Find ram:GlobalID for the buyer’s tax representative.
  2. Check the value of the schemeID attribute.
  3. Use an empty value or a value from the code list designated for schemeID.
  4. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty $codeValue11 or a value included in the enumeration of the code list with ID 11.

Where the rule applies

The rule applies to the schemeID attribute on the ram:GlobalID element of the buyer’s tax representative.

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