Seaquel
SQL Server error code

SQL Server error 8160

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

A GROUPING or GROUPING_ID function can only be specified when there is a GROUP BY clause.
Msg8160
Severity15
Group8000–8999

Source: Database Engine events and errors