Seaquel
SQL Server error code

SQL Server error 2785

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

User-defined functions, user-defined aggregates, CLR types, and methods on CLR types are not allowed in expressions in this context.
Msg2785
Severity16
Group2000–2999

Source: Database Engine events and errors