Seaquel
SQL Server error code

SQL Server error 557

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

Only functions and some extended stored procedures can be executed from within a function.
Msg557
Severity16
Group0–999

Source: Database Engine events and errors