PL/SQL (MOSC)

MOSC Banner

ORA-06531: Reference to uninitialized collection

edited Nov 19, 2013 4:13AM in PL/SQL (MOSC) 3 commentsAnswered
Hi,
I want to check a condition in a nested table and if a record in that table satisfies a condition, i need to copy that record to another nested table. i have the below procedure.
When i try to compile it, it compiles fine. But i get a runtime exception saying "ORA-06531: Reference to uninitialized collection".  I know its coming from this statement
 " x_notes_rec(counter1) := x_notes_one_rec(counter);".

What is the problem? How to solve this?


 PROCEDURE get_tasklist (
      p_assignee_id          IN       NUMBER
     ,x_notes_rec            OUT      xx_fs_mob_loc_rec.task_notes_tab

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center