FRM-41219 Invalid report id

Hello
I'm using oracle reports 10g (10.1.2.0.2)
I'm trying to call a report from form.
PROCEDURE pro_run_massprint IS
L_PARAMLIST_ID PARAMLIST;
L_FILE_NAME VARCHAR2(255);
report_id REPORT_OBJECT;
v_rep varchar2(100);
BEGIN
L_FILE_NAME:=:TXT_DESTN_NAME || 'MASSPRINT'||'.pdf';
L_PARAMLIST_ID := GET_PARAMETER_LIST('TEMPDATA');
IF NOT ID_NULL(L_PARAMLIST_ID) THEN
DESTROY_PARAMETER_LIST(L_PARAMLIST_ID);
END IF;
ADD_PARAMETER(L_PARAMLIST_ID,'P_PRMLVSECTION',TEXT_PARAMETER,:TXT_PRMLVSECTION);
ADD_PARAMETER(L_PARAMLIST_ID,'P_1',TEXT_PARAMETER,:TXT_PRMLNSECTION);
report_id:=FIND_REPORT_OBJECT('MASSPRINT');
RUN_REPORT_OBJECT_PROC(report_id,
'TEST1',
'PDF',
CACHE,
'E:\DevSuiteHome\reports\printers\MASSPRINT.RDF',
'PARAMFORM=NO',
'http://172.16.20.198:8890/reports/rwservlet');
End;
But i'm getting error : FRM-41219 Invalid report id
I'm saving my report in the reports path. <oracle_home>/reports/printer
which is in the report_path of regedit.
Please help me

Thank You sir,
But I'm using RUN_REPORT_OBJECT_PROC as beloe
PROCEDURE RUN_REPORT_OBJECT_PROC(
report_id REPORT_OBJECT,
report_server_name VARCHAR2,
report_format VARCHAR2,
report_destype_name NUMBER,
report_file_name VARCHAR2,
report_otherparam VARCHAR2,
reports_servlet VARCHAR2) IS
report_message VARCHAR2(100) :='';
rep_status VARCHAR2(100) :='';
vjob_id VARCHAR2(4000) :='';
hidden_action VARCHAR2(2000) :='';
v_report_other VARCHAR2(4000) :='';
i number (5);
c char;
c_old char;
c_new char;
BEGIN
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,
SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,
report_file_name);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,
report_server_name);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,
report_destype_name);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,
report_format);
hidden_action := hidden_action ||'&report='||
GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
hidden_action := hidden_action||'&destype='||
GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
hidden_action := hidden_action||'&desformat='||
GET_REPORT_OBJECT_PROPERTY (report_id,REPORT_DESFORMAT);
hidden_action := hidden_action ||'&userid='
||get_application_property(username)||'/'||
get_application_property(password)||'@'||
get_application_property(connect_string);
c_old :='@';
FOR i IN 1..LENGTH(report_otherparam) LOOP
c_new:= substr(report_otherparam,i,1);
IF (c_new ='') THEN
c:='&';
ELSE
c:= c_new;
END IF;
-- eliminate multiple blanks
IF (c_old ='' and c_new = '') THEN
null;
ELSE
v_report_other := v_report_other||c;
END IF;
c_old := c_new;
hidden_action := hidden_action ||'&'|| v_report_other;
hidden_action := reports_servlet||'?_hidden_server='||report_server_name
|| encode(hidden_action);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||
hidden_action||' '||report_otherparam);
-- run Reports
report_message := run_report_object(report_id);
rep_status := report_object_status(report_message);
IF rep_status='FINISHED' THEN
vjob_id :=substr(report_message,length(report_server_name)+2,length
(report_message));
WEB.SHOW_DOCUMENT(reports_servlet||'/getjobid'||vjob_id||'?server='||
report_server_name,' _blank');
ELSE
--handle errors
null;
END IF;
END LOOP;
END;
PROCEDURE pro_run_massprint IS
L_PARAMLIST_ID PARAMLIST;
L_FILE_NAME VARCHAR2(255);
report_id REPORT_OBJECT;
v_rep varchar2(100);
BEGIN
L_FILE_NAME:=:TXT_DESTN_NAME || 'MASSPRINT'||'.pdf';
L_PARAMLIST_ID := GET_PARAMETER_LIST('TEMPDATA');
IF NOT ID_NULL(L_PARAMLIST_ID) THEN
DESTROY_PARAMETER_LIST(L_PARAMLIST_ID);
END IF;
L_PARAMLIST_ID := CREATE_PARAMETER_LIST('TEMPDATA');
ADD_PARAMETER(L_PARAMLIST_ID,'PRMCOCODE',TEXT_PARAMETER,:TXT_PRMCOCODE);
ADD_PARAMETER(L_PARAMLIST_ID,'PRMEMPID',TEXT_PARAMETER,:TXT_EMP_ID);
ADD_PARAMETER(L_PARAMLIST_ID,'PRMMONTH',TEXT_PARAMETER,:TXT_prmMONTH);
ADD_PARAMETER(L_PARAMLIST_ID,'PRMYEAR',TEXT_PARAMETER,:TXT_prmYEAR);
ADD_PARAMETER(L_PARAMLIST_ID,'PRMCOSTCENTRE',TEXT_PARAMETER,:TXT_prmCOSTCENTRE);
ADD_PARAMETER(L_PARAMLIST_ID,'PRMDEPARTMENT',TEXT_PARAMETER,:TXT_DEPARTMENT);
ADD_PARAMETER(L_PARAMLIST_ID,'PRMDESIG',TEXT_PARAMETER,:TXT_prmDESIG);
ADD_PARAMETER(L_PARAMLIST_ID,'PRMGRADE',TEXT_PARAMETER,:TXT_prmGRADE);
ADD_PARAMETER(L_PARAMLIST_ID,'PRMLOCATION',TEXT_PARAMETER,:TXT_prmLOCATION);
ADD_PARAMETER(L_PARAMLIST_ID,'PRMPAYGROUP',TEXT_PARAMETER,:TXT_prmPAYGROUP);
ADD_PARAMETER(L_PARAMLIST_ID,'P_DESNAME',TEXT_PARAMETER,L_FILE_NAME);
ADD_PARAMETER(L_PARAMLIST_ID,'P_PRMITSECTION',TEXT_PARAMETER,:TXT_PRMITSECTION);
ADD_PARAMETER(L_PARAMLIST_ID,'P_PRMETSECTION',TEXT_PARAMETER,:TXT_PRMETSECTION);
ADD_PARAMETER(L_PARAMLIST_ID,'P_PRMLVSECTION',TEXT_PARAMETER,:TXT_PRMLVSECTION);
ADD_PARAMETER(L_PARAMLIST_ID,'P_1',TEXT_PARAMETER,:TXT_PRMLNSECTION);
report_id:=FIND_REPORT_OBJECT('MASSPRINT');
RUN_REPORT_OBJECT_PROC(report_id,
'TEST1',
'PDF',
CACHE,
'E:\DevSuiteHome\reports\printers\MASSPRINT.RDF',
'PARAMFORM=NO',
'http://172.16.20.198:8890/reports/rwservlet');
where should i include the parameter

Similar Messages

  • FRM-41219 - Cannot able to call reports from form generated in Designer

    Hi
    I'm trying to call a report from form whit a button generated in Designer 10.1.2.0.2
    But I'm getting error : FRM-41219 Invalid report id
    I'm tying with a menu but I'm getting the same error.
    Please help me

    Note 1056653.6
    FRM-41219 Cannot Find Report: Invalid ID
    Problem Description:
    You are getting error: FRM-41219 Cannot Find Report: Invalid ID
    Problem Explanation:
    The code is using find_report_object and passing a report name to the function.
    The statements are as follows:
    DECLARE
    repid REPORT_OBJECT;
    BEGIN
    repid := FIND_REPORT_OBJECT('report1');
    END;
    Solution Explanation:
    The error message frm-41219 is a new error code which corresponds to the
    Oracle Developer forms/report integration.
    This message essentially means that the report cannot be found. Specifying the
    correct name of a report object found in the forms object navigator (not the
    actual name of the rdf file) usually resolves the problem.

  • FRM - 41219 CANNOT FIND REPORT INVALID ID  - CALLING REPORT FROM FORM

    I am using Developer Suite 10g (forms 9i, reports 9i) . windows XP.
    I am using the following code in WHEN-BUTTON-PRESSED-PRESSED trigger in form to call report.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    BEGIN
    repid := find_report_object('C:\EMP.RDF');
    v_rep := RUN_REPORT_OBJECT(repid);
    END;
    as as result It is displaying FRM - 41219 CANNOT FIND REPORT INVALID ID.
    I have used the EMP.JSP also in find_report_object built-in. But there is no difference.
    what could be the reason - plz give the solution.
    with thanks
    by GMS

    Unless you made a mistake and overlooked it, what I suggested should work. Having said that, you did not mention the exact Forms version you are using. There may have been a problem in the version you are using which was corrected in a later release. I tested the example I offered using Forms 10.1.2.3 and it works correctly. Carefully review what you did. Verify that the file actually exists in the file system. Also, I would recommend renaming the file with all lower case letters and referencing it in the form with all lower case letters. Here is the complete code of the form I tested. I will also include the property values from the Report object.
    Report1 settings:
    Name - REPORT1
    Subclass Information -
    Comments -
    Filename - dummy.rdf
    Execution Mode - Batch
    Communication Mode - Synchronous
    Data Source Data Block - <Null>
    Query Name -
    Report Destination Type - File
    Report Destination Name -
    Report Destination Format -
    Report Server -
    Other Reports Parameters - On the form create the following items in BLOCK1:
    Text fields:
    <li>SERVERNAME
    <li>REPNAME
    <li>OTHERPARAMS
    Button:
    <li>CALL_REP
    In the WHEN-BUTTON-PRESSED trigger add this code:
    Declare
    repid REPORT_OBJECT;
    v_rep varchar2(256);
    rep_status varchar2(256);
    Begin
       repid := find_report_object('REPORT1');
    -- Set Report Object properties
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, 'HTML');
    -- Comm mode 1 = SYNCHRONOUS
    -- Comm mode 2 = ASYNCHRONOUS
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, 1);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, :block1.SERVERNAME);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, :block1.REPNAME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,:block1.otherparams);
    SYNCHRONIZE;
    -- Run report and get status
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := report_object_status(v_rep);
    SYNCHRONIZE;
    -- Wait for Reports to generate results
        WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
        LOOP
          rep_status := report_object_status(v_rep);
        END LOOP;
        SYNCHRONIZE;
    -- If DESTYPE is appropriate for displaying to user, execute WEB.SHOW ;   
        IF rep_status = 'FINISHED' THEN
          WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||:block1.SERVERNAME,'_blank');
        ELSE
          message(rep_status);
        END IF;  
    END; When you run the form, enter the Report Server name and the Report filename (include the path if you have not configured REPORTS_PATH). Then click on the button. Note that the substr logic may need to be altered slightly if you are using an old version of Forms/Reports.
    .

  • URGENT : FRM-41219 Can not find report : INVALID ID

    hello all
    The same problem i have also posted in forms forum..
    i am getting the exception FRM-41219 when calling the report from my form with the method RUN_REPORT_OBJECT.
    I m calling the report in my program unit method as follows :
    DECLARE
    Pl_Id ParameterList;
    RepId REPORT_OBJECT;
    Vrep Varchar2(1000);
    BEGIN
    add_parameter(pl_id,'report_parameter',text_parameter,record_block.input_box);
    RepId := find_repor_object('report_name');
    Vrep := RUN_REPORT_OBJECT(RepId,Pl_Id);
    END;
    But when i run the fmx .. i get the exception "FRM-41219 can not find report :Invalid ID"
    I have checked all possiblities i.e. i have also called the method as RUN_REPORT_OBJECT(RepId) and also RUN_REPORT_OBJECT(ReportName)..but in all cases i am getting the same error..i have also checked the environment variable ..it contains the correct path of my application folder where the report is available.
    Kindly help me with this
    if any body knows the solution..or the cause for it..please let me know here or contact me on this address
    [email protected]
    thank you.

    Try this:
    DECLARE
    Report_Id report_object;
    v_rep varchar2(200);
    rep_status varchar2(20);
    BEGIN
    report_id:=FIND_REPORT_OBJECT('EMP');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,:REPORT_NAME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,:REPORT_DESFORMAT);
    if :REPORT_DESTYPE='CACHE' then
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    elsif :REPORT_DESTYPE='FILE' then
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
    end if
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,:REPORT_DESNAME);
    v_rep := RUN_REPORT_OBJECT(report_id);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    if rep_status = 'FINISHED' then
    message('Report Completed');
    else
    message('Error when running report.');
    end if;
    END;
    Thanks
    Rohit

  • Frm-41219 Error finding report

    Hi everyone
    I am trying to run report from a push button from form.Every time i am getting error FRM-41219 Cannot find report. Invalid ID.
    Of course report exists and is compiled.I specified REPORTS_PATH variable in registry to point to my folder,
    PROCEDURE print_report IS
         repid      REPORT_OBJECT;
         report_job_id     VARCHAR2(100);
    BEGIN
    repid := FIND_REPORT_OBJECT('DEPARTMENT');
    report_job_id := RUN_REPORT_OBJECT(repid);
    END;
    Is tis a report Services Settings issue? What settings need to be done in Report Services? Or there is some other reason.
    Please help me, I am stucked
    Thank u

    Hello,
    'DEPARTMENT' in
    repid := FIND_REPORT_OBJECT('DEPARTMENT');
    is not the name of a REP or RDF file, it is the name of
    a report object which should have been created in Forms.
    You can check if the object exists in the Forms Builder :
    Open the FMB
    Go in the "Object Navigator"
    Check if an Object called DEPARTMENT exist under the
    Reports node. (If it does not exist, create it)
    Regards

  • Can't find report error frm-41219

    i have a report with the name of item_report.rdf
    i have a form with the name test123
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    BEGIN
    repid := FIND_REPORT_OBJECT( 'item_report' );
    v_rep := RUN_REPORT_OBJECT(repid);
    END;
    i get the error frm-41219
    frm-40738 argument 1 to builtin RUN_REPORT_OBJECT cannot be null.
    please guide me
    Thanks

    have a report with the name of item_report.rdf
    i have a form with the name test123
    forms9i, reports9i ooperating system window XP
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    BEGIN
    repid := FIND_REPORT_OBJECT( 'item_report' );
    v_rep := RUN_REPORT_OBJECT(repid);
    END;
    i get the error frm-41219
    frm-40738 argument 1 to builtin RUN_REPORT_OBJECT cannot be null.
    please guide me
    Thanks

  • FRM-41219 when run report having a form opened

    I cannot run a web report (called from the menu) if any form is opened.
    I'm getting error: FRM-41219 Cannot Find Report.
    If the form is minimized, I can execute the report successfully.

    Hi Leontin,
    Can you explain what exactly you mean "If the form is minimized" ?
    What exact Reports & Forms version are you using ?
    Is this error consistent whenever you run a web report ?
    Are you getting for any web report / for a specific Report ?
    Thanks,
    Vinod.

  • Invalid report File path-crystal report

    Hi Every one,
    I created Crystal Layout for GRPO PLD.When I am trying to import it is showing 'Invalid report file path',But it is working fine in another server.
    Please suggest.
    Thanks and Regards
    DEV

    Hi,
    Not sure below SAP note related to above issue:
    1710613 - CR_Multiple Data Sources Not Recognized After Importing
    Multi-Database Crystal Reports
    1668274 - Print Draft with Crystal Layout
    Thanks & Regards,
    Nagarajan

  • Error "Invalid Report Object" when running any CR

    Hi, I have installed BO XI V3.1 and upgraded to 1.4 level.
    However when logged into the infoview app, if i browse to any 2008 report i have uploaded into the enterprise system and double click to run i get the error "Invalid Report Object".
    This is also true if i try to run any report in the Public Folders \ Report Samples folder.
    Nothing will display for me but they run fine in CR 2008, just not via the web tool.
    Any help on this will be much appreciated.
    C.

    Hi,
    Is this issue after you have upgraded to 1.4 or was this issue occurring before?
    Since the reports are running properly in the designer please try to do following steps:-
    1)  Open the report in the designer which is not working in enterprise
    2)  Refresh the report in CR designer
    3)  Save the report back to the enterprise and make sure save with data is checked.
    4)  Now open the report in the Enterprise and check it works or not.
    The reason of doing this is that to generate new PID's for the reports if after the upgrade the PID's have changed or has became corrupt.

  • Problem in Loading - Invalid Report File Path

    Post Author: a_Mohammad
    CA Forum: .NET
    Im using CR which came as a bundle with VS2005. I deployed my ASP.NET project on online server. Sometimes, When users try to load the reports, they got an error says "Invalid Report File Path" appears at the top of the report, and no data shown. If i reset the IIS, it return to work fine again.
    Usually i got this error when there is a lot of hits on the server and reports..
    Can you plz advice on that???

    Hello ,
    The formula must always return some value. When a conditional test produces no result and this code is responsible for the RETURN in a formula, the error occurs. Make sure that the condition returns a value in all cases (trap errors).
    Example:
    Problem code
    function CF_1Formula return Number is
    begin
    if :deptno = 10 then
    return(10);
    end if;
    end;
    If deptno is not 10 , this does not return any value .
    Correct code
    You can write the function as:
    function CF_1Formula return Number is
    begin
    if :deptno = 10 then
    return(100);
    else
    return(200);
    end if;
    end;
    Thanks
    The Oracle Reports Team

  • FR error:  *Error: invalid report object*

    Hi All,
    When we run the report we are getting error "*Error: invalid report object*. It is for one specific entity at the base level for some user's. Other user's can able to view the data at that leve. All the user's have same level of access. can someone help......
    Thanks in advance.
    Moh

    You are most likely getting this error because you have a report object trying to reference a value out of a datagrid or a POV that doesn't have any data for the given entity.
    When you run it for an entity with data in the grid, everything works great. When you run it for an entity with no data, the datagrid essentially doesn't exist and references to it will fail with the error you have shown.
    A good example of this is when you have a header and you pull parts of the header from a grid such as showing the scenario, etc. To do this you reference a row (or column) from the datagrid, etc.....
    Charles

  • FRM-40212: Invalid value for Field SHIP_TO_ADDRESS1on forms OEXOETEL

    I want to customize a form "OEXOETEL". I want to copy some values from another order to a new order.When i navigate to a block LINE i receive this message: "FRM-40212: Invalid value for Field SHIP_TO_ADDRESS1".
    cursor c_order(p_header_id varchar2) is
    select o.sold_to,
    o.order_type,
    o.terms,
    o.ship_from,
    o.SHIP_to_org_id,
    o.ship_to_address1,
    o.ship_to_address5,
    o.customer_number,
    o.invoice_to_org_id,
    o.INVOICE_TO_LOCATION,
    o.SHIP_TO_LOCATION,
    o.invoice_to_address1,
    o.invoice_to_address5,
    o.sold_to_contact
    from oe_order_headers_v o,
    hz_parties hzp
    where hzp.party_name = o.sold_to
    and o.header_id = p_header_id;
    IF l_block_name IN ('ORDER') THEN
    IF p_event = 'WHEN-NEW-RECORD-INSTANCE' THEN
    open c_order(name_in('global.header_id'));
    loop
         fetch c_order into x_order_row;
    exit when c_order%notfound;
         copy(x_order_row.customer_number,'ORDER.CUSTOMER_NUMBER');
         copy(x_order_row.sold_to,'ORDER.SOLD_TO');
    copy(x_order_row.ship_to_org_id,'ORDER.SHIP_TO_ORG_ID');
    copy(x_order_row.SHIP_TO_LOCATION,'ORDER.SHIP_TO_LOCATION');
         copy(x_order_row.ship_to_address5,'ORDER.SHIP_TO_ADDRESS5');
    copy(x_order_row.ship_to_address1,'ORDER.SHIP_TO_ADDRESS1');
    copy(x_order_row.ship_to_address1,'ORDER.SHIP_TO_ADDRESS1_MIR2');
         copy(x_order_row.invoice_to_org_id,'ORDER.INVOICE_TO_ORG_ID');
         copy(x_order_row.invoice_TO_LOCATION,'ORDER.INVOICE_TO_LOCATION');
         copy(x_order_row.invoice_to_address5,'ORDER.INVOICE_TO_ADDRESS5');
    copy(x_order_row.invoice_to_address1,'ORDER.INVOICE_TO_ADDRESS1');
    copy(x_order_row.INVOICE_TO_LOCATION,'ADDRESSES.INVOICE_TO_LOCATION');
         copy(x_order_row.order_type,'ORDER.ORDER_TYPE');
         copy(x_order_row.sold_to_contact,'ORDER.SOLD_TO_CONTACT');
         copy(x_order_row.ship_from,'ORDER.SHIP_FROM');
    end loop;
    close c_order;
    end if;
    end if;

    Review Note: 302613.1 - OEXOEORD: Cannot select List of Values From The Ship To Address1 Field
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=302613.1

  • Invalid Report File Path Error

    I have included several Crystal Reports as embedded resources in a Visual Studio 2010 C# project.  When I try to run the application on a client PC I receive an invalid report file path error.  Why am I receiving this error if the rpt is embedded in the manifest?

    The following code now works on my development machine.  It obtains the server name and database name from the configuration file.  When I run on my client PC, however, it prompts me to log into the database.  It provides the correct server name but the database name is blank and integrated security is not checked.  The database name field is not enabled so I cannot provide a value.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine; //jp
    using CrystalDecisions.Shared; //jp
    namespace WindowsFormsApplication1
        public partial class FormRptArtist : Form
            private CrystalReport1 crReportDocument = new CrystalReport1();
            public FormRptArtist()
                InitializeComponent();
                ToolTip toolTip = new ToolTip(); toolTip.SetToolTip(btnHelp, "Flash Video Training / Help");
                helpProvider1.HelpNamespace = GlobalClass.gb_help;
            private void FormRptArtist_Load(object sender, EventArgs e)
                TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
                TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
                ConnectionInfo crConnectionInfo = new ConnectionInfo();
                Tables CrTables;
                bool repeat = true;
                while (repeat)
                    try
                        crConnectionInfo.ServerName = Properties.Settings.Default.CrystalServer;
                        crConnectionInfo.DatabaseName = Properties.Settings.Default.CrystalDatabase;
                        crConnectionInfo.IntegratedSecurity = true;
                        CrTables = crReportDocument.Database.Tables;
                        foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)
                            crtableLogoninfo = CrTable.LogOnInfo;
                            crtableLogoninfo.ConnectionInfo = crConnectionInfo;
                            CrTable.ApplyLogOnInfo(crtableLogoninfo);
                        crystalReportViewer1.ReportSource = crReportDocument;
                        crystalReportViewer1.Refresh();
                        break;
                    catch (Exception exp)
                        MessageBox.Show(exp.Message);
                        DialogResult result1 = MessageBox.Show("Try Again?", "Database Connection Error",
                            MessageBoxButtons.RetryCancel);
                        if (result1 == DialogResult.Retry)
                            FormCrystalParms newWindow = new FormCrystalParms();
                            newWindow.ShowDialog();
                        else
                            repeat = false;
            private void CrystalReport11_InitReport(object sender, EventArgs e)
            private void btnHelp_Click(object sender, EventArgs e)
                GlobalClass.displayflashhelp(this, "formrptartist");     
            private void crystalReportViewer1_Load(object sender, EventArgs e)

  • Invalid Report File - Embedded Report - VS2010 C#

    I'm trying to implement Crystal Reports in my first c# application.  I've created the report.  It is set an embedded report.  I'm calling crReportDocument.loadd("reportname.rpt:).  When I call the report, I'm getting an error message that states "Invalid report file path." 
    I have also tried using application.startupPath + "
    reportname.rpt", trying to define my report.
    Sort of stuck here.
    Any Suggestions?

    Hi Billy,
    Where are you seeing this error? On your development machine while testing your application in debug mode? Or are you seeing the error after deploying the application. Also, when you say the report was embedded do you mean that you added your RPT file to the project?
    If you're seeing the error on your development machine look at your project through Windows explorer. The physical report may actually be in a sub folder in your project - like the debug folder. After confirming where the report is adjust the file path accordingly.
    If you're seeing the error after deploying your application double check that the physical report file was deployed also. This is often overlooked.
    Sincerely,
    Dan Kelleher

  • Invalid report file path.

    I have a .NET C# Web App with embedded Crystal Reports (version 10.2.3600) running on Windows Server 2003 Standard Edition (Service Pack 2). Every few days the reports generate errors and we have to restart IIS to get them to run again. I cannot figure out what is causing the system to lock up. The error I am getting is 'Invalid report file path.' Do you know what would cause this to happen?

    this is the C# code we used to fix this issue:
    private ReportDocument CrystalRpt;
        //Declaring these here and disposing in the Page_Unload event was the key.  Then the only other issue was the
        // limitations of Crystal 11 and simultaneous access to the rpt file.  I make a temp copy of the file and use that in the
        // method.  Then I delete the temp file in the unload event.
        private ReportDocument mySubRepDoc;
        private ReportClass ReportObject;
        private string tmpReportName;
        protected void Page_UnLoad(object sender, EventArgs e)
    Try
                CrystalReportViewer1.Dispose();
                CrystalReportViewer1 = null;
                CrystalRpt.Close();
                CrystalRpt.Dispose();
                CrystalRpt = null;
                mySubRepDoc.Close();
                mySubRepDoc.Dispose();
                mySubRepDoc = null;
                ReportObject.Close();
                ReportObject.Dispose();
                ReportObject = null;
                GC.Collect();
                File.Delete(tmpReportName);
    catch
    { ...Error Handler }
    protected void Page_Load(object sender, EventArgs e)
            CrystalRpt = new ReportDocument();
            ConnectionInfo CrystalConn = new ConnectionInfo();
            TableLogOnInfo tblLogonInfo = new TableLogOnInfo();
            ReportObject = new ReportClass();
            TableLogOnInfo CrystalLogonInfo = new TableLogOnInfo();
            ParameterField CrystalParameter = new ParameterField();
            ParameterFields CrystalParameters = new ParameterFields();
            ParameterDiscreteValue CrystalParameterDV = new ParameterDiscreteValue();
            TableLogOnInfo ConInfo = new TableLogOnInfo();
            SubreportObject mySubReportObject;
            mySubRepDoc = new ReportDocument();
            //Report name is sent in querystring.
            string ReportName = Request.QueryString["ReportName"];
            // I did this because Crystal 11 only supports 3 simultaneous users accessing the report and 
            // we have up to 60 at any time.  This copies the actual rpt file to a temp rpt file.  The temp rpt
            // file is used and then is deleted in the Page_Unload event
            Random MyRandomNumber = new Random();
            tmpReportName = ReportName.Replace(".rpt", "").Replace(".ltr", "") + MyRandomNumber.Next().ToString() +".rpt";
            File.Copy(ReportName, tmpReportName, true);
            CrystalRpt.Load(tmpReportName);

Maybe you are looking for

  • File Upload PJC questions

    File Upload PJC I have installed the File Upload PJC demo & got it working. We are using Forms 6i patch 8 with servlet configuration, iAS 1.0.2.2.1 on Win 2000, Oracle 8.173 We want to upload/download files to the server & save them as BFILES in the

  • Creating VOFM New routine

    Hi Experts, I need to create new copy conrol routine in Data tranfer for copying over the Contract Start date and End Date since currently there is no copy routine assigned for Table VEDA. How to get this table in routine, becasue there is no existin

  • JDK/JRE Certificate expired

    Just a heads up for anyone running into trouble with signing/encryption today. The root cert in the JRE expired yesterday (January 7th, 2004): http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsalert%2F57436 Mike

  • SAP Implementation on Unix

    Dear All We are planning to implement SAP ECC System. I have two questions as below : 1. Which OS I have to select and why ? what is advantage or disadvantage ?                    a) Window                    b) Unix (HP/AIX/Solaris)                 

  • Bridge CC Update Error 49

    I get this error trying to update from Adobe CC Desktop..?