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);

Similar Messages

  • 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

  • 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

  • Getting error while calling reports through form

    Hi I want to call a report from a form i put the following code on when-button-pressed but i am getting the following error.I can generate and run the reports.The object REPORTS is created under forms report object
    FRM-41211: Integration error: SSL Failure running another report
    DECLARE
    repid REPORT_OBJECT;
    report_prop VARCHAR2(20);
    v_rep VARCHAR2(100);
    BEGIN
    repid := find_report_object('REPORTS');
    set_report_object_property(repid,report_other,'p1=15 p2=19 paramform=yes');
    v_rep := RUN_REPORT_OBJECT(repid);
    END;
    rgds
    shyam

    Hi
    I can able to run the reports from the browser there was a syntax error, but not able to call from a form
    I am getting error but i can run another forms without any problem
    FRM-92101: There Was a failure in the FormsServer during startup
    oracle.forms.net.connectionexception:forms session aborted:unable to communicate with the runtime process
    rgds
    rosh

  • Error while caling report through form

    Hi,
    could someone help with my reports. I am using report 2.5 (old version)
    I have created a form that calls my report
    Plese find below command that I execute in my pushbutton
    DECLARE
    pl_id ParamList;
    BEGIN
    pl_id := Get_Parameter_List('tempdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List(pl_id);
    END IF;
    Add_Parameter(pl_id, 'MAXIMIZE', 'TEXT_PARAMETER', 'YES');
    Run_Product(REPORTS,'d:\cadv\Reports\D_Boking.RDF', SYNCHRONOUS,
    RUNTIME, FILESYSTEM,PL_ID,NULL);
    end;
    I get an error FRM-40735 When Button Pressed trigger raised unhandled exception ORA-06502
    If I remove add_parameter from my script it works fine.
    Basicaly I want to maximize my report when it is called from form
    thanks
    saaz

    Hi again!
    declare
    pl_id ParamList := Get_Parameter_List( 'tempdata' );
    begin
    IF
      NOT Id_Null( pl_id )
    THEN
      Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := create_parameter_list ( 'tempdata' );
    Add_Parameter( pl_id, 'MAXIMIZE', TEXT_PARAMETER, 'YES' );
    Run_Product( REPORTS,'d:\cadv\Reports\D_Boking.RDF', SYNCHRONOUS, RUNTIME, FILESYSTEM, PL_ID, NULL );
    end;Regards

  • 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

  • Timeout error while running Report

    Hi
    All,
    Windows 2000
    Oracle Report builder 10g
    Oracle developer suite 10g
    when I had OLD computer i was able to run report more than 10 minutes. Now, I got NEW computer and i am getting TIMEOUT error while running report more than 10 minutes.
    Any clue?
    Thanks,
    Vishal

    As Fs says it depends on how you're running the report.
    If you're running via a server then you need to make the change on that server or amend the URL you are using to run the report to add the enginereponsetimeout parameter.
    You can amend this parameter on the server either by using the Application Server Control as I described in my last post or by directly editing the config file. This file will be called <reportservername>.conf and can be found in the oracle_home/reports/conf directory.
    In this file look for the engine tag and see if the engineResponseTimeOut property is set.
    E.g:
    <engine id="rwEng" class="oracle.reports.engine.EngineImpl" initEngine="1" maxEngine="4" minEngine="1" engLife="50" maxIdle="20" callbackTimeOut="90000" engineResponseTimeOut="5">
    </engine>
    This value is in minutes so increase to a time larger than that it takes to run the report.
    If instead you're running the report via Report Builder on your own PC then look for a file called rwbuilder.conf in the same location on your PC and make the same change as described above.
    If this property isn't in the file then the engine isn't supposed to time out at all so the problem may well be something different. But to discount it try setting to a large value like 30.

  • Getting Error while running Report on Enterprise Report console

    Hi all,
    I am using Report builder 6i, I have developed one report and configued it on Enterprise Reporting tool but when tried to run it through Enterprise Reporting Console I got the following error
    REP-0177: Error while running in remote serverREP-0736: There exist uncompiled program unit(s).REP-1247: Report contains uncompiled PL/SQL. FAIL 1
    although the report is running fine through the report builder.
    any thoughts?
    Thanks in advance
    Manvar
    Message was edited by:
    [email protected]

    Hello,
    Do you reproduce the error if you implment the example provided in the document :
    Oracle Application Server 10G -Integrating Oracle Reports in Oracle Forms Services applications:
    http://www.oracle.com/wocportal/page/wocprod/ver-31/ocom/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
    Regards

  • 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..

    Hi, We use 9iAS on linux and while running one report , we get this error:
    REP-0177: Error while running in remote server
    REP-300: date format is too long for internal buffer
    (sign(decode( ==> trunc(imp.tnr_matu_date),
    When i run the same report on my system (WINDOWS) it runs fine..Even on my dev UNIX box , it runs without any problem..Could somebody help me out?Thanks..

    Hi
    Check that eul user discoverer user has the select right to the data table(s).
    Ott Karesz
    http://www.trendo-kft.hu

  • Dataset can not be open error while running report rtcctool

    Hello Experts,
    While running report rtcctool we are gettin following dumps the says
    ABAP runtime errors    DATASET_CANT_OPEN
           Occurred on     05/27/2011 at 10:00:52
    Unable to open file "/usr/sap/B**/DVEBMGS00/sec/SAP_AGS_OLCNT_VERIFY.pse".
    I am aware that the eror is happening because of this file but not sure from where to get this file. Please let me know any of you aware about this.
    Regards
    Yogesh

    Hi all.
    I have the same problem and explore all possible solutions found in this discussion and others without satisfactory result.
    Everything points that may be an inconsistency error external certificate which is in the DB. Anyone know how to fix this.
    Greetings.

  • Getting Error While Running Report.

    I have Developersuite 10g installed in my pc. While I'm running a report from
    form, by issuing RUN_REPORT_OBJECT command I'm getting following Error :
    FRM-41211 : Integration error: SSL failure running another product.
    Please guide some one how to solve this problem.
    So please guide me how to call report from form.
    Thanx.

    Hello,
    Do you reproduce the error if you implment the example provided in the document :
    Oracle Application Server 10G -Integrating Oracle Reports in Oracle Forms Services applications:
    http://www.oracle.com/wocportal/page/wocprod/ver-31/ocom/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
    Regards

  • ERROR WHILE SENDING REPORT THROUGH EMAIL .....

    DEAR ALL
    i have one problem . i am trying to send my report through e-mail.i am working with forms 5.0 and report 3.0 . i am calling report from form.when a client click on the button a report will be generated and this will be send to a specific person in a specific format either in html or pdf.
    but when i click on button it initialize the report and gives the error
    rep-4201 : error occured while initialize the mail subsystem.
    rep-4220 : there is a problem with the mail subsystem.
    if anyone of u have the solution for this please send to me.it will be very much helpfull if you send me the code.
    thanks in adv.
    D prasad.
    null

    well you will have to configure a default mail client on your machine. you can do this by going to control panel->mail in windows os.
    you might also need a .dll file mapi*.dll something. you will need this .dll file in your client machine.
    best of luck

  • REP-300 Error while running report using App Server

    Hi,
    I am currently trying to run a report using the Application Server.
    This report is being called from a form.
    I am able to connect to the report server and all configurations seems to be correct.
    But when I execute the report from the form, I am getting error "Unable to run report"
    When I look at the error message in the Report Server queue, I find
    "REP-300 Table or View does not exist.."
    But that table does exist in the database.
    What could be be the problem ?
    Please help.
    The code in the form that calls the report is
    report_id := FIND_REPORT_OBJECT( report_name );
    vc_user_name:=get_application_property(username);
    vc_user_password:=get_application_property(password);
    vc_user_connect:=get_application_property(connect_string);
    vc_connect:=vc_user_name||'/'||vc_user_password||'@'||vc_user_connect;
    SET_REPORT_OBJECT_PROPERTY(report_id ,REPORT_OTHER, 'paramform=yes     p_user_connect='||vc_connect ||' p_servername=repsrv'||' p_action=<host>/reports/rwservlet?' );
    v_rep := RUN_REPORT_OBJECT(report_id, parmlist_id);

    The report is working perfectly fine when I run it from the Report Builder. I get the correct output.
    I am getting this error when I try to run the report through a Report server.
    I run the form from the Forms 10g builder. This form has a button "Run Report". When I click on the button the report is run using the Report server.
    This is when I get the error.
    There are other forms that are also called via the same form. Those work fine. The only difference between those forms and this one is that this one has user parameters passed to it. This one also has an attached library attached to it.
    The code in the Form to call the report is
    report_id := FIND_REPORT_OBJECT( report_name );
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESTYPE, FILE);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESFORMAT, 'pdf');
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_SERVER, 'rep-vena01-xp');
    v_rep      := RUN_REPORT_OBJECT(report_id, parmlist_id );
    v_jobid := substr( v_rep, length( v_reportserver) + 2, length(v_rep) );
    v_repstatus := REPORT_OBJECT_STATUS( v_rep );
    IF ( v_repstatus = 'FINISHED' ) THEN
    v_url := '/reports/rwservlet/getjobid' || v_jobid || '?server=' || v_reportserver ;
    web.show_document( v_url, '_BLANK' );
    END IF;

  • DB error while running reports in InfoView

    Hi,
    we are trying to create a report in infoview.
    however we are facing following error while trying to create new webintelligence document or running existing report:
    A database error occured. The database error text is: (CS) "DBDriver failed to load : /bobje/bobje/enterprise120/linux_x86/dataAccess/RDBMS/connectionServer/libdbd_oci9.so (libclntsh.so.11.1: wrong ELF class: ELFCLASS64)" . (WIS 10901)
    We are using BO XI 3.1 SP2, Oracle 11g server on Linux.  Both oracle and bo server are on same machine.
    thanks in advance.

    Looks to me that you are using the 64bit oracle driver. Make sure to set your LD_LIBRARY_PATH variable (for th euser running the BO services) to point first to the directory with the 32bit libraries of the Oracle driver.
    Regards,
    Stratos

Maybe you are looking for

  • Is there a way to make the clock show when the phone is plugged into the charger, rather than have the screen go blank?

    Hey guys, I just finally got my first smart phone (I know), an iPhone 4S. I was wondering if there was a way to make it so when the phone is plugged in, the screen stays on but is dimly lit or something, just so I can see the clock without having to

  • Using an external numberpad with L10

    How can this be done without using the FN+F10 key. The Tecra a2 has a setting in the Toshiba hardware to enable an external keyboard how come this model doesnt?

  • Can I point a domain name at my web.mac account?

    Hi there, first time poster. I was just wondering if there was a way for one to point a domain name to a site that I've built on iweb? And if it is possible, how to find out the information that I would need to point the domain name the web.mac accou

  • Creating web shortcuts for Chromium to the desktop

    Hello, I am having some trouble with chrome. I am running arch obviously with xfce4 as my GUI. I have chrome installed and have my chrome icon on my desktop. If i double click it, it works just as expected. What I am now trying to do, is to create sh

  • Portal - Session Storage API package

    I'm trying to find the session api package (wwsto_api_session) which is documented in the Oracle PDK for Portal 3.0 This package isn't listed among the plsql owned by the portal30 user in our installation. Has anyone found the package, or is there a