How to fix the Oracle error SQL-02142: Collection is NULL?

In this post, you’ll learn more about the Oracle ErrorSQL-02142: Collection is NULL with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

SQL-02142: Collection is NULL

Reason for the Error SQL-02142: Collection is NULL

Cause: The collection referenced in an EXEC SQL COLLECTION statement is null.

How to fix the Error SQL-02142: Collection is NULL ?

You can fix this error in Oracle by following the below steps

Action: Check the status of the associated indicator variable prior to executing an EXEC SQL COLLECTION statement.

Tags :

Leave Your Comment