FRM-41219: can not find the report: not valid

Hi am having the error when calling the report of my form in 11 GR 2 when I click the button I get this error

FRM-41219: can not find the report: not valid

and when I click the ok button on the error I get this error frm - 40738:Argument 1 to builtin RUN_REPORT_OBJECT can NOT BE NULL

This is how I called the report

DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('report4');
v_rep := RUN_REPORT_OBJECT(repid); END;
 

Try something like this:

PROCEDURE TEST_REPORT IS

Repid REPORT_OBJECT;

v_rep VARCHAR2 (100);

rep_status VARCHAR2 (50);

BEGIN

Rep: = find_report_object ('report4');

SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_EXECUTION_MODE, batch);

SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_COMM_MODE, SYNCHRONOUS);

SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_DESTYPE, cache);

SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_DESFORMAT, 'html');

SET_REPORT_OBJECT_PROPERTY (ID REP, REPORT_SERVER, '');

v_rep: = RUN_REPORT_OBJECT (repid);

rep_status: = REPORT_OBJECT_STATUS (v_rep);

While rep_status in ('MARKET', 'OPENING_REPORT', 'PENDING')

LOOP

rep_status: = report_object_status (v_rep);

END LOOP;

IF rep_status = "FINISHED" THEN

/ * Display the report in the browser * /.

WEB. SHOW_DOCUMENT ('/ reports/rwservlet/getjobid ' |)

substr (v_rep, InStr(v_rep,'_',-1) + 1) |'? "|' server =","_blank"); "

ON THE OTHER

message ("error when running report");

END IF;

END;

Replace with your report server name.

Concerning

Tags: Oracle Development

Similar Questions

Maybe you are looking for