Seaquel
SQL Server error code

SQL Server error 8161

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

Argument %d of the %.*ls function does not match any of the expressions in the GROUP BY clause.
Msg8161
Severity15
Group8000–8999

Source: Database Engine events and errors