Rep-52005 error when running a report from form with parameter form

I am trying to run a report from a web deployed form and this report has a parameter form. I am getting a Rep-52005: The specified key report does not exist in key map file.
I am using Oracle Forms/Reports 10.1.2.0.2. My code is below. The first part works fine where I run a report with no parameter form, but the second part when I have a parameter form gets the about error.
PROCEDURE call_report (
p_report_name VARCHAR2,
p_reportobj_name VARCHAR2 DEFAULT NULL,
p_parameter_list paramlist DEFAULT NULL,
p_parameter_string VARCHAR2 DEFAULT NULL
IS
repid report_object;
v_rep VARCHAR2 (100);
rep_status VARCHAR2 (100);
v_report_url VARCHAR2 (240);
v_interface VARCHAR2 (50);
v_report_parameter VARCHAR2 (1);
vc_user_name VARCHAR2 (100);
vc_user_password VARCHAR2 (100);
vc_user_connect VARCHAR2 (100);
vc_connect VARCHAR2 (300);
v_reportserv VARCHAR2 (30);
v_job_number number;
BEGIN
/* Get the database to run the report against and
find out if the report has any parameters */
SELECT report_parameter_flag
INTO v_report_parameter
FROM program_list
WHERE program_type = 'REPORTS'
AND UPPER (screen_id) = UPPER (p_report_name);
vc_user_name := get_application_property (username);
vc_user_password := get_application_property (password);
vc_user_connect := get_application_property (connect_string);
v_reportserv := 'rep_xxxx_ias10g_home';
v_report_url := 'http://xxxx.state.il.us';
v_job_number := length(v_reportserv) +2;
vc_connect :=
vc_user_name
|| '/'
|| vc_user_password
|| '@'
|| vc_user_connect;
v_interface := get_application_property (user_interface);
IF ( v_interface = 'WEB'
AND v_report_parameter = 'N'
THEN
repid := find_report_object(p_reportobj_name);
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');
-- v_reportserv := get_report_object_property (repid,report_server);
set_report_object_property (repid, report_server, v_reportserv);
set_report_object_property (repid, report_other, p_parameter_string);
v_rep := run_report_object (repid);
rep_status := report_object_status (v_rep);
IF rep_status = 'FINISHED'
THEN
web.show_document (
v_report_url
|| '/reports/rwservlet/getjobid='
|| substr(v_rep,v_job_number)
|| '?server='
|| v_reportserv
,'_blank'
ELSE
message ( rep_status
|| 'Report output aborted');
END IF;
ELSIF ( v_interface = 'WEB'
AND v_report_parameter = 'Y'
THEN
repid := find_report_object (p_reportobj_name);
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, v_reportserv);
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'
v_rep := run_report_object (repid);
rep_status := report_object_status (v_rep);
IF rep_status = 'FINISHED'
THEN
web.show_document (
v_report_url
|| '/reports/rwservlet/getjobid='
|| substr(v_rep,v_job_number)
|| '?server='
|| v_reportserv
,'_blank'
ELSE
message ( rep_status
|| 'Report output aborted');
END IF;
ELSE
run_product (
reports,
p_report_name,
synchronous,
runtime,
filesystem,
p_parameter_list,
NULL
END IF;
EXCEPTION
WHEN OTHERS
THEN
message (SQLERRM);
END;
My parameter form comes up and I enter the necessary information and hit submit query button. Then I get the Rep-52005: The specified key report does not exist in key map file.
Any help will be greatly appreciated!!
Shellie Bricker

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

Similar Messages

  • Authorization error when running a report from the portal

    Hello,
    I am trying to run a certain report under a certain user in the portal.
    If I run this report with this user from the BW it is working but if I run it from the portal with this user it doesn't. The error I receive in the portal is this:
    ABEND: Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    ABEND: Errors while reading InfoProvider data
    ABEND: Error in BW:
    ABEND: You do not have authorization for the data transfer process
    Which other authorizations the user needs?

    Hey Roy,
    Check with the User Portal Roles and all Authorization Objects in BW.
    when we talking about Portal from BW - Is is URL portal or RFC Portal?
    Thanks,
    CP

  • How to run .JSP 9iReport from web with Parameter Form

    Hi,
    I m trying to run a .JSP 9ireport from the web. now i have two problems.
    1. how do i display a parameter form from the web, meaning when the user clicks on the link to the report a parameter form should be displayed and the report should give the output for those parameters.
    2. how do i format the report output which i get in the web in pages, with a link called "NEXT" which upon clicking will take the user to the next page.
    Any help will be appreciated. Thanks in advance.
    Unmesh

    1. Take a look "Building a reports with a Parameter Form" in "Getting Started with Oracle9i Reports" in otn (URL: http://otn.oracle.com/products/reports/htdocs/getstart/examples/index.html)
    2. Normally web page doesn't have page concept. If you want to define the page for web, you need to do it yourself in the jsp. However, we do support paper based report that supports page and can be deployed on the web. Use pagestream=yes in the URL request.
    Thanks,
    -Shaun

  • Error when running a report in BPC NW

    I am getting the following error when running a report for my application in BPC NW.
    EVDRE encountered an error retrieving data from the Web Server (retrying in (X) seconds).
    This error comes with this dialog option box to either continue or cancel retrying retrieving data. Retrying doesn't help either.
    Any report I run (on any of my appsets), I get this error. I used the EVDRE function and also tried running a report using the template as the basis. But I get the error either way.
    Does anyone know why this error is occurs or how to debug this issue. I saw some information about this in earlier threads but could  not make much out of it.
    Appreciate any assistance.

    Sanjay,
      This  is a   very  generic  error...Couple  of  places  to  look  for....
    1)Reprocess the application (Modify application + Reassign SQL Index + Process Application)
    2)optimizing the application sometimes helps (Full Optimize + Compress Database + Index defragmentation).
    3)Create a "evdataserver_debug.txt" in user's private publication folder on  server side to populate very detail level logging  and  check  the  log on client side EVDRE_LOG.txt for  further  peek  into  where  things  are getting  messed up.
    if  evdataserver_debug.txt does not  get  populated on BPC 5.x...it  is  an  issue  with  IIS authetication on Application server.
    4)You have to check the event viewer into .NET server and also the BPC logs which can be found into
    BPC\Logging  for  further  details  ..
    Hope  this  helps..
    Edited by: Vishal Mahawadhi on Jun 24, 2009 9:50 AM

  • Error while running Crystal Reports from application

    Hi,
    I am getting the below error when I try to run Crystal Reports from my application.
    There are no Page Servers connected to the Cache Server or all connected Page Servers are disabled or all connected Page Servers are not part of the specified server group. Please try to reconnect later.
    I am able to preview the reports in CMC and Infoview, but when I try to run the same report via my application the above error pops up.
    Sometimes I get a different error:
    The Page Server you are trying to connect to is not accessible. Please contact your system administrator.
    Looks like some configuration settings are missing/ corrupted.
    I tried to look in a number of websites... tried few workarounds, but none seems to be working.
    Any help is highly appreciated.
    Meena
    Edited by: meenakshitikoo1 on Apr 19, 2011 12:46 PM

    Check the following SAP note
    https://service.sap.com/sap/support/notes/1032461
    Regards,
    Stratos

  • Jsp Error when running graph reports on 9ias server

    i getting the following message error when running a graph jsp report on my company unix 9ias server:
    org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 0 completed: No
         at com.inprise.vbroker.ProtocolEngine.PortfolioImpl.getConnector(PortfolioImpl.java:79)
         at com.inprise.vbroker.ProtocolEngine.ManagerImpl.getConnector(ManagerImpl.java:147)
         at com.inprise.vbroker.orb.DelegateImpl._bind(DelegateImpl.java:196)
         at com.inprise.vbroker.orb.DelegateImpl.verifyConnection(DelegateImpl.java:365)
         at com.inprise.vbroker.orb.DelegateImpl.is_local(DelegateImpl.java:493)
         at org.omg.CORBA.portable.ObjectImpl._is_local(ObjectImpl.java:356)
         at oracle.reports.engine._EngineReportStub.doneReport(_EngineReportStub.java:36)
         at oracle.reports.definition.RWJspProxy.doneReport(RWJspProxy.java:261)
         at oracle.reports.definition.RWReport.done(RWReport.java:1087)
         at oracle.reports.jsp.ReportTag.release(ReportTag.java:398)
         at oracle.jsp.runtime.OracleJspRuntime.releaseTagHandler0(OracleJspRuntime.java:1109)
         at oracle.jsp.runtime.OracleJspRuntime.extraHandlePCFinally(OracleJspRuntime.java:1213)
         at afpdrep.crystal._flip._flip1._jspService(_flip1.java:687)
         [SRC:/afpdrep/crystal/flip/flip1.jsp]
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Thanks for any help in advance.

    Hi Simon,
    Looking at the exception, it seems the machine is so slow that it could not give enough time for the report engines to start up can also result in this exception.
    Please try the following :
    Increase the callbacktimeout parameter for the report server. In server conf file that increase the callbacktimeout parameter for the report server from 1 minute (60000 milliseconds) to 3 minutes(180000 milliseconds)
    Thanks,
    Vinod.

  • Error when running crystal report

    i saw the error in log file 'Only TrueType fonts are supported. This is not a TrueType font' and 'Error while running Crystal report'
    Help me to fix this problem.Thanks inadvanced.
    I used some software developed in vb6.It changed some system font when running :D.
    i want to run both that soft   and sap.

    Hi,
    Please refer to the link, [Re: CR XI R2, Crystal Report Viewer Opentype Font not supported|Re: CR XI R2, Crystal Report Viewer Opentype Font not supported].
    What is the version of your crystal report, we will try to apply some service packs.
    Regards,
    Clint

  • Error when running a report writer

    Hi,
    I am getting an error ("Internal error: More than 999 GREP blocks were requested") when running a report writer.
    The error diagnosis is:
    Internal error: More than 999 GREP blocks were requested                                                                               
    Message no. GR 215                                                                               
    Diagnosis                                                                               
    An internal error occurred in the Report Writer.                                                                               
    When running the program, you selected the option to store your results
         permanently.  However, when the selected data was stored in blocks in  
         the GREP file, the maximum number of blocks was exceeded.                                                                               
    System Response                                                                               
    The selection program was terminated.                                                                               
    Procedure                                                                               
    Inform your system administrator.                                                                               
    You may have to increase the block size for the GREP blocks.    
    Anybody knows how to increase the size of GREP blocks?
    Thanks in advance.
    Regards,
    Arun Mohan

    Hello,
    The reason for the error GR215 is that too many data blocks are being
    processed.
    The explanation is one of the following:
    - You have variation activated in the report
    - A large group of objects is being processed and the report output
       fails due to the large data size
    - the selected data is reaching the technical restriction
    Check the SAP note 64537. This note advises you to set the BLOCK SIZE parameter
    in the coding to 500000. However, the maximum value possible is 999999. You may -
    if you already implemented the coding change of SAP note 64537 - raise the parameter
    once more to 999999.
    If the error then still remains the selected/processed data is definitely too much.
    Then check the report definition in comparison to SAP notes 317574 and 387414.
    Regards,
    David

  • Error when  building a report from 2 different subject areas

    Hello Experts,
    I am using obiee 11.1.1.5.
    I have 5 dimension D1,D2,D3,D4,D5 connected to fact1 and 4 dimension connected to fact2 such as D1,D2,D6,D7.
    where D1,D2 is common to both the facts.
    Fact1 Is in subject area 1 and Fact2 is in subject area2.
    I need to create a report by adding columns of  subject area 1 and 2 with columns from all the dimensions D1,D2....D7.
    As of now i am getting error stating "No fact table exists at the requested level of detail " when i try to add columns from 2 different subject areas.
    Can anyone help me in solving the above problem.
    Is there any prerequisite to be taken care when  building a report from 2 different subject areas.
    Regards,
    NN

    Hello Nagireddy,
    So kind of you, for your quick reply
    I was able to solve the error by doing below steps in additional what you have specified
    -->For the fact table LTSs, set the logical level in the Content tab to the dimension's lowest level for each conforming dimension (leave the non-conforming dimensions level blank).
    Now I have another requirement i,e
    I need to have non measure columns such as Date into the newly created fact in BMM layer.
    I tried doing the steps which I followed for measure column, but it is throwing the same error which I get earlier.
    Below is the error
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 14025] No fact table exists at the requested level of detail:
    Let me know if have any suggestions

  • Error when running XL reporter

    User encountered following error message when running XL Reporter reports on Excel 2007 running on OS Windows XP.
    "An error occured during the process "Report Initialize"
    Description: (667) MetaInfo.xml not found!
    (Please contact the administrator to fix the repository connection)
    XL Reporter Startup Failed!
    Please advise.
    Regards
    M Auditya

    Hi Auditya,
    Check this link.
    XL Reporter Start Up Failed - "Report Initialize" Description (667)
    Thanks,
    Srujal Patel

  • PLEASE: IS THIS A VALID ERROR WHEN RUNNING DISC ULTIL FROM INSTALL DISK 1

    when running disc util from install disc 1..i'm getting "invaild leaf record count it should be 7 instead of 96" my install reads os vers 10.2.1.. my current os is 10.4.9

    I would try running the Disk repair several more times. But more then likely you'll need a more robust utility.
    DiskWarrior is the best there is at this.
    If you have a backup, preferably a bootable backup from before this problem, you can Erase and Install to give you a new directory. If you don't have a backup, this procedure will erase everything on your drive.
    Cheers!
    DALE

  • Error when running the report

    hello,
    i am running a report, which has three parameters begin date, end date and dept full name.
    for example when i am running the report with following parameter's works fine they are 01/01/2002, 02/02/2002 and dept name is Animal Control.
    but when i am running the report with the following parameters its giving problem i.e.
    01/01/2002, 02/02/2002 and dept name is Mayor's office its not running the report says command line syntax error rep-0159.
    in the database the dept name is Like Mayor's office.
    i dont know how to convert the apostrophe to a string or what ever, to get the report.
    this is production problem.
    please do help me out.
    thanks.

    Hello!
    I guess you are running your report using rwrun60.exe, probably in batch mode.
    In such cases string parameter with single quote inside of it should be passed in a such way: rwrun60 ... paramname3='Mayor''s office' ...
    In Reports 6.0.8.11.3 it works fine.
    No problems at all if you are calling report from the Forms using run_product built-in and passing prameter list into the report.
    Regards,
    Andrew Velichko
    Brainbench MVP for Oracle Developer 2000
    http://www.brainbench.com

  • REP-57000 Error When Generating a Report in EXCEL format

    Hello All,
    We're encountering an error that says "REP-57000: Oracle Reports API - Internal error: Item: oracle.reports.definition.RWReport;Prop:34; Attr: ]] ...".
    The report works fine and is able to generate an EXCEL file when it retrieves around 3K records. We only encounter the error when the number of records exceeds 5K.
    What is the cause of the error? Additional note, we're using Oracle Reports Server ver.10.1.2.0.2.
    Any help would be greatly appeciated. =)

    In the reports engine conf file (Example on UAT -> rep_lonshutl5n2_10gr2_forms_reports_service.conf) add JVM Heap Options
    jvmOptions="-Xms512m -Xmx512m"
    First option is the minimum heap size and second is maximum. The size is in MB and max size can go up to 4000 depending on physical/virtual memory available on Operating System.
    Change this Value from 512-2000 and try running your report
    In case this doesn't solve your problem, change your output Format to DELIMITEDDATA and try running the reports. There is a bug in Oracle that it doesn't support large excel outputs in DELIMITED format.

  • Error when running a report

    Hi,
    When I run a report with only the below attribute and measure, I get the below error.
    All the others attributes and measures are working fine, except for Stay and Nights.
    I think it is a mapping issue in the repository, but could not find so far what the issue is.
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46008] Internal error: File .\Src\SQONExactMatch.cpp, line 4579. (HY000)
    SQL Issued: SELECT "Enrollment Group"."Enrollment Group" saw_0, Facts.Stay saw_1 FROM "MEMBERSHIP STAY" ORDER BY saw_0
    Thanks and Regards
    G.

    Hi,
    1)Join conditions are missing (make sure all joins and conditions are correctly mapped and calc)
    2) Check your repository and connection pool whether the correct repository is running or not.If it is correct then check the connection pool for the data source.
    Thanks
    Deva

  • Error when run crystal report viewer page

    Hi I created form using vb 2008 contains crystalreportviewer and in load sub I wrote the following code to show the report:
    Dim r_select As String
        Dim MyReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            r_select = "Select Innovative_Form.* from Innovative_Form"
            Dim da As OleDbDataAdapter = New OleDbDataAdapter(r_select, System.Configuration.ConfigurationManager.ConnectionStrings("ConnectionString").ToString())
            Dim da33 As New System.Data.DataSet
            da.Fill(da33, "DataTable1")
            MyReport.Load(Server.MapPath("CrystalReport.rpt"))
            MyReport.SetDataSource(da33)
            Me.CrystalReportViewer1.ReportSource = MyReport
            Me.CrystalReportViewer1.DisplayGroupTree = False
            Me.CrystalReportViewer1.DataBind()
            Me.CrystalReportViewer1.ShowFirstPage()
        End Sub
    when run I got the following error
    Server Error in '/Innovation Last Version-10-1-10' Application.
    Object reference not set to an instance of an object.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
    Source Error:
    Line 34:
    Line 35:
    Line 36:         Dim da As OleDbDataAdapter = New OleDbDataAdapter(r_select, System.Configuration.ConfigurationManager.ConnectionStrings("ConnectionString").ToString())
    Line 37:
    Line 38:
    Source File: C:\Users\kisruser\Desktop\PROJECTS\Innovate Project\Innovation Last Version-10-1-10\Report.aspx.vb    Line: 36
    Stack Trace:
    [NullReferenceException: Object reference not set to an instance of an object.]
       Report.Page_Load(Object sender, EventArgs e) in C:\Users\kisruser\Desktop\PROJECTS\Innovate Project\Innovation Last Version-10-1-10\Report.aspx.vb:36
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016
    SO WHAT IS THE PROBLEM?????

    What version of CR are you using?
    What CR updates are you using?
    See sample apps here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    in particular check out vbnet_win_pass_dataset_main_sub.zip
    The [Crystal Reports for Visual Studio 2005 Walkthroughs|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23] will also be good to look at.
    Ludek
    Follow us on Twitter
    http://twitter.com/SAPCRNetSup

Maybe you are looking for