Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PLS-00567: cannot pass NULL to a NOT NULL constrained formal parameter

543521Oct 10 2007 — edited Oct 10 2007
Hi everyone,

I have a package like this:

CREATE OR REPLACE PACKAGE test IS

TYPE cur_type IS REF CURSOR;

TYPE cur_Analysis IS RECORD (
ANALYSIS_ID number,
ORDER varchar2);

TYPE cur_typeAnalysis IS REF CURSOR RETURN cur_Analysis;

PROCEDURE p_Report (i_v_Name IN varchar2
,i_v_Owner IN varchar2
,i_cur_Analysis IN cur_typeAnalysis
,i_cur_Schedulers IN cur_type
,o_n_ERROR_CODE OUT NUMBER
,o_v_ERROR_TEXT OUT VARCHAR2);
END test;

The problem is that sometimes the procedure p_Report gets i_cur_Analysis and i_cur_Schedulers equal to null. Because of that I get an error message like this: PLS-00567: cannot pass NULL to a NOT NULL constrained formal parameter.

Can anyone give me some help on this?

Thanks,
Maria
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2007
Added on Oct 10 2007
9 comments
1,777 views