Seaquel
SQL Server error code

SQL Server error 406

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

%ls cannot be used in the PIVOT operator because it is not invariant to NULLs.
Msg406
Severity16
Group0–999

Source: Database Engine events and errors