Seaquel
SQL Server error code

SQL Server error 6940

SQL Server raises error 6940 at severity 16, which marks a problem with the query or data that you can correct.

Invalid component named '%s' found in global scope. Only elements, attributes, types and groups can be defined in global context
Msg6940
Severity16
Group6000–6999

Source: Database Engine events and errors