Seaquel
SQL Server error code

SQL Server error 177

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

The IDENTITY function can only be used when the SELECT statement has an INTO clause.
Msg177
Severity15
Group0–999

Source: Database Engine events and errors