REP-52007

Hi
When i try to call the reports with PARAMFORM=YES option in url, it's displaying the parameter screen, but after filling the parameters values if you submit the query it gives an error "REP-52007 Parameter form format error"
Thanks in Advance
Ranganath

Hi Ranganath,
INPUT type=hidden Elements are used to transmit state information about client/server interaction. If the value of these hidden parameters are null when you submit your paramforms, you will get error REP-52007.
This error used to get displayed under some circumstances (the argument paramforms was case-sensitive), but this bug was fixed in Reports 9.0.2.1. Pl make sure that you have the latest Reports patch set installed. The latest patch set no 2842923 is available at http://metalink.oracle.com
Navneet.

Similar Messages

  • REP-52007 with parameter form

    Hi,
    I've been trying to run parameter forms for 2 days now, and i'm getting desperate.
    For the moment, I can see the parameter form (not like it shows in Report Builder though...)
    When I give my two parameters (it are dates) into the parameter fuild, and i try to execute the query, following error shows :
    REP-52007: Opmaakfout parameterformulier
    java.lang.IllegalStateException: Writer already retrieved     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindHttpServletResponse.getOutputStream(EvermindHttpServletResponse.java:969)     at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:136)     at oracle.reports.rwclient.RWWriter.getOutputStream(RWWriter.java:263)     at oracle.reports.rwclient.RWReportRunner.sendFile(RWReportRunner.java:355)     at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:161)     at oracle.reports.rwclient.ServletCmdMgr.handleCmdGetjob(ServletCmdMgr.java:1343)     at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:92)     at oracle.reports.rwclient.ServletCmdMgr.handleWebCommand(ServletCmdMgr.java:295)     at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:958)     at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1442)     at oracle.reports.rwclient.RWClient.doPost(RWClient.java:504)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     at java.lang.Thread.run(Thread.java:534)
    My OC4J is running, and also the reportserver is active.
    I'm using forms 10g and forms builder 10g.
    This is my code to make the report show :
    PROCEDURE SHOW_REPORT
    (type VARCHAR2, rep_obj VARCHAR2)
    IS
    rep_id REPORT_OBJECT;
    rep_status VARCHAR2(100);
    rep_svr VARCHAR2(21) := 'birserver';
    rep_format VARCHAR2(20) := 'HTMLCSS';
    rep_locatie VARCHAR2(100) := 'C:\PISAD\TEMP\';
    reportserverjob VARCHAR2(100);
    rep_job_id VARCHAR2(100);
    BEGIN
    IF type = 'PDF' THEN
         rep_format := 'PDF';
    ELSIF type = 'XLS' THEN
         rep_format := 'SPREADSHEET';
    ELSIF type = 'HTML' THEN
         rep_format := 'HTMLCSS';
    END IF;
    rep_id := find_report_object(rep_obj);
    set_report_object_property(rep_id, report_comm_mode, synchronous);
    set_report_object_property(rep_id, report_server, rep_svr);
    set_report_object_property(rep_id, report_desname, rep_locatie || rep_obj || '.' || type);
    set_report_object_property(rep_id, report_desformat, rep_format);
    set_report_object_property(rep_id, report_destype, FILE);
         SET_REPORT_OBJECT_PROPERTY(rep_id,REPORT_OTHER,'paramform=yes');
    reportserverjob := run_report_object(rep_id);
    rep_job_id := substr(reportserverjob,length(rep_svr) + 2);
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'|| rep_job_id ||'?server='||rep_svr,'_blank');
    The report destination type is preview, execution mode is runtime, communication mode is synchronous
    I really hope someone can help :(
    thanks alot!

    Your code seems to be implementing metalink note 139546.1 - Using Reports parameter forms with RUN_REPORT_OBJECT on the web.
    For what I can see, the P_ACTION parameter should end in ?...
    i.e.
    P_ACTION=http://<hostname.domain:port>/reports/rwservlet?'
    set_report_object_property (
    repid,
    report_other,
    'paramform=yes P_USER_CONNECT='
    || vc_connect
    || ' P_SERVERNAME='
    || v_reportserv
    || ' P_ACTION='
    || v_report_url
    || '/reports/rwservlet?'
    );If this does not fix your problem, then to troubleshoot further you would have to post the code in your Before Parameter Form trigger of your report.
    Hope this helps,
    UPDATE:
    If the above does not fix your problem, my guess is that report name is not being generated in the hidden runtime values build by the code in the Before Parameter Form trigger.
    i.e.
    http://localhost:8889/reports/rwservlet?report=&destype=cache&desformat=PDF
    The above code will throw error REP-52005: The specified key report does not exist in key map file.
    Edited by: Rodolfo Ferrari on Jul 8, 2009 9:43 PM

  • 10g Report after Parameter form REP-52007??

    I have been struggling for years to display report with parameter form = yes, Report with parameter form=no works perfectly. Report with paramform=yes shows parameter but pressing submit query gives
    REP-52007 Parameter form format error
    My enviornment is:
    Windows 2003 Forms and Report Secrvices 10.0.xx
    i found some where before parameter form code can any one has such type of workaround with details
    Please help......
    Edited by: Zahid Rahim on Mar 18, 2010 2:33 PM

    Thanx Denis...
    This is the source of my parameter form.
    <html>
    <head>
    <base href="http://vpn.iwm.com/reports/rwservlet/getfile/HW/YX+JlF07hIshsw7rSixK7d1yytLr6mhU=/28482206.htm">
    </head></html>
    <html>
    <body dir="LTR" bgcolor="#ffffff">
    <form method=post action="&report=D:\OracleApps\sales\reports\Order_Booking_Saleman.rdf&destype=CACHE&desformat=pdf&userid=WH/WH@oracle-server&">
    *<input name="hidden_run_parameters" type=hidden value="">*
    <center>
    <p><table border=0 cellspacing=0 cellpadding=0>
    <tr>
    <td><input type=submit></td>
    <td width=15>
    <td><input type=reset></td>
    </tr>
    </table>
    <p><hr><p>
    <!-- Created by Oracle Reports 10:24 Mon Mar 22 , 2010 -->
    <table border=0 cellspacing=0 cellpadding=0 width=357>
    <tr><td width=29></td><td width=25></td><td width=1></td><td width=2></td><td width=1></td><td width=55></td><td width=76></td><td width=1></td><td width=1></td><td width=1></td><td width=21></td><td width=113></td><td width=2></td><td width=27></td><td width=2></td></tr>
    <tr><td colspan=15 height=38></td></tr>
    <tr valign=top>
    <td height=9></td>
    <td width=326 colspan=13 rowspan=5 align=center><font size=6 face="Arial" color="#ffffff"><b>ORDERS</b></font></td>
    <td></td>
    </tr>
    <tr valign=top>
    <td height=9></td>
    <td></td>
    </tr>
    <tr valign=top>
    <td height=9></td>
    <td></td>
    </tr>
    <tr valign=top>
    <td height=9></td>
    <td></td>
    </tr>
    <tr valign=top>
    <td height=9></td>
    <td></td>
    </tr>
    <tr><td colspan=15 height=38></td></tr>
    <tr valign=top>
    <td height=9 colspan=4></td>
    <td width=269 colspan=8 rowspan=3 align=center><font size=4 face="Arial" color="#ffffff"><b>Booking Date</b></font></td>
    <td colspan=3></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=4></td>
    <td colspan=3></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=4></td>
    <td colspan=3></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=4></td>
    <td width=134 colspan=5 rowspan=2 align=center><font size=2 face="Arial"><b>FROM</b></font></td>
    <td></td>
    <td width=134 colspan=2 rowspan=2 align=center><font size=2 face="Arial"><b>TO</b></font></td>
    <td colspan=3></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=4></td>
    <td></td>
    <td colspan=3></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td colspan=4 rowspan=3><INPUT type=TEXT name="pbdatefrom" size=19 maxlength=13 value="15022006"> <BR><font face="Arial,Helvetica" size="-2"> (19120007) </font><P></td>
    <td></td>
    <td colspan=5 rowspan=3><INPUT type=TEXT name="pbdateto" size=19 maxlength=13 > <BR><font face="Arial,Helvetica" size="-2"> (22032010) </font><P></td>
    <td colspan=2></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td></td>
    <td colspan=2></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td></td>
    <td colspan=2></td>
    </tr>
    <tr><td colspan=15 height=9></td></tr>
    <tr valign=top>
    <td height=9 colspan=5></td>
    <td width=55 rowspan=2 align=right><font size=2 face="Arial"><b>Sale Point</b></font></td>
    <td colspan=9></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=5></td>
    <td colspan=9></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td colspan=8 rowspan=2><SELECT name="pspname" size=1 > <OPTION selected value="ALL SALE POINTS"> ALL SALE POINTS <OPTION value="FACTORY"> FACTORY <OPTION value="GARDEN TOWN"> GARDEN TOWN <OPTION value="GULBERG"> GULBERG <OPTION value="ISLAMABAD"> ISLAMABAD <OPTION value="KARACHI"> KARACHI </SELECT></td>
    <td colspan=4></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td colspan=4></td>
    </tr>
    <tr><td colspan=15 height=9></td></tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td colspan=8 rowspan=3><SELECT name="PSRID" size=1 > <OPTION value="1"> 1 - SOHAIL ASLAM <OPTION value="2"> 2 - AKHTAR RIAZ <OPTION value="3"> 3 - SHAHID KHAN <OPTION value="4"> 4 - IBRAHIM MIAN <OPTION value="5"> 5 - ZULFIQAR KHAN <OPTION value="6"> 6 - AZHAR HUSSAIN <OPTION value="7"> 7 - ABDUL MUSTAFA <OPTION value="8"> 8 - SYED WAQAR ABBAS <OPTION value="12"> 12 - REHAN <OPTION value="13"> 13 - FARHAN <OPTION value="14"> 14 - SHAHINA AZIZ <OPTION value="15"> 15 - OMAR FAROOQ <OPTION value="16"> 16 - MUDASSAR ABBAS <OPTION value="17"> 17 - AMJAD ALI RAZI <OPTION value="18"> 18 - MIAN IBRAHIM <OPTION value="19"> 19 - KHURRAM SUMEER <OPTION value="20"> 20 - TAYYAB <OPTION value="21"> 21 - COMMON AT FACTORY <OPTION value="22"> 22 - COMMON AT GULBERG <OPTION value="23"> 23 - COMMON AT GARDENTOWN <OPTION value="24"> 24 - COMMON AT KARACHI <OPTION value="25"> 25 - ADEEL AHMED <OPTION value="26"> 26 - N. A. ABDULLAH <OPTION value="27"> 27 - AZIZ AHMED <OPTION value="28"> 28 - BATOOL FATIMA <OPTION value="29"> 29 - QURATUL AIN AZIZ <OPTION value="30"> 30 - SHAKIR KHAN <OPTION value="31"> 31 - SHAFAQ AROOJ <OPTION value="32"> 32 - NIHAL BAIG <OPTION value="33"> 33 - ALI ASGHAR <OPTION value="35"> 35 - MADIHA JALAL <OPTION value="34"> 34 - ALI FAROOQ <OPTION value="37"> 37 - MALIHA OMER <OPTION value="36"> 36 - KIPTIA <OPTION value="38"> 38 - SHAHZAD <OPTION value="39"> 39 - FAHAD <OPTION value="40"> 40 - FAKHAR SHAHZAD <OPTION value="41"> 41 - ZUBAIR IQBAL <OPTION value="42"> 42 - MUHAMMAD ABBAS <OPTION value="43"> 43 - ABDUL RAHEEM <OPTION value="44"> 44 - ALI RAZA <OPTION value="45"> 45 - MUHAMMAD SABIH <OPTION value="46"> 46 - NAGIEB AHMED <OPTION value="47"> 47 - RAJA TAHIR IRSHAD <OPTION value="48"> 48 - MOAZZAM KHAN <OPTION value="49"> 49 - HAJRA FAREED <OPTION value="50"> 50 - FAHIMUDDIN <OPTION value="51"> 51 - FARKHANDA <OPTION value="52"> 52 - JAWWAD MUNIR <OPTION value="53"> 53 - ARSALAN RIAZ <OPTION value="54"> 54 - HASEEB FAROOQ <OPTION value="55"> 55 - MISBAH GUL AWAN <OPTION value="57"> 57 - YASIR ILYAS <OPTION value="56"> 56 - FIRDOUS IQBAL <OPTION value="59"> 59 - TAHIR MEHMOOD <OPTION value="60"> 60 - ADIL HUSSAIN <OPTION value="61"> 61 - WASEEM AHMED RAJA <OPTION value="62"> 62 - SHAKEEL AHMED <OPTION value="63"> 63 - ABDUL MALIK M. OWAIS <OPTION value="64"> 64 - MIAN ZAHID IQBAL <OPTION value="65"> 65 - AHSAN MUSTAFA <OPTION value="66"> 66 - IRFAN ALI AWAN <OPTION value="70"> 70 - MEHMOOD <OPTION value="71"> 71 - SAJID <OPTION value="73"> 73 - AFZAL <OPTION value="75"> 75 - EHSAN ULLAH BAJWA <OPTION value="76"> 76 - SALE 3 <OPTION value="77"> 77 - SALE 4 <OPTION value="78"> 78 - SALE 5 <OPTION value="79"> 79 - SALE 6 <OPTION value="80"> 80 - SALE 7 <OPTION value="81"> 81 - BILAL <OPTION value="82"> 82 - ALI ASGHAR <OPTION value="83"> 83 - RAJA BILAL KHALID <OPTION value="84"> 84 - M. Irfan Ali <OPTION value="85"> 85 - SALE 5 <OPTION value="86"> 86 - SALE 6 <OPTION value="87"> 87 - SALE 7 <OPTION value="88"> 88 - LATIF A. MALIK <OPTION value="89"> 89 - LATIF A. MALIK <OPTION value="91"> 91 - MAZHAR ALI <OPTION value="93"> 93 - NAEEM AHMAD <OPTION value="94"> 94 - SADIQ NAZIR <OPTION value="95"> 95 - MARIYUM SHEIKH <OPTION value="96"> 96 - ALLAH DITTA <OPTION value="97"> 97 - GHOUS BUX <OPTION value="98"> 98 - MUHAMMAD ZAHID <OPTION value="99"> 99 - sales-3-99 <OPTION value="100"> 100 - FAIZA SIDDIQ <OPTION value="101"> 101 - MUHAMMAD JAVAID <OPTION value="102"> 102 - SAQIB BAIG <OPTION value="103"> 103 - MUSTAFA TAJ <OPTION value="104"> 104 - RASHID IQBAL <OPTION value="105"> 105 - GHULAM SHABBIR <OPTION value="106"> 106 - SAMIULLAH <OPTION value="107"> 107 - BEENISH ATTIQ <OPTION value="108"> 108 - MUHAMMAD UMAIR <OPTION value="109"> 109 - SABIHA FATIMA <OPTION value="110"> 110 - DANISH AHMAD <OPTION value="111"> 111 - TANIA NASIR <OPTION value="112"> 112 - NASIR JAFFERY <OPTION value="113"> 113 - RAMISH FATIMA <OPTION value="114"> 114 - MUHAMMAD SABIR <OPTION value="115"> 115 - MAJID IMRAN <OPTION value="116"> 116 - SHAHID AZIZ <OPTION value="117"> 117 - ADNAN ZULFIQAR <OPTION value="118"> 118 - NADIA YAQOOB <OPTION value="119"> 119 - ASIM QAMAR <OPTION value="120"> 120 - ASHFAQ ALAM <OPTION value="143"> 143 - Nadra Anjum <OPTION value="123"> 123 - ASIF ALI <OPTION value="124"> 124 - OMAR FAROOQ <OPTION value="125"> 125 - ADEEL MUNIR <OPTION value="126"> 126 - sales-1-126 <OPTION value="127"> 127 - sales-1-127 <OPTION value="128"> 128 - sales-1-128 <OPTION value="129"> 129 - sales-1-129 <OPTION value="130"> 130 - sales-1-130 <OPTION value="131"> 131 - sales-1-131 <OPTION value="132"> 132 - sales-1-132 <OPTION value="133"> 133 - sales-1-133 <OPTION value="134"> 134 - sales-1-134 <OPTION value="135"> 135 - sales-1-135 <OPTION value="136"> 136 - sales-1-136 <OPTION value="137"> 137 - sales-1-137 <OPTION value="138"> 138 - sales-1-138 <OPTION value="139"> 139 - sales-1-139 <OPTION value="140"> 140 - sales-1-140 <OPTION value="141"> 141 - sales-1-141 <OPTION value="142"> 142 - IRAM <OPTION value="144"> 144 - Iram Shahzadi <OPTION value="145"> 145 - Rubina Jaffar <OPTION value="146"> 146 - Faiza Nazir <OPTION value="147"> 147 - AWAIS ASHRAF <OPTION value="148"> 148 - IMRAN ASHRAF <OPTION value="149"> 149 - RAHEEL AHMED <OPTION value="150"> 150 - TARIQ MASOOD <OPTION value="151"> 151 - SADIA <OPTION value="152"> 152 - AMAD ZIAFAT <OPTION value="153"> 153 - ABID HUSSAIN <OPTION value="154"> 154 - SUMAIRA SYEDA <OPTION value="155"> 155 - RIZWAN ASLAM <OPTION value="156"> 156 - ANUM MUSHTAQ <OPTION value="157"> 157 - ABDUR REHMAN ASIF <OPTION value="158"> 158 - FAHIM RAFIQUE <OPTION value="159"> 159 - ABBAS ALI <OPTION value="160"> 160 - ATTA ULLAH <OPTION value="161"> 161 - TALIB MUKHTAR <OPTION value="162"> 162 - ASIM MUSHTAQ <OPTION value="163"> 163 - AZHAR HUSSAIN <OPTION value="164"> 164 - TAJAMUL BUTT <OPTION value="165"> 165 - LATIF MALIK <OPTION value="166"> 166 - WARIS ALI <OPTION value="167"> 167 - SAHIBZADA ABDUL SATTAR <OPTION value="168"> 168 - KASHIF NADEEM <OPTION value="169"> 169 - SHAISTA MIRZA <OPTION value="170"> 170 - QAISAR MEHMOOD <OPTION value="171"> 171 - NAZAM MUHAMMAD <OPTION value="172"> 172 - SAJJAD AHMAD <OPTION value="173"> 173 - MUHAMMAD AZIM <OPTION value="174"> 174 - Muhammad Waqar <OPTION value="175"> 175 - KEHAN <OPTION value="176"> 176 - FAISAL NADEEM <OPTION value="177"> 177 - SAJID NAZIR <OPTION value="178"> 178 - MUHAMMAD ALI <OPTION value="179"> 179 - GHULAM SHABBIR <OPTION value="180"> 180 - MUHAMMAD ARSHAD <OPTION value="181"> 181 - AAMIR ABBAS <OPTION value="182"> 182 - FAHAD AQEEL <OPTION value="183"> 183 - RANA MUBASHIR <OPTION value="184"> 184 - BILAL SHEIKH <OPTION value="72"> 72 - SR <OPTION value="74"> 74 - SR74 <OPTION value="185"> 185 - MUHAMMAD SOHAIB <OPTION value="186"> 186 - MUHAMMAD IBRAHIM <OPTION value="187"> 187 - MUHAMMAD WAQAS <OPTION value="188"> 188 - RAGHIB JAVAID <OPTION value="189"> 189 - SAIMA SAYYED <OPTION value="190"> 190 - MUHAMMAD AFZAAL <OPTION value="191"> 191 - TAYYABA SHAHEEN <OPTION value="192"> 192 - MISS HUMA <OPTION value="193"> 193 - MUNEEB ASLAM <OPTION value="194"> 194 - MUHAMMAD NAEEM <OPTION value="195"> 195 - SHAHER BANO <OPTION value="196"> 196 - SHAISTA <OPTION value="197"> 197 - HASHAM BAIG <OPTION value="198"> 198 - WAQAS MUGHAL <OPTION value="199"> 199 - FARAH NAEEM <OPTION value="200"> 200 - ALMINA <OPTION value="201"> 201 - FAZLULLAH <OPTION value="202"> 202 - TANYA KARIM <OPTION value="203"> 203 - IMRAN GILLANI <OPTION value="204"> 204 - KHAWAR QAYYUM <OPTION value="205"> 205 - JAWAD MUNAWAR <OPTION value="206"> 206 - ARSHAD FAROOQ </SELECT></td>
    <td colspan=4></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td colspan=4></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=3></td>
    <td colspan=4></td>
    </tr>
    <tr><td colspan=15 height=19></td></tr>
    <tr valign=top>
    <td height=9 colspan=2></td>
    <td colspan=9 rowspan=3><SELECT name="PSALE" size=1 > <OPTION value="D"> D <OPTION value="T"> T </SELECT></td>
    <td colspan=4></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=2></td>
    <td colspan=4></td>
    </tr>
    <tr valign=top>
    <td height=9 colspan=2></td>
    <td colspan=4></td>
    </tr>
    </table>
    </center>
    </body>
    </form>
    </html>
    what should be the value of hidden_run_parameters ????
    i have also created 3 parameters in report p_action, p_User_connect and p_servername
    i am using the procedure below to call the report
    PROCEDURE show_report(pRptServer varchar2,pRptObj varchar2,pRptFormat varchar2,pRptPath varchar2,pRptParameter varchar2,pParamForm varchar2) IS
         repid REPORT_OBJECT;
         rep_status varchar2(30);
         v_rep VARCHAR2(100);
         vjob_id varchar2(100);
         v_reportserver varchar2(50):=pRptServer;
         v_runformat varchar2(50):= pRptFormat;
         hidden_action varchar2(1000);
         v_report_other VARCHAR2(4000) :='';
    c char;
    c_old char;
    c_new char;
    begin
                   repid := FIND_REPORT_OBJECT(pRptObj);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,pRptPath);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_reportserver);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,v_runformat);
                   --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,pRptParameter||' paramform='||pParamForm);
                   -- code for pfaction
                   hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME);
                   hidden_action := hidden_action ||'&destype='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE);
                   hidden_action := hidden_action ||'&desformat='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT);
                   hidden_action := hidden_action ||'&userid=' ||GET_APPLICATION_PROPERTY(username)||'/'||GET_APPLICATION_PROPERTY(password)||'@'||GET_APPLICATION_PROPERTY(connect_string);
                   hidden_action := hidden_action ||'&'||v_report_other;
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'pfaction='||hidden_action||' '||pRptParameter||' paramform='||pParamForm);
                   v_rep := RUN_REPORT_OBJECT(repid);
                   vjob_id := substr(v_rep,length(v_reportserver)+2,length(v_rep));
                   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('/reports/rwservlet/getjobid'||vjob_id||'?server='||v_reportserver||'','_blank');
                        message('Finished');
                   else
                        message('Error');
                   end if;
    end;
    Your urgent reply will be highly appreciated.........
    Edited by: Zahid Rahim on Mar 22, 2010 11:10 AM

  • Paramform=yes and Rep-52007

    I have forms and report services 10.2.0.2 installed on my Win2003 server.
    Reports runs perfectly with paramform=no but when i use paramform=yes it show html param form but pressing submit query it show The page cannot be displayed page. the same report with paramform=no and hard coding paramter runs perfectly.
    This is the procedure i am using after adding hidden_action i start getting REP-52007 instead of the page cannot be displayed.....
    PROCEDURE show_report(pRptServer varchar2,pRptObj varchar2,pRptFormat varchar2,pRptPath varchar2,pRptParameter varchar2,pParamForm varchar2) IS
    repid REPORT_OBJECT;
    rep_status varchar2(30);
    v_rep VARCHAR2(100);
    vjob_id varchar2(100);
    v_reportserver varchar2(50):=pRptServer;
    v_runformat varchar2(50):= pRptFormat;
    hidden_action varchar2(1000);
    v_report_other VARCHAR2(4000) :='';
    begin
    repid := FIND_REPORT_OBJECT(pRptObj);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,pRptPath);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_reportserver);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,v_runformat);
    --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,pRptParameter||' paramform='||pParamForm);
    -- code for pfaction
    hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME);
    hidden_action := hidden_action ||'&destype='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE);
    hidden_action := hidden_action ||'&desformat='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT);
    hidden_action := hidden_action ||'&userid=' ||GET_APPLICATION_PROPERTY(username)||'/'||GET_APPLICATION_PROPERTY(password)||'@'||GET_APPLICATION_PROPERTY(connect_string);
    hidden_action := hidden_action ||'&'||v_report_other;
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'pfaction='||hidden_action||' '||pRptParameter||' paramform='||pParamForm);
    v_rep := RUN_REPORT_OBJECT(repid);
    vjob_id := substr(v_rep,length(v_reportserver)+2,length(v_rep));
    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('/reports/rwservlet/getjobid'||vjob_id||'?server='||v_reportserver||'','_blank');
    message('Finished');
    else
    message('Error');
    end if;
    end;
    --------------------------------------------------------------------------------

    Hello,
    There is an example in the document :
    Oracle Forms Services – Using Run_Report_Object() to call Reports with a parameter form
    http://www.oracle.com/technology/products/forms/pdf/10g/frmrepparamform.pdf
    Regards

  • REP-52007 Error and Web Parameter Form Format Problems

    I am attemting to get Oracle 9i reports working. I created a super simple report just for test purposes. I am using the following URL to call it directly from the browser:
    http://myserver.com:8008/reports/rwservlet?server=repapp&report=jtest_rep.rdf&userid=myuser/mypass@mydb&DESTYPE=cache&DESFORMAT=pdf&PARAMFORM=YES
    When it generates the parameter form page, the formatting of the section that has the paramters is terrible. Looking at the HTML generated, it is creating a large <table> that places the elements outside of the viewing area. I do not know how why it is doing this or how to fix it.
    If I actually do find the field and enter in the prameter and hit submit, I then get:
    REP-52007: Parameter form format error.
    java.lang.IllegalStateException: Response is already committed!     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.setContentType(EvermindHttpServletResponse.java:973)     at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:27)     at oracle.reports.rwclient.RWReportRunner.setContentType(RWReportRunner.java:261)     at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:135)     at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:95)     at oracle.reports.rwclient.RWClient.runReport(RWClient.java:1312)     at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1129)     at oracle.reports.rwclient.RWClient.doPost(RWClient.java:318)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    If I set paramform=no and pass in the parmater in the url string, then it skips the paramter form and runs fine accepting the input.
    Any idea what the solution is for these two errors?

    After more searching, I found out that the problem for both is an Oracle Bug posted on mealink. It has to do with using capital letters for the oracle default parameters. Once you make it lower case, it works.
    ex:
    http://myserver.com:8008/reports/rwservlet?server=repapp&report=myreport.rdf&userid=myid/mypass@mydb&destype=cache&desformat=pdf&paramform=yes

  • Call Report with ParamForm=yes and Rep-52007

    I have forms and report services 10.2.0.2 installed on my Win2003 server.
    Reports runs perfectly with paramform=no but when i use paramform=yes it show html param form but pressing submit query it show The page cannot be displayed page. the same report with paramform=no and hard coding paramter runs perfectly.
    This is the procedure i am using after adding hidden_action i start getting REP-52007 instead of the page cannot be displayed.....
    PROCEDURE show_report(pRptServer varchar2,pRptObj varchar2,pRptFormat varchar2,pRptPath varchar2,pRptParameter varchar2,pParamForm varchar2) IS
         repid REPORT_OBJECT;
         rep_status varchar2(30);
         v_rep VARCHAR2(100);
         vjob_id varchar2(100);
         v_reportserver varchar2(50):=pRptServer;
         v_runformat varchar2(50):= pRptFormat;
         hidden_action varchar2(1000);
         v_report_other VARCHAR2(4000) :='';
    begin
                   repid := FIND_REPORT_OBJECT(pRptObj);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,pRptPath);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_reportserver);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,v_runformat);
                   --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,pRptParameter||' paramform='||pParamForm);
                   -- code for pfaction
                   hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME);
                   hidden_action := hidden_action ||'&destype='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE);
                   hidden_action := hidden_action ||'&desformat='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT);
                   hidden_action := hidden_action ||'&userid=' ||GET_APPLICATION_PROPERTY(username)||'/'||GET_APPLICATION_PROPERTY(password)||'@'||GET_APPLICATION_PROPERTY(connect_string);
                   hidden_action := hidden_action ||'&'||v_report_other;
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'pfaction='||hidden_action||' '||pRptParameter||' paramform='||pParamForm);
                   v_rep := RUN_REPORT_OBJECT(repid);
                   vjob_id := substr(v_rep,length(v_reportserver)+2,length(v_rep));
                   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('/reports/rwservlet/getjobid'||vjob_id||'?server='||v_reportserver||'','_blank');
                        message('Finished');
                   else
                        message('Error');
                   end if;
    end;
    Edited by: Zahid Rahim on Oct 2, 2009 10:39 AM

    but when i use paramform=yes it show html param form but pressing submit query it show The page cannot be displayed page
    for Paramform=yes u have to enter values manually.
    open the following link.
    REP-52007: Parameter form format error
    http://www.orafaq.com/forum/t/97088/2/
    sarah

  • REP-52007: Parameter form format error.

    Hello to all
    I am calling report from form
    by using run_report_object
    I want to accept parameter from user before run report.
    I used parameter form
    I am passing parameter paramform=yes
    It displying parameter form well but when I am submiting query then it give me above error
    How I can fix that error ?
    Please help....
    From
    Chirag Patel

    You are trying to put an alphanumeric character in a numeric parameter field, or a wrong date format. Look at the format of the parameter field in the reports Builder and compare it to the parameters in the query.

  • Report 9i parameter form problem, is it a bug?

    Hi all,
    I am using Dev 9i IDS, rel. 9.0.2, running in windows 2000. I've been converting my forms and reports from previous versions to 9i, and I came across an issue with the report's parameter form.
    First, I thought it could be a problem during the conversion , but to make sure I developed a new form and a new report straight in the 9i IDS suite, using Scott's DEPT table. The new form is simple having a button to call the new report which is based on the DEPT table and accepts an user's input for a dept. no.
    The same problem occurs:
    - in the form, if I set PARAMFORM=HTML then it could not open the report parameter form, hence the report could not run.
    - if I set PARAMFORM=YES, then the report parameter form is displayed, then I can enter a value for the department number. BUT, when I clicked the Submit Query button the report failed, and I received the following error:
    REP-52007: Parameter form format error.
    java.lang.IllegalStateException: Response is already committed!
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.setContentType(EvermindHttpServletResponse.java:973)
         at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:27)
         at oracle.reports.rwclient.RWReportRunner.setContentType(RWReportRunner.java:261)
         at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:135)
         at oracle.reports.rwclient.CommandManager.handleCmdGetjob(CommandManager.java:1219)
         at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:369)
         at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:651)
         at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1053)
         at oracle.reports.rwclient.RWClient.doPost(RWClient.java:318)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    I have no problem integrating others reports that don't have parameter form using run_report_object. And, I've checked and tried different ways of manipulating the parameter value using to_number in the report's where clause etc., it never worked.
    I guess the only workaround is to create the parameter form in Forms builder. Is there other ways of doing it , or is it a bug of the 9i IDS suites that needs to be fixed?
    - Thanks

    Hi Frank,
    There's a note published on Metalink, note 139546.1, showing a workaround to thi problem. but
    - it is rather lengthy and confusing, may not be practical .
    - it only applies to Forms and Reports 6i.
    However, it shows that the problem comes from 2 items in the source code of the parameter form which is produced by the RUN_REPORT_OBJECT built-in:
    1. <form method=post action=""> where action contains an empty string, it needs to have a valid entry, e.g.
    <form method=post action="http://hostname:port/cgi/rwci60.exe?">
    2. <input name="hidden_run_parameters" type=hidden value=""> where hidden value is also empty. It should contains all parameter values passed to the report parameter form, e.g.
    <input name="hidden_run_parameters" type=hidden value="report%3test+destype%3Dcache+userid%Dscott.....">
    And that is what I found, but I am reluctant to try it in 9i IDS, hoping Oracle has a better solution than that.
    Tho.

  • Report with parameter form

    I am trying to run the report from menu with the following code
    declare
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(50);
    BEGIN
    repid := find_report_object('test');
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, :global.user_dir||'test.REP');
    if id_null(repid) then
         pause;
         message('repid is null');
         else
    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,'repsrv');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=yes');
    end if;
    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('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repsrv','_blank');
    ELSE
    message('Error when running report');
    END IF;
    END;
    The report parameter form displays
    and when i enter the values
    gives me the error
    REP-52007: Parameter form format error.
    Copyright (c) 2002, 2005, Oracle. All rights reserved.
    java.lang.IllegalStateException: Writer already retrieved     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindHttpServletResponse.getOutputStream(EvermindHttpServletResponse.java:969)     at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:136)     at oracle.reports.rwclient.RWWriter.getOutputStream(RWWriter.java:263)     at oracle.reports.rwclient.RWReportRunner.sendFile(RWReportRunner.java:355)     at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:161)     at oracle.reports.rwclient.ServletCmdMgr.handleCmdGetjob(ServletCmdMgr.java:1343)     at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:92)     at oracle.reports.rwclient.ServletCmdMgr.handleWebCommand(ServletCmdMgr.java:295)     at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:958)     at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1442)     at oracle.reports.rwclient.RWClient.doPost(RWClient.java:504)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     at java.lang.Thread.run(Thread.java:534)
    Thanks
    Elsy

    Go to the following page and refer to the section titled: Oracle Forms Services - Using Run_Report_Object to call Reports with a Parameter Form
    http://www.oracle.com/technology/products/forms/techlisting10g.html

  • Making parameter form appears

    Dear All,
    i have a problem regarding showing parameter form that made by report developer when i call the report from my form
    first i use winXP sp3, database 10g ,developer suite 10g
    the problem is as follow:
    the report run perfectly from report builder and the parameter form appears but when i call the report from the form the report appears without parameter form screen and this make report empty
    notice1 :  i call any other report it is appears successfully
    in a short way (how can i make report parameter form appears when i call it from a form )
    i call the report through the following procedure
    procedure open_my_report (p_repname varchare2) is
    report id  report object;
    reportserverjob varchar2(100);
    report_status varchar2(20);
    begin
    report_id := find_report_object('myreport');
    set_report_object_property(report_id,REPORT_FILENAME,'c:\developersuitehome_1\reports\'||p_repname||'.rep');
    set_report_object_property(report_id,REPORT_EXECUTION_MODE,BATCH);
    set_report_object_property(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    set_report_object_property(report_id,REPORT_DESTYPE,FILE);
    set_report_object_property(report_id,REPORT_DESNAME,'c:\reports\'||p_repname||'.pdf');
    set_report_object_property(report_id,REPORT_DESFORMAT,'pdf');
    set_report_object_property(report_id,REPORT_SERVER,'rep_raysoft');
    reportserverjob := run_report_object(report_id);
    if rep_status = 'FINISHED' then
    copy_report_object_output (reportserverjob,'c/'||prepname||'.pdf');
    host('c/'||prepname||'.pdf',no_screen);
    message('report '||p_repname||' completed successfully');
    else
    message('error when running '||p_repname||' report .');
    end if;
    end;
    notice2: i try to activate the parameter form by adding this line in the procedure
    set_report_object_property(report_id,REPORT_OTHER,'paramform=yes');
    but it desn't make any differance
    so i will be so apreciated if anyone can help me
    thanks
    regards
    yasser elbighily

    Dear All,
    thanks for your attention
    really i modify my code to be appear as follow
    PROCEDURE OPEN_MY_REPORT (p_repname Varchar2) IS
    v_report_id Report_Object;
    vc_ReportServerJob VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    v_reportservername VARCHAR2(50):='rep_raysoft'; /* THE NAME OF THE REPORT SERVER*/
    vjob_id VARCHAR2(100); /* job_id as number only string*/
    BEGIN
    /* Get a handle to the Report Object itself. */
    v_report_id:= FIND_REPORT_OBJECT('MYREPORT');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME,'C:\DevSuiteHome_1\reports\'||p_repname||'.rep');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,FILE);
    /* Define the report output format and the name of the Reports Server
    as well as a parameter form to be displayedwhen required. */
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER,v_reportservername);
    if p_repname = 'REPCENTERSPREADING' then
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'paramform=yes');
    else
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'paramform=no');
    end if ;
    vc_ReportServerJob := RUN_REPORT_OBJECT(v_report_id);
    message(vc_ReportServerJob);
    message(vc_ReportServerJob);
    vjob_id := substr(vc_ReportServerJob,length(v_reportservername)+2,length(vc_ReportServerJob));
    message(vjob_id);
    message(vjob_id);
    /* If finished, check the report status . */
    vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
    IF vc_rep_status='FINISHED' THEN
    /* Call the Reports output to be displayed in a separate browser
    window. The URL for relative addressing is valid only when the Reports
    Server resides on the same host as the Forms Server. For accessing a
    remote Reports, you must use the prefix http://hostname:port/ */
    WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id||'?server=rep_raysoft','_blank');
    ELSE
    message ('Report failed with error message '||vc_rep_status);
    END IF;
    END;
    and it helps me to display the parameter form but i face another problem that is when i enter values for my parameter it gives me the following error
    REP-52007: Parameter form format error.
    note: i test the report directly from report builder and it work successfully without any problem
    so can anyone help me please
    yasser elbighily

  • Parameter form format error

    I have just deployed my first report to our 9iAS app server. I can successfully run the report in my browser if I pass ALL parameters in the URL. When I attempt to use paramForm=YES in my URL, the parameter form appears like it should, but when I selected values (LOV) on the parameter form and click "Submit Query", I get the following error.
    REP-52007: Parameter form format error.
    java.lang.IllegalStateException: Response is already committed!
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.setContentType(EvermindHttpServletResponse.java:973)
         at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:27)
         at oracle.reports.rwclient.RWReportRunner.setContentType(RWReportRunner.java:261)
         at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:135)
         at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:95)
         at oracle.reports.rwclient.RWClient.runReport(RWClient.java:1322)
         at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1139)
         at oracle.reports.rwclient.RWClient.doPost(RWClient.java:328)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Can anyone tell me what is wrong? This report run fine, including the parameter selection, in the Report Builder. I simply saved the report out to a JSP and copied it to the report server.
    Thanks,
    Kevin

    You may have hit a bug when passing parameter paramform as "PARAMFORM=yes" or "Paramform=yes", you will get the REP-52007 error. The fix will be available in Reports 9.0.2.1.
    As a work around, please submit the request with all lower case "paramform=yes" and try again.
    Hope this helps,
    -Jeff Tang

  • Invoices Payables Open Interface Import Error REP-1419: 'beforereport': PL/

    I am having the following error when I try to import the invoces from the interface tables. I've search for the problem but and tried various solutions but they did not solve the problem or did not apply.
    Can someone help??
    APXIIMPT module: Payables Open Interface Import
    Current system time is 22-SEP-2006 22:31:13
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_source='CI'
    p_batch_name='INITIAL'
    p_purge_flag='N'
    p_trace_switch='N'
    p_debug_switch='N'
    p_summary_flag='N'
    p_commit_batch_size='1000'
    p_user_id='1115'
    p_login_id='337907'
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.WE8ISO8859P1
    MSG-01104: (Before Report) Modified file
    MSG-00000: p_purge_flag :N
    MSG-00000: c_nls_yes :Yes
    MSG-00000: c_nls_no :No
    MSG-00000: p_summary_flag :N
    MSG-00000: p_nls_summary :No
    MSG-00000: p_nls_purge :No
    REP-1419: 'beforereport': PL/SQL program aborted.
    Report Builder: Release 6.0.8.25.0 - Production on Fri Sep 22 22:31:14 2006
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 577860.
    Review your concurrent request log and/or report output file for more detailed information.

    I get the following error message: "Invalid Liability Liability account is invalid". I've tried both populating the ACCTS_PAY_CODE_COMBINATION_ID field and leaving it null. Some googling also said mentioned that particular error message may be misleading.
    And yes, I'm passing the correct code from the lookup_type. The only difference is that for the one that works, I'm using an Oracle seeded source lookup. However, in the lookups screen I can't see where there are any special configuration.
    I should also mention that the invoices will be imported from an external system, and there will be no PO attached to the invoice. I'm not sure if this info is relevent though.
    I've done some researching and thinking and maybe there is some kind of profile option I need to set but I haven't been able to find it yet.
    Also, I can't find the AP_ERRORS_GT table or any other closely named ones.
    Edited by: Sean Ong on 15/08/2012 01:27

  • Rep-1401: formula name : Fatal Pl/SQL error occured

    Hi,
    I am using report builder 6.0 and recently came across a error while running the report. Rep-1401:<formula name> : Fatal Pl/SQL error occured.
    I created a formula column in the report. In that i have three local variable.
    f_val number := 0;
    s_val number := 0;
    t_val number := 0;
    t_val := f_val/s_val ; --> this gives the above fatal error.
    t_val := (f_val + 1)/s_val; --> this gives the above fatal error
    t_val := f_val/(s_val + 1); ---> no error
    if i change the value of s_val
    s_val := 1;
    t_val := f_val/(s_val - 1) ; ----> this gives the above fatal error.
    Can anyone help me to solve this problem or is it report builder bug.
    Please help me, as i desperately need help.
    Thanks

    Thanks for ur reply.
    I used nvl too, but the same error occurred.
    For the information in my question I by mistake typed
    t_val := (f_val + 1)/s_val; --> this gives the above fatal error.
    but when the value of f_val = zero and s_val is zero why it gives fatal error when i divide, i used nvl on both the variable while dividing but still got the same error.
    but if s_val is greater than zero then no error occurs.
    please help me, I feel it is a bug.

  • Rep-1401 : Fatal PL/SQL error occured

    Hi,
    I am using report builder 6.0 and recently came across a error while running the report. Rep-1401:<formula name> : Fatal Pl/SQL error occured.
    I created a formula column in the report. In that i have three local variable.
    f_val number := 0;
    s_val number := 0;
    t_val number := 0;
    t_val := f_val/s_val ; --> this gives the above fatal error.
    t_val := (f_val + 1)/s_val; --> this gives the above fatal error
    t_val := f_val/(s_val + 1); ---> no error
    if i change the value of s_val
    s_val := 1;
    t_val := f_val/(s_val - 1) ; ----> this gives the above fatal error.
    Can anyone help me to solve this problem or is it report builder bug.
    Please help me, as i desperately need help.
    Thanks

    The best way to handle this is to just add an exception handler that handles a zero divide.
    EX:
    function...blah
    var3:=var/var2...
    EXCEPTION
    when zero_divide then
    var3:= 0;Zero Divide is a built-in exception to handle cases just like this - so if you run into it, you can set it to whatever you want

  • REP-56055 exceedign maxconnections

    Hi ,
    i m getting error REP 56055 while running a report form a in a browser output format pdf
    I searched on many forums and i have made the changes like
    1. repserver.conf : maxconnect :3000 idletimeout :40
    2. reports/dtd/rwserver.conf : EngineResponsetimeout :5
    i restarted the reports services after that but still the REP 56055 is coming
    pls help me for the solution

    The change is not to be made in DTD (rwserverconf.dtd).
    It has to be made in $OH/reports/conf/server_name.conf
    Thanks
    Ratheesh
    [    All Docs     ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

Maybe you are looking for

  • Mozila android beata version support in video chating ?

    Anish manathoor

  • PlugIn/Effect Question

    I am somewhat new to FCE. I've been playing with it for about four months now, and I have made some great movies so far. Most of my editing has been pretty basic. I am slowly hoping to learn more about newer plug-ins/effects, as I would like to use t

  • Not reponding

    I had to dump my computer and reintall CS3 everything works but Photoshop. As long as I dont try to mess with the text it works. I have downloaded all the updates and it still doesnt help. Any ideas. Thanks for any h

  • Run EXE from JAVA program

    Does somebody know whether it is possible to run some program with extension EXE from JAVA program?

  • Adding printer to chooser

    I have a Mac G4 and I bought an old Epson C86 because it would work with OS 9. It works fine with OS 9.2 except that I can't get it to print in Printmaster Gold, a card program I use. I can't change the chooser to list the C86. Can anyone help? Burr