Seaquel
SQL Server error code

SQL Server error 8191

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

Replication filter procedures can only contain SELECT, GOTO, IF, WHILE, RETURN, and DECLARE statements.
Msg8191
Severity16
Group8000–8999

Source: Database Engine events and errors