Form hangs while calling Report

Hi, I am converting some Forms/reports from 6i to 10g.
The form I am testing is calling a report repeatedly using the following code:
rep_id := Find_Report_Object('FILE_RECORD_DESCRIPTION');
<<open_files>>
OPEN files;
<<get_next_file>>
FETCH files INTO file_name;
IF files%NOTFOUND
     THEN
     CLOSE files;
     RETURN;
END IF;
:FILE_RECORD_DESC_STATUS := 'Doing file' || file_name;
SYNCHRONIZE;
IF :TYPE = 'PDF'
     THEN
     SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESNAME,'C:\DOC\PDF\' || file_name || '.pdf');
     SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_OTHER, 'P05_FILES="' || file_name || '"');
END IF;
IF :TYPE = 'HTML'
     THEN
     SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESNAME,'C:\DOC\' || file_name || '.htm');
     SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESFORMAT,'HTML');
SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_OTHER, 'P05_FILES="' || file_name || '"');
END IF;
report := Run_Report_Object(rep_id);
GOTO get_next_file;
When REPORT_DESFORMAT is set to ‘HTML’, everything works well. Around 40 .htm documents are created on C:\DOC. But when REPORT_DESFORMAT is set to ‘PDF’ the form hang after creating 10 or 11 .pdf documents!!!
Any idea what I am doing wrong? Do I have to free up some sort of buffer/memory/other things when creating .pdf document?
Regards
Yves

I tried different things and it seams that the amount of data (i.e the size of the .pdf) determine how many times the report can be called before the form hangs. Form did hang after only 2 call for big report (around 20 pages each) but hangs after several calls for smaller ones???
Yves

Similar Messages

  • Parameter form display while calling reports from form

    Dear All,
    I am running reports from form using run_report_object. I do not want to see parameter form while running the report. How do I do that.
    Thanks in Advance
    Gaurav Shah

    Hi, try to set paramform=NO in your parameter list
    Daniel

  • 500 Internal Server Error while calling Reports 10g

    I am using standalone forms and report services. I am getting intermittently 500 Internal Server Error while calling Reports 10g.

    500 Internal error is a generic error and it could be due to multiple reasons like misconfiguration or the dearth of the resources.

  • Progress bar while calling reports from Forms

    I have got a form (FORMS 6i) which calls a report (Reports 6i). This call results in the invocation
    of a reports engine which might take time (may be more than a minute) in bringing up the desired report. Is there any way i can show a progress bar to the user (like in any Windows application) that the report is getting generated? Because the user is currently confused on whether the report is really generated or not while waiting for the report.
    Thanks in advance
    PRS

    I have got a form (FORMS 6i) which calls a report (Reports 6i). This call results in the invocation
    of a reports engine which might take time (may be more than a minute) in bringing up the desired report. Is there any way i can show a progress bar to the user (like in any Windows application) that the report is getting generated? Because the user is currently confused on whether the report is really generated or not while waiting for the report.
    Thanks in advance
    PRS

  • Hangs when calling report to be displayed in PDF format

    I am calling reports from a form using RUN_PRODUCT to be displayed in PDF format. Initially, there is no problem generating and displaying reports, but inevitably at some point when a report is run it just hangs. Rebooting the server temporarily fixes problem. Any ideas on what is happening?
    Using Forms & Reports Server 6i on Windows NT 4.0

    It seems that the key to the solution is to shrink the margins.....
    Greetings,
    Sim

  • About forms 10g for calling report

    Dear Sir ,
    I have create a procedure to call reports . i have given 2 parameters , 1 parameter is date another parameter is a 'where condition'. but i run the form it will not call the report because
    space is not allow in where condition , but you know if i replace the space by _ then it would not be meaning full , please suggest me.
    procedure
    --==========
    PROCEDURE run_report(mperiod char,pmwhere char)
    IS
    repid report_object;
    v_rep VARCHAR2 (100);
    rep_stat VARCHAR2 (40);
    compname VARCHAR2(100):='Alltex Industries Ltd.';
    CADDR VARCHAR2(100):='Ariabo, Rupgonj, Narayanganj';
    v_compname VARCHAR2 (100);
    v_CADDR VARCHAR2 (100);
    V_pmwhere VARCHAR2(100);
    BEGIN
    SELECT REPLACE (compname, ' ', '_')
    INTO v_compname
    FROM DUAL;
    SELECT REPLACE (CADDR, ' ', '_')
    INTO v_CADDR
    FROM DUAL;
    repid := FIND_REPORT_OBJECT ('ATTENDANCE_INOUTTIME_IKEA_C');
    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, 'pdf');
    SET_REPORT_OBJECT_PROPERTY (repid, report_server, 'rep_server');
    -- SET_REPORT_OBJECT_PROPERTY (repid, report_server, 'rep_apps1_asbiforms');
    SET_REPORT_OBJECT_PROPERTY (repid,
    report_other,
    ' MPERIOD='
    || mperiod
    ||' CADDR='
    || V_CADDR
    || ' PMWHERE='
    || pmwhere
    -- ||
    ||' paramform=yes'
    v_rep := RUN_REPORT_OBJECT (repid); ----- Check status
    rep_stat := REPORT_OBJECT_STATUS (v_rep);
    WHILE rep_stat <> 'FINISHED'
    LOOP
    rep_stat := REPORT_OBJECT_STATUS (v_rep);
    END LOOP;
    --- end Check status
    -- WEB.SHOW_DOCUMENT('http://apps1.sfdw.org:7779/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_apps1_asbiforms','_blank');
    web.show_document ( 'http://localhost:8889/reports/rwservlet/getjobid'
    || SUBSTR (v_rep, INSTR (v_rep, '_', -1) + 1)
    || '?'
    || 'server=rep_server',
    '_blank'
    END;

    solve by own.

  • Netscape 7 replaces form window when calling reports

    Netscape 7.0, unlike Netscape 4.7 does not handle forms application that calls on Reports to display Report preview in PDF.
    When our forms call reports to display a report to the user in the browser, the window on which the form screen is presented is replaced by the window which brings up adobe reader to display the report.
    IE 5.5, Netscape 4.7 work fine.
    Is there a configuration which must be set in Netscape or in the forms code to direct the browser to open a separate window to receive reports output?

    Lawrence,
    try calling it
    web.show_document('<URL'>,_blank);
    This should do it. In Forms9i this built-in is able to call out to javascript, giving you even more control over the window you use it in.
    Frank

  • A particular form hangs while saving in Oracle Apps 11.5.10.2

    Hi Friends,
    I am using Oracle Apps 11.5.10.2 on Linux.
    In a custom Responsibilty ,In a particular form after entering the valuses when i give confirm button the application forms hangs for a long time without saving the values.
    Please let me know the Fix.
    Regards,
    Arun

    Hi,
    Was this working before? If yes, any changes have been done recently?
    Can you find any errors in the Jinitiator Console Window, application log files, and the database log files?
    Please verify that you have no invalid objects in the database. Also, try to generate the form via adadmin and see if this helps.
    In none of the above helps, please obtain FRD file, and see if more details about the error are reported in the log then -- See (Note: 150168.1 - Obtaining Forms Runtime Diagnostics (FRD) In Oracle Applications 11i) for details.
    Regards,
    Hussein

  • Window form hang while looping

    I created a window form, while doing a while loop, the window hang while processing. It will revert back to normal state after it finished processing. How do I prevent my windowm form to hang while processing??? Also I do not understand why it will hang while doing a while loop???

    Hello everybody, would you mind if you telling how to design tool menu as MAC OSx.

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

  • Crystal Report XI R2 cause IIS to hang while calling ReportDocument.Close()

    Dear Concern,
    We are using Visual Studio 2008 (.Net framework 3.5) to develop ERP Web portal for our company. Crystal Report XI R2 has been used here for generating customized report.
    I have written a CrystalReport utility to do all type of logon, parameter pass stuffs with the report. The utility itself implements IDisposable and following is my code at the Dispose method:
    public override void Dispose()
    _crReportDocument.Close();
    _crReportDocument.Dispose();
    But when my code reaches _crReportDocument.Close() then the IIS/ W3C hangs. I have waited for long time to the process to be finished but it never.
    I also tried to move the code from my utility and directly close the report object from caller form but failed.
    Can anyone please give me any suggestions regarding this issue? Is there anything wrong with this?
    N.B. I have succeeded with Crystal Report X by using the same procedure.
    Thank You.

    Dear Adam,
    Thanks.
    The problem resolved after I have installed CR XI R2 Service Pack 4. Crystal Report 2008 of course is a better solution but I have to wait a bit for procurement.
    Warm Regards,
    Sultan

  • Rep-3002 while calling report from form in character mode on web environment

    When I call a report by using run_product from a form , i get rep-3002. my report is in character mode. if i change it to bitmap that works fine. but my requirement is of character mode on web environment.
    please help.

    Hello,
    If you are running in WinNT/2000 environment, the NT/2000 user which runs the Report Server service must have a printer defined. In the control panel, look at the properties for the Report Server to see what user it runs as. Log in as that user and make sure a default printer is defined.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • 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

  • FRM-41214 while calling Report from Forms DS9i

    Hi !
    I am getting FRM-41214 'Unable to run Report' when i run a report using Run_report_object in Developer Suite 9i. I have checked the Report server which is up and running. Any suggestion for troubleshooting.
    Take care
    Imran

    This is Note:260451.1, you can try it:
    Newly created Key in cgicmd.dat file returns the following error when called with rwservlet:
    REP-50003: Bad command line
    Changes
    New key created in cgicmd.dat file.
    Cause
    Used tabs to add space after ":" and before first parameter.
    Fix
    1. Edit the cgicmd.dat file.
    2. Remove the tab after ":" and before first parameter.
    3. Use spaces to separate ":" from first parameter.
    Note: Remember that multiple keys in this file MUST be separated by an EXTRA empty line.
    This is documented in cgicmd.dat sample as rule 1.

  • Berkeley  DB JE is getting hanged while calling environment sync method.

    Hi,
    I am developing an application in Java and I am using JE edition of Berkeley. I am facing an issue, during shutdown operation I am calling syn method of EntityStore class and Environment class.
    The EntityStore.sync() is getting completed but during executing of Environment.sync() the control is not coming out of this statement. Below is the code that I am using to perform sync operation.
    if (myEnv != null) {
    try {
    entityStore.sync(); //Calling sync method of Entity Store Class.
    log.error("Finished Syncing of Entity Store");
    myEnv.sync(); // Calling Sync method of Environment Class. Control is not coming out of this sync call.
    log.error("Finished Syncing of Environment");
    } catch (DatabaseException dbe) {
    log.error("DataBase exception duing close operation ",dbe);
    } catch (IllegalStateException ie) {
    logger.fatal("Cursor not closed: ", ie);
    During my unit testing I was changing system date and perfoming some db operation. While I during down the application the the above code gets executed but the system is getting hanged and control is not coming out of Environment sync method call. Can some one tell why the sync is causing the system to hang.
    Thanks in advance.

    Hello,
    You did not mention the version of BDB JE. In any case for BDB JE questions the correct forum is at:
    Berkeley DB Java Edition
    Thanks,
    Sandra

Maybe you are looking for

  • How to pass the data from web dynpro to workflow.

    hi gurus, how to pass the data from web dynpro to workflow. Regards vijay

  • Os x 10.10 display settings not remembered

    New Mac Pro 12-core running 10.10.2, main monitor is LG UM95 connected via thunderbolt, also a Panasonic TV connected via HDMI to the HDMI port. At every restart, the display settings revert to "mirrored" mode. How do I fix this?

  • What are nested Internal tables

    Hi Guru's, I am new to ABAP ...just trying to learn things.Can you please explain me what are nested internal tables and what is the purpose of nested internal table?where can it be used and why a header line is not written in a Nested Internal table

  • Some problems with zen visio

    Hi. i had selected a picture for my vision's wallpaper bt i notice then when u navigate thru the menu, the words(as in the from the next page) will slide from left of the screen to the centre right? But my wallpaper seems to slide together with the w

  • How do I open:  Photoshop_12_1_LS1.dmg.adadow

    Hi, I have just downloaded the 1 gig trail version and I ended up with this file only- Photoshop_12_1_LS1.dmg.adadow can anyone tell me how I can actually open it and make it load photoshop? Thanks