FRM-92101 error while running report from form

HI All,
I am getting the form error FRM-92101 while running report from form menu.My code is given below:
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT47');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT('http://192.168.0.21:8889/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
ELSE
message('Error when running report');
END IF;
Clear_message;
END;
Clear_message;
--Arif                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

hi Arif
Please see this note on MOS/Metalink for some common causes of this error:
Known Causes of FRM-92101 Error In Forms [ID 604633.1]
thanks,
AMN

Similar Messages

  • FRM-92101 error while running report from a button or menu

    Hi All,
    I am getting the error FRM-92101 while running report without parameter from a button or menu. I am using Developer Suit 10g. I get the error as it shows there has some configuration problem in my form. Will you please help me anyone how can i solve the problem. My previous forms running very well both with parameter and without parameter.
    Arif

    Hello Sir,
    Thanks for your cooperation. I have solved my problem by myself. The fact was that, when i tried with the following code which made my report---
    SELECT br.bid, br.bname, br.branchtxnstatus, dif.difference
    FROM branch br,
    (SELECT gladbrid branchid,
    SUM
    (CASE
    WHEN ga.gl_acc_categry IN ('L', 'I')
    THEN gd.gladbalance
    ELSE -1 * gd.gladbalance
    END
    ) AS difference
    FROM glaccount ga, glaccountdetail gd
    WHERE ga.glid = gd.gladglid
    GROUP BY gladbrid) dif
    WHERE dif.branchid = br.bid AND br.branchtxnstatus = :Br_Status
    and dif.difference!=0
    ORDER BY br.bid;
    and the code against the button or menu item is---
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('ASSET');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://192.168.0.21:8889/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    ELSE
    message('Error when running report');
    END IF;
    Clear_message;
    END;
    Clear_message;
    which has shown the error FRM-92101 and didn't run the report.
    In that case I have changed the query to run the report. first of all i create a view following the query and build the report using a simple select query. that's etc. my report running fine now.
    It is mentioned that there had no error on my codes.
    Arif

  • Error while running report from Form. i am using Forms 10g.

    dear all,
    here is a problem when running the report from a fom. gives the pollowing error.
    REP-110: Unable to open file 'f:\oracle\accano\gl\coa_list.rdf'.
    REP-1070: Error while opening or saving a document.
    REP-0110: Unable to open file 'f:\oracle\accano\gl\coa_list.rdf'.
    i am using Forms 10g.
    thanks
    Muhammad Nadeem

    See metalink doc id 215469.1
    The purpose of this document is to:
    - provide information on how to resolve the REP-110 error.
    - give hints on how to troubleshoot problem.
    - include a comprehensive summary of various scenarios which may
    result in a REP-110 error

  • ERROR WHILE RUNNING REPORT THROUGH FORMS.....!

    hi all,
    ive designed one form in Forms 9i...I'm tryin to run report through a Push button .....report is running well in paper layout through report builder 9i...The problem I'm facing is dat when i pressed button it is giving me error initially as FRM-41214 cannot run report and after that FRM-40735 When button pressed unhandled exception ora-06502.....What could go wrong??... Ive started OC4J instance ....created report object in object nevigator as well and defined basic properties for diff.parameters HTMLCSS,CACHE..etc.,mentioned report path in complete i.e.c:\reports\genbill.rdf ...Can anybody help me out ??? Thnx.!
    -----------------------CODE ON BUTTON----------------------------------
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('REPORT5');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('<HOSTNAME>:8889/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=myrepserver','_blank');
    ELSE
    message('Error when running report');
    END IF;
    PAUSE;
    END;

    When a report terminates with an error, REPORT_OBJECT_STATUS returns the value "TERMINATED_WITH_ERROR", which is 21 bytes of data, but rep_status is defined as 20 bytes. The 6502 error is due to the data not fitting the variable.
    I recommend wrapping the REPORT_OBJECT_STATUS function with a SUBSTR that limits the data returned to 20 bytes, which will ensure the results fit.
    For example:
    rep_status := SUBSTR(REPORT_OBJECT_STATUS(v_rep), 1, 20);

  • FRM-41214 unable to run report from forms with parameters

    Hi all,
    I am unable to run a report from forms if I pass parameters. Report is running fine in reports builder and in url if I access the report straightly.
    I used set_report_object_property to pass the parameters.
    Any clues to solve this problem?
    Priya

    Hi Jeneesh,
    Code is below:
    myreport1 :=find_report_object('MYREP');
    reportdata := Get_Parameter_List('reportsdata');
    IF NOT Id_Null(reportdata) THEN
    Destroy_Parameter_List( reportdata );
    END IF;
    reportdata := Create_Parameter_List('reportsdata');
    Add_Parameter(reportdata, 'account_number', TEXT_PARAMETER, :parameter.account_number);
         /* Setting the properties into Report Object */
         SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_DESTYPE, CACHE);
         SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_DESFORMAT, 'htmlcss');
         SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_SERVER,vc_reportserver);
                   SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_FILENAME, 'C:\priya\forms\EmcySummary.jsp');
              SET_REPORT_OBJECT_PROPERTY(myreport1,REPORT_OTHER,'account_number='|| :parameter.account_number);
         /* Value of v_rep identifies the report that is currently running either locally or on a remote report server */
         vrep := RUN_REPORT_OBJECT(myreport1,reportdata);
    /* Checking for Report Server is started or not, if not throw an exception else proceed */
         if vrep = vrep||'_0'then
         raise form_trigger_failure;
    end if;
         vjob_id := substr(vrep,length(vc_reportserver)+2,length(vrep));
         vrep_status := REPORT_OBJECT_STATUS(vrep);
         /* Checking the status of the report */
         WHILE vrep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    vrep_status := report_object_status(vrep);
    END LOOP;
    /* When the report status is successful then report is generated in Web */
         IF vrep_status = 'FINISHED' THEN
         --     COPY_REPORT_OBJECT_OUTPUT(vrep,v_tempstorage);
              WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver, '_blank');
         END IF;
    ---Any clues?

  • Page fault error while calling reports from forms

    dear friends.
    when a report is called from forms, just before opening up of background engine the application gets hanged with page fault. One has to forcibly shut down the application before loggin again.
    The error mesage generated from log file is
    Fatal NI connect error 12203, connecting to:
    (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle80)(ARGV0=oracle80orcl)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')))(CONNECT_DATA=(SID=orcl)(CID=(PR OGRAM=C:\ORAWIN95\BIN\RWRBE60.EXE)(HOST=SOUMYADIP)(USER=Soumya))))
    VERSION INFORMATION:
    TNS for 32-bit Windows: Version 8.0.5.0.0 - Production
    Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 8.0.4.0.0 - Production
    Time: 06-MAY-00 14:03:32
    Tracing not turned on.
    Tns error struct:
    nr err code: 12203
    TNS-12203: TNS:unable to connect to destination
    ns main err code: 12560
    TNS-12560: TNS:protocol adapter error
    ns secondary err code: 0
    nt main err code: 102
    TNS-00102: Keyword-Value binding operation error
    nt secondary err code: 0
    nt OS err code: 0
    After closing if we run the report next time it runs, but after 3/4 attempts the above error again occurs.
    Please Help
    Prashant

    I'm getting this also. I thought it was
    due to my use of DATA PARAMETER. I've
    logged TARS on this and have yet to hear
    back from Oracle.
    Maybe if enough of us get the error Oracle
    will give some guidance on this one.

  • Internal server error when running report from form

    i am getting the following error when I run a report from a form using 9i:
    java.lang.NumberFormatException: mgb_5
    this is my code:
    DECLARE
    repid REPORT_OBJECT;
    vc_rep VARCHAR2(20);
    vc_URL VARCHAR2(100);
    vc_rep_job VARCHAR2(10);
    BEGIN
    repid := find_report_object('rep2');
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'C:\uni\mdt\cw1\rep2.rdf');
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, 'htmlcss');
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER,'rep_mgb');
    vc_rep := RUN_REPORT_OBJECT(repid);
    vc_rep_job := substr(vc_rep,instr(vc_rep,'_')+1);
    vc_URL := '/reports/rwservlet/getjobid' ||vc_rep_job||'?server='||get_report_object_property (repid,report_server);
    web.show_document(vc_url, '_blank');
    END;

    Michael,
    print out "vc_rep_job" to a message or alert to see if this contains a valid number. If this shows as a valid number try to manually type the access URL into a browser URL field. If this shows then you have a hidden character within your URL.
    The PLSQL code looks okay.
    Frank

  • Connect Window Appears While Running Report From Forms 6i

    Hi.
    I have a problem ie. Using Oracle Server 8.0.5 In the parameter file when I use RESOURCE_LIMIT=TRUE Then
    Every time When report runs from Forms 6 It displays conection Window. But When RESOURCE_LIMIT=FALSE It does not appears.
    How to Control this while Using RESOURCE_LIMIT=TRUE
    Thans In advance.
    Shahzad

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by the oracle reports team:
    hello,
    there are no known issues with reports and this setting. did you check your database ? maybe there is a problem on the database side or you have defined limits that would cause call to report to initiate a new session.
    i would suggest you open a TAR with oracle support services in this matter.
    regards,
    the oracle reports team<HR></BLOCKQUOTE>
    Though I'm not aware that I use this setting, I also have a similar problem with Reports6.0. Randomly, while running a report from a Form using the RUN PRODUCT built-in, I see the database logon Form! Would looding my connection while the report was running cause this same thing?

  • Error when running report from form

    When i press on the button in form to run the report i get:
    Microsoft Visual C++ Runtime library
    Runtime Error!
    Programm C:\Oracle\DB9iDS\bin\ifweb90.exe
    abnormal program termination
    What could be the problem?

    I just installed the new patch. But now OC4J won't start -i get "-jar: illegal argument":
    C:\Program Files\Common Files\System\Mapi\1060\NT>C:\oracle\livo9iDS\jdk\bin\jav
    a -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.CORBA.ORBSingle
    tonClass=com.inprise.vbroker.orb.ORB -Doracle.security.jazn.config=C:\oracle\liv
    o9iDS\j2ee\Oracle9iDS\config\jazn.xml -Doracle.home=C:\oracle\livo9iDS -DORACLE_
    HOME=C:\oracle\livo9iDS -jar C:\oracle\livo9iDS\j2ee\home\oc4j.jar -userThreads
    -config C:\oracle\livo9iDS\j2ee\Oracle9iDS\config\server.xml
    -jar: illegal argument
    usage: java [-options] class
    where options include:
    -help print out this message
    -version print out the build version
    -v -verbose turn on verbose mode
    -debug enable remote JAVA debugging
    -noasyncgc don't allow asynchronous garbage collection
    -verbosegc print a message when garbage collection occurs
    -noclassgc disable class garbage collection
    -ss<number> set the maximum native stack size for any thread
    -oss<number> set the maximum Java stack size for any thread
    -ms<number> set the initial Java heap size
    -mx<number> set the maximum Java heap size
    -classpath <directories separated by semicolons>
    list directories in which to look for classes
    -prof[:<file>] output profiling data to .\java.prof or .\<file>
    -verify verify all classes when read in
    -verifyremote verify classes read in over the network [default]
    -noverify do not verify any class
    -nojit disable JIT compiler

  • When run report from form(6i) on the web,error FRM-921000

    While I was trying to run report from form (6i)on the web,it will give me this error
    message FRM-921000 and hang.
    But when I try to call form using form,I do
    not have the problem.
    May I know ehat is the cause?
    Anybody encounter this before?
    Thanks
    null

    I am running Forms 6i on the web and attempting to call me report via RUN_REPORT_OBJECT. I am getting the same error as Jenny FRM-92100. I need to pass a parameter list so I don't think I can use WEB.SHOW_DOCUMENT. Any ideas???
    Thanks,
    Jenny N.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Joseph Schwertner ([email protected]):
    Dear Jenny,
    I am running reports from Forms 6i on the WEB. I did not encounter your problem. Nevertheless I would like to share the following with you.
    RUN_PRODUCT doesn't work for calling reports ON THE WEB. Instead using RUN_PRODUCT do the following:
    1. Install Oracle Reports Server
    2. For WEB calls of reports use WEB.SHOW_DOCUMENT
    3. Learn how to pass parameters to the reports. It is a litlle bit strange, but it is explaint excellent in the documentation to the Reports Server.
    I hope this will help you.
    Joseph Schwertner
    <HR></BLOCKQUOTE>
    null

  • Running report from forms

    hi,
    I am having problems in running report from form.
    I am using oracle 9i on windows 2000 server and no 9iAS at the moment. On client side, i have windows xp and 9iDS installed. I want to run report from forms in 9iDS testing environment.
    my forms are running ok but now i need to run report. so what i have done is that i have created a report object in form and following are enteries present in it at the moment.
    Name REPORT7
    FileName D:\Projects\IBMR\forms\soil_water_quality_data.rdf
    Execution Mode Batch
    Communication Mode Synchronous
    Destination Type Cache
    Report Server 9irep
    and in when_button_pressed trigger
    DECLARE
    Report_Id REPORT_OBJECT;
    Report_Job_Id VARCHAR2(20);
    Report_Status VARCHAR2(80);
    Report_Svr VARCHAR2(20);
    BEGIN
    Report_Id := FIND_REPORT_OBJECT('REPORT7');
    Report_Svr := '9irep';
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_FILENAME, '\projects\ibmr\forms\soil_water_quality_data.rdf');
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_OTHER, 'paramform=no');
    Report_Job_Id := RUN_REPORT_OBJECT(Report_Id);
    Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
    WHILE Report_Status IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
    Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
    END LOOP;
    IF Report_Status = 'FINISHED' then
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(Report_job_id,instr(Report_Job_Id,'_',-1)+1)||'?'||'server=9irep','_blank');
    else
         message ('report server failed with error message '||report_status);
    END IF;
    END;
    i have installed report server with following command
    rwserver -install 9irep
    i have changed entry in rwservlet.properties like
    SINGLESIGNON=NO and i have removed the following entire block of 9irep.conf, which i have read from some documentation
    <!--security id="rwSec" class="oracle.reports.server.RWSecurity">
    <property name="securityUserid" value="%PORTAL_DB_USERNAME%/%PORTAL_DB_PASSWORD%@%PORTAL_DB_TNSNAME%" confidential="yes" encrypted="no"/>
    </security-->
    i get the following error message when i run my form
    frm-41214 Unable to run report
    and then next message is
    frm-41217 unable to get report job status
    i debugged the report id and it is
    9irep_0
    returned by Report_Job_Id := RUN_REPORT_OBJECT(Report_Id);
    When I checked the Report Queue Manager
    it is showing status like
    (9irep)Terminated with error
    and detail it shows is
    Unable to connect to the specified database.
    Now I am wondering what to do next.
    any suggestions???????

    Hello,
    From your description, it seems like the report is faling due to a database authentication problem. When you run your report from Forms, Forms internally passes the its database connection information to Reports automatically. So ensure that you are connected to a valid database in Forms, before the report is called.
    Please verify whether a simple report which does not require a database connection, for example, a report containing only a boilerplate text object, is running correctly. Also, in the trigger code that you have specified, you should add the following:
    SET_REPORT_OBJECT_PROPERTY(Report_Id, REPORT_DESTYPE, CACHE);
    so that the report output gets generated to the server cache, and can be retrieved using rwservlet/getjobid.
    Thanks,
    The Oracle Reports Team.

  • Problem in running report from forms 6i..........!

    hi all,
    I am working in oracle forms 6i and i am trying to run report from
    form while press one of the push-button. works fine upto 2nd line from the
    begin key-word.After that its showing error like " FRM-40738:Argument 1 to builtin
    REPORT_OBJECT_STATUS cannot be null.". Can any-one help me of how to solve this and
    wat would be the problem.........?
    declare
         run_rep varchar2(200);
         rep_obj report_object;
         rep_stat varchar2(20);
    begin
         rep_obj := find_report_object('report46');     
         run_rep := run_report_object(rep_obj);     
         rep_stat := report_object_status(run_rep);
         if rep_stat = 'FINISHED' then
         copy_report_object_output(run_rep, 'C:\Documents and Settings\trainee\Desktop\Icons\test.pdf');
         else
              message('error when running report');
         end if;     
    end;
    Please help asup!
    regards,
    jame

    hi rosario,
    Thanks for ur reply. My requirement is, I want to generate pdf file from the report output. so i wrote the following code which is taken from d2k documentation. Problem area has been highlighted in bold.
    declare
    run_rep varchar2(200);
    rep_obj report_object;
    rep_stat varchar2(20);
    begin
    rep_obj := find_report_object('report46');
    run_rep := run_report_object(rep_obj);
    rep_stat := report_object_status(run_rep);
    if rep_stat = 'FINISHED' then
    copy_report_object_output(run_rep, 'C:\Documents and Settings\trainee\Desktop\Icons\test.pdf');
    else
    message('error when running report');
    end if;
    end;
    Report is running but while coming to report_object_status. complior shows error like "FRM-40738:Argument 1 to builtin REPORT_OBJECT_STATUS cannot be null". Parameter for report_object_status is null, i dont know y it is null because report is running. If report is running means,then there must be some values in run_rep.
    why complior doesnt find the values from run_rep.......???
    regards,
    jame

  • Running reports from forms on the web

    On forms and reports 6i we used the following code to run reports from forms.
    We need to do the same on 9i forms and reports, we are running into problems.
    Any help will be appreciated.
    PROCEDURE web (inFileName VARCHAR2,
    inRecordGroup RECORDGROUP) IS
    outVirtualPath VARCHAR2(200) := '/forms90/f90servlet?p_url=/reports/rwservlet?'; outServer VARCHAR2(200) := 'server=rep_ora-app-4';
    outReport VARCHAR2(200) := 'report='||inFileName;
    outUserid VARCHAR2(200) :=
    'userid='||GET_APPLICATION_PROPERTY(USERNAME)||'/'||GET_APPLICATION_PROPERTY(PAS
    SWORD)||'@'||GET_APPLICATION_PROPERTY(CONNECT_STRING);
    outDesType VARCHAR2(200) := 'DESTYPE=CACHE';
    outDesFormat VARCHAR2(200) := 'DESFORMAT=PDF'; outUser VARCHAR2(2000);
    outCount INTEGER;
    error we are getting.
    FRM-42017:Module name must be specified.

    S Hatch (guest) wrote:
    : I'm thinking that you're going to have to install the Reports
    : cartridge, create an entry in the keymap with any parameters
    and
    : call your report via the url.
    : Dessislava Gantcheva (guest) wrote:
    : : How do I call a report from a form on the web?
    : : I have installed Windows NT Server 4.0 with SP 5, OAS4.0.7
    EE
    : : with patch 1, Developer 6.0 with patch 1. Developer server
    and
    : : forms server work fine in a non-cartridge implementation,
    but
    : I
    : : cannot run a report within a form. I just have no any info
    how
    : : to do this.
    I have entries in my keymap file and I can call my reports via
    the url, but I cannot run a report WITHIN a form. I mean to call
    a report by clicking on a button of a form on the web. The
    RUN_PRODUCT built-in does not work (at leas it seems like this)
    If any one has expiriense with it, please, give me a hint.
    Thanks
    null

  • Error while running report 10g

    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(1000);
    rep_status VARCHAR2(2000);
    BEGIN      
         repid := find_report_object('REPORT2');      
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    set_report_object_property(repid, report_comm_mode, 1);
    set_report_object_property(repid, report_destype, cache);
    set_report_object_property(repid, report_desformat, 'PDF');
    set_report_object_property(repid, report_server, 'myserver');
    v_rep := run_report_object(repid);
    rep_status := report_object_status(v_rep);
    WHILE rep_status IN ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    message(rep_status);
    IF rep_status = 'FINISHED'
    THEN
    web.show_document('http://localhost:8889/reports/rwservlet/showjobid' || substr(v_rep, instr(v_rep, '_', -1) + 1)
    || '?server = myserver');
    ELSE
    message('error while running reports-object ' || error_text);
    message(' ');
    clear_message;
    END IF;
    EXCEPTION
         WHEN OTHERS THEN
    message('error while running reports-object' || error_text );
    END;
    I have been trying the whole 5 days running this report but it is giving me error, i am making simple report which select all data and display from emp table, please help. Error I am getting is unable to run the report and Terminated_Report.

    Hi,
    Check this link...How to call a report in Forms 10g ?
    Hope this works...
    Hamid

  • How to run report from forms

    hi all,
    i have tried to run report from forms using below codig(got from online help)
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         rep_status varchar2(20);
         v_host varchar2(100):= 'localhost';
    v_port varchar2(10);
    v_parameter_string varchar2(4000);
    v_username varchar2(50);
    v_password varchar2(50);
    v_database varchar2(50);
    BEGIN
         repid := find_report_object('REPORT27');
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         if rep_status = 'FINISHED' then
              message('Report Completed');
              copy_report_object_output(v_rep,'E:/Rep/local1.pdf');
    --     host('MOZILLA E:/Rep/local.pdf');
    -- WEB.SHOW_DOCUMENT('http://192.168.0.160:1521/reports/rwservlet/getjobid'||
    -- substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
              else
         message('Error when running report.');
              end if;
              -- Get the full domain name of the server from the formsweb.cfg
    tool_env.getvar('SERVER_URL',v_host);
    -- Get the username/password and database from the .env file
    tool_env.getvar('APPLICATION_USERNAME',v_username);
    tool_env.getvar('APPLICATION_PASSWORD',v_password);
    tool_env.getvar('APPLICATION_DATABASE',v_database);
    -- If it is localhost then we are running on windows and need to use the windows port, otherwise we
    -- are on AIX and need to use the AIX port
    IF v_host = 'localhost' THEN
         v_port := '8889';
    ELSE
         v_port := '8889';
    END IF;
    -- Now build the parameter string for running the report      
    v_parameter_string := 'server=repserver';
    v_parameter_string := v_parameter_string||'&report= E:\AGE_NoELIGIBLEReport.rdf';
    v_parameter_string := v_parameter_string||'&userid='||v_username||'/'||v_password||'@'||v_database;
    v_parameter_string := v_parameter_string||'&execution_mode=batch';
    v_parameter_string := v_parameter_string||'&comm_mode=synchronous';
    v_parameter_string := v_parameter_string||'&destype=cache';
    v_parameter_string := v_parameter_string||'&desformat=pdf';
    -- Now run the report
    web.show_document('http://'||v_host||':'||v_port||'/reports/rwservlet?'||v_parameter_string,'_blank');
    END;
    REP-110: Unable to open file ' AGE_NoELIGIBLEReport.rdf'.
    REP-1070: Error while opening or saving a document.
    REP-0110: Unable to open file ' AGE_NoELIGIBLEReport.rdf'.
    but i hav report in e:\ then why its getting?

    Hi,
    I suggest you not to use the "E:\" directory letter, but the REPORTS_PATH instead.
    <p>
    from the Online Help
    </p>
    <p>
    On Windows, edit environment variables through the Registry Editor (Start > Run > Regedit).
    </p>
    <p>
    On UNIX, edit environment variables by revising and running the shell script that defines the initial default values (reports.sh). If you do this, be sure to keep a backup of the original, unaltered reports.sh file.
    </p>
    <p>
    Regards
    JeanYves
    </p>

Maybe you are looking for