Allowed scheme identifier for the global identifier

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 the schemeID attribute on ram:GlobalID is neither empty nor included in the allowed enumeration for this scheme.

What the rule means

The scheme identifier for the global identifier must either be empty or match a value allowed by the code list.

Please use an allowed scheme identifier for the global identifier

The value of schemeID on ram:GlobalID does not match the allowed code list. Use a value listed there or leave the value empty.

What to do
  1. Find ram:GlobalID for the buyer’s tax representative.
  2. Compare the value of schemeID with the allowed code list and use a value listed there or an empty value.
  3. Generate the invoice again and validate it once more.
Technical details

The rule accepts an empty value or a value listed in the external code list with identifier 11.

Where the rule applies

The rule checks the value of the schemeID attribute on ram:GlobalID for 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]