Seaquel
SQL Server error code

SQL Server error 6591

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

%s for "%.*ls" failed because first parameter of "%.*ls" method must be of type System.Object.
Msg6591
Severity16
Group6000–6999

Source: Database Engine events and errors