Error Code Portal
PostgreSQLPostgreSQLError code

22016

invalid argument for nth value function

Alternative forms: invalid_argument_for_nth_value_function

Code 22016 · An issue reported by PostgreSQL.

invalid_argument_for_nth_value_function (Class 22 — Data Exception)

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.