Seaquel
SQL Server error code

SQL Server error 2772

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

Cannot access temporary tables from within a function.
Msg2772
Severity16
Group2000–2999

Source: Database Engine events and errors