Error while running report in DocViewer region through OAF .

I am trying to run a report , on my custom region embedded in seeded page of service request module.
I have extended region :
"/oracle/apps/xdo/oa/common/webui/DocumentViewerRn.MainRegion"
I followed the steps in this thread :
http://apps2fusion.com/at/ps/51-ps/294-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page-part-2
When I run the report I get this error :
"An error encounterd either due to invalied Template details or due to null Data Input Stream."
I am not sure if the template registration is the problem or it is the code. Most of the custom report templates are attached to Custom application(short code = MAC), but this report will be run from embedded custom region in seeded application....Could that create any problem ?
please guide.
Following are the codes in my files :
CO-PR -
AppsContext appscontext =
((OADBTransactionImpl)am.getOADBTransaction()).getAppsContext();
String locale = null;
try
String as[] = OAHelper.getISOCodes(appscontext, appscontext.getCurrLangCode());
locale = as[0]+"-"+as[1];
// System.out.println("CO-PR - locale " + locale);
catch(SQLException sqlexception)
throw new OAException(sqlexception.getMessage(), (byte)0);
// Set the page context parameter required for datasource BlobDomain.
pageContext.putParameter("p_DataSource", "BlobDomain");
pageContext.putParameter("p_DataSourceCode", "MAQuestionDataDefinition");
pageContext.putParameter("p_DataSourceAppsShortName", "MAC");
pageContext.putParameter("p_XDORegionHeight", "700");
pageContext.putParameter("p_TemplateCode", "MAQuestionTemplate");
pageContext.putParameter("p_TemplateAppsShortName", "MAC"); -----------------------------------------could this be a problem ?
pageContext.putParameter("p_Locale", locale);
CO-PFR :
// Handle the Run button event.
if(pageContext.getParameter("Go") != null)
System.out.println("user presses run button");
Serializable params[] = {   problemIdFV  };
// Generate the Data XML. The data xml should contain the employees of the specified dept
// number
XMLNode xmlNode = (XMLNode) am.invokeMethod("getQuestionDataXML",params);
try{
// Create a blob object and add the data xml to it.
BlobDomain blob = new BlobDomain();
OutputStream os = blob.getBinaryOutputStream();
xmlNode.print(os);
os.close();
pageContext.putSessionValueDirect("XML_DATA_BLOB", blob);
catch(Exception e)
throw new OAException(e.getMessage(), (byte)0);
code AM :
public XMLNode getQuestionDataXML(String pid)
ListQuestionsOafRptVOImpl vo = getListQuestionsOafRptVO1();
vo.initQuery(pid);
XMLNode xmlNode = (XMLNode) vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS);
return xmlNode;
Code in VO:
setWhereClauseParam(0,pIdNum );
executeQuery();
thanks in advance

Hi,
There may be few possible reasons:
1. Template has not been designed correctly
2. Template is not registered correctly or name u r using in code doesn't match with registered Template
3. While registering you have not used correct language and territory.
cross check these things, for Template you can check from Ms-Word it self.
Regards,
Reetesh Sharma

Similar Messages

  • Timeout error while running Report

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

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

  • Error while running report 10g

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

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

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

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

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

  • Getting Error while running Report on Enterprise Report console

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

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

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

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

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

  • Error while running report..

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

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

  • FRM-92101 error while running report from form

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

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

  • Dataset can not be open error while running report rtcctool

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

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

  • DB error while running reports in InfoView

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

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

  • Error while running reports in Portal

    Hi ,
    While running a crystal reports in portal a pop-up appears with the following error message
    " Sorry = you are not logged into this server. Ensure that your user name and password, as well as the APS name are correct. "
    Can anyone help on this?

    Can you provide more information about the SDK, product version, application server, etc. that you are using?
    That error message indicates that you are trying to retrieve a report from BusinessObjects Enterprise without entering the authentication information.

  • Error while running report in oracle apps

    While running the report in oracle apps, i am getting below error
    Arguments
    AS_ON_DATE='2013/03/21 00:00:00'
    sdate='2012/04/01 00:00:00'
    edate='2013/03/31 00:00:00'
    Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AL32UTF8
    Enter Password:
    REP-0004: Warning: Unable to open user preference file.
    REP-0300: ORACLE error occurred.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-300: ORACLE error occurred.
    I tried to run the same report in report builder, it is working as per the requirement. But it is not working in oracle apps.
    Please help.
    Thanks in advance.

    Thanks Kishore. I copied the prefs.ora file. So the first warning from the is resolved. But still i am getting error.
    Query: I am trying to get the total absence days for each employee in current financial year.
    SUM((CASE
    WHEN ( (TO_CHAR (TO_DATE (paa.date_start, 'RRRR/MM/DD HH24:MI:SS'),'DD-MON-RRRR') BETWEEN TO_CHAR (TO_DATE (:sdate, 'RRRR/MM/DD HH24:MI:SS'),'DD-MON-RRRR') AND TO_CHAR (TO_DATE (:edate, 'RRRR/MM/DD HH24:MI:SS'),'DD-MON-RRRR'))
    OR (TO_CHAR (TO_DATE (paa.date_end, 'RRRR/MM/DD HH24:MI:SS'),'DD-MON-RRRR') BETWEEN TO_CHAR (TO_DATE (:sdate, 'RRRR/MM/DD HH24:MI:SS'),'DD-MON-RRRR') AND TO_CHAR (TO_DATE (:edate, 'RRRR/MM/DD HH24:MI:SS'),'DD-MON-RRRR')))
    THEN
    (CASE
    when (GREATEST(paa.date_end,to_date(:edate,'dd-mon-yyyy')))= to_date(paa.date_end)
    THEN to_date(:edate,'dd-mon-yyyy')
    ELSE
    TO_DATE(paa.date_end,'DD-MON-YYYY')
    END)
    - (CASE
    when(LEAST(paa.DATE_START,to_date(:sdate,'dd-mon-yyyy')))= to_date(paa.date_start)
    THEN to_date(:sdate,'dd-mon-yyyy')
    ELSE
    TO_DATE(paa.date_start,'DD-MON-YYYY')
    END)
    + 1
    ELSE
    0
    END)) AS "ABSENCE_DAYS"
    sdate(financial year start date) and edate(financial year end date) are input parameters. In oracle apps parameters are defined as FND_STANDARD_DATE.
    paa.date_start and paa.date_end is taken from per_absence_attendances table.
    Error:
    Arguments
    as_on_date='2013/03/22 00:00:00'
    sdate='2012/04/01 00:00:00'
    edate='2013/03/31 00:00:00'
    Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AL32UTF8
    Enter Password:
    REP-0300: ORACLE error occurred.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-300: ORACLE error occurred.
    Please help.
    Edited by: 995343 on Mar 22, 2013 4:17 AM

  • "Failed to open report" error while running reports

    We have a web application develeoped in ASP.Net, SQL Server 2005 , Crystal Reports 10.0. Sometimes if a large number of users run reports from their individual nodes they receive an error  "Failed to open report ", if we restart the IIS they are able to run the reports. In addition to this the users also sometimes get the error "Maximum Report limit attained". Can any one provide me with a solution other than restarting the IIS.

    Hi Balla
    If you face this issue only while running the reports from a .Net web application, then please post this thread to the sdk development forum.
    You can follow the link below:
    https://www.sdn.sap.com/irj/sdn/businessobjects-sdk-forums
    Thanks

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

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

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

  • REP-300 Error while running report using App Server

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

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

Maybe you are looking for

  • Subfolders are not seen by the compiler

    In an Actionscript Flash Builder 4 project, I have my main folder set to "src".  All of the files within "src" compile.  But I have several subfolders, each with several .as files, for example: src   main.as     module1       mod1_1.as       mod1_2.a

  • Electronic authorisation of invoices

    I run a small business which is looking to streamline its accounts payable coding & authorisation function - possibly using acrobat.  Currently we: a) receive invoices at head office; b) manually stamp the invoice with the coding stamp (fields - date

  • 10g client

    Hi, I need to run a form, I'm using 10g client but the database is 9i, I can compile the form without any issue but when I try to run it is failing, I'm not getting any error message, is like if the form loses the connection or something. Does anybod

  • [b]APEX Meetup at ODTUG[/b]

    Hello, For those folks going to ODTUG, we (Monty, Bharat and a few others) are trying to arrange an APEX Meetup (if you've never been to one before it's very casual, usually in a bar - drinks and good chat). I posted a quick blog post - http://jes.bl

  • ASM or Oracle instance failure recovery

    Hi, If ASM or Oracle instance crashes because of a disk failure, and the data is safe on other ASM disks, can you re-install Oracle and ASM, and mount the database using the data files on existing ASM disks. reg, Amitoj.