Seaquel
SQL Server error code

SQL Server error 2227

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

%sThe variable '%ls' was not found in the scope in which it was referenced.
Msg2227
Severity16
Group2000–2999

Source: Database Engine events and errors