Report fails once it is exported

I am using crystal reports that come with visual studio 2008 and i also tested with visual studio 2005.
I have a report and i can view any number of reports but when i export the report as pdf or any other format.The next report fails. Is there a solution to address this problem . I am just using the crystal reports viewer to show the report.
This is a windows application hence i am using the reportviewer that comes with the visual studio to show the report and using the menubar button to export the report.

Hi Manoj,
It seems that you are having issue through Custom .Net application.
I would suggest you to post your question here:
[.NET Development - Crystal Reports Forum|https://www.sdn.sap.com/irj/sdn/businessobjects-sdk-forum]
What exactly error message are you getting?
Regards,
Shweta

Similar Messages

  • My Report Fails once it is exported

    I am using crystal reports that come with visual studio 2008 and i also tested with visual studio 2005.
    I have a report and i can view any number of reports but when i export the report as pdf or any other format.The next report fails. Is there a solution to address this problem . I am just using the crystal reports viewer to show the report.
    This is a windows application hence i am using the reportviewer that comes with the visual studio to show the report and using the menubar button to export the report.
    The error i get is simple "LOAD REPORT FAILED"
    Any Help???????????

    Hello,
    I think the problem is once you are finished with the report you need to close and dispose your report object. I copied your code into VB .NET and I think I have most of it but not sure.
    Which Viewer are you using? In your references are you using CrystalDecisions.Windows.Forms or did you try using the crviewer.dll?
            Dim cr As New ReportDocument
            Dim crtableLogoninfos As New TableLogOnInfos
            Dim crtableLogoninfo As New TableLogOnInfo '
            Dim crConnectionInfo As New ConnectionInfo
            Dim CrTables As Tables
            Dim CrTable As Table
            cr.Load(pRptName)
            'Get database connection info
            With crConnectionInfo.ServerName = My.Settings.ConnectionString.Split(";")(0).Split("=")(1)
                .DatabaseName = My.Settings.ConnectionString.Split(";")(1).Split("=")(1)
                .UserID = My.Settings.ConnectionString.Split(";")(3).Split("=")(1)
                .Password = My.Settings.ConnectionString.Split(";")(4).Split("=")(1)
            End With
            'Set database connection for all tables in report
            CrTables = cr.Database.Tables
            For Each CrTable In CrTables
                crtableLogoninfo = CrTable.LogOnInfo
                crtableLogoninfo.ConnectionInfo = crConnectionInfo
                CrTable.ApplyLogOnInfo(crtableLogoninfo)
            Next
            ' Loop through each section and find report objects
            Dim crReportobjects As ReportObjects, crSubReportobject As SubreportObject, subReportDocument As ReportDocument
            Dim crDatabase As Database
            Dim crSections As Sections = cr.ReportDefinition.Sections
            For Each crSection As Section In crSections
                crReportobjects = crSection.ReportObjects
                For Each crReportobject As ReportObject In crReportobjects
                    If crReportobject.Kind = ReportObjectKind.SubreportObject Then
                        ' If a subreport is found cast as subreportobject
                        crSubReportobject = CType(crReportobject, SubreportObject)
                        'Open the sub report
                        subReportDocument = crSubReportobject.OpenSubreport(crSubReportobject.SubreportName)
                        crDatabase = subReportDocument.Database
                        CrTables = crDatabase.Tables
                        ' Loop through each table in the sub report and set the connection info
                        For Each CrTable In CrTables
                            crtableLogoninfo = CrTable.LogOnInfo
                            crtableLogoninfo.ConnectionInfo = crConnectionInfo
                            CrTable.ApplyLogOnInfo(crtableLogoninfo)
                        Next
                    End If
                Next
            Next
            If Not chkSelectClient.Checked Then
                'Show all invoices
                cr.RecordSelectionFormula = "{Invoices.invoice_date} in {?StartDate} to {?EndDate} and {Subject_Names.primary_name} and {Clients.billing_cycle} = {?Filter_BillingCycle}"
            Else 'Invoice Number report parameter cr.SetParameterValue("Filter_InvoiceNumber", Me.cboInvoices.Text.Trim)
                cr.RecordSelectionFormula = "{Subject_Names.primary_name} and {Invoices.invoice_number} = {?Filter_InvoiceNumber} and {Clients.billing_cycle} = {?Filter_BillingCycle}"
            End If
            'Set report parameters
            cr.SetParameterValue("StartDate", Me.dtpStart.Value)
            cr.SetParameterValue("EndDate", Me.dtpEnd.Value)
            cr.SetParameterValue("Filter_BillingCycle", I If(Me.optMonthly.Checked, "Monthly", "Weekly"))
            cr.SetParameterValue("location_id", Me.locationNameComboBox.SelectedValue cr.SetParameterValue("Billing_Contact", Billing_Contact.ToString())
            'Show report
            With CrystalReportViewer1
                .ReportSource = cr
                .Zoom(100)
                .DisplayGroupTree = False
                .Visible = True
                .Refresh()
            End With
        End Sub
    Thank you
    Don

  • Vista/Adobe 9/sql image Error in Crystal Report:Failed to Export the Report

    When I try to export my Crystal Report (v2008) from a Vista machine (using Crystal RDC export methods) as a PDF, I get the following error:
    Error in Crystal Report:  Failed to export the report.
    This only happens when a particular subreport (that contains a sql image) prints (based on an input parameter).  We have other subreports (within this same report) that print a sql image just fine.  But, when this subreport prints, the above error appears.
    I can run the same report on an XP machine without error.
    Exportmodeller.dll and crtsv.dll are both installed and registered to the
    C:\Program Files\Common Files\Business Objects\3.0\bin folder
    I have tried opening the report, removing the image, and then adding it back in again to the subreport.
    Still receive the same error.
    Any suggestions?

    >
    Don Williams wrote:
    > RDC is no longer shipped in CR 2008. You are using the embedded designer used within the Visual Studio .NET IDE and is not licensed for distribution.
    >
    > Upgrade to the .NET components and post your question to the .NET forums.
    >
    > Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.
    Don,
    Can you please clarify?
    Our VB6 app that uses Crystal XI RDC runtime components.  Our Crystal reports are edited in CR2008 SP1 developer edition (not through the VB.NET embedded report designer).  We have deployed the CRXIRelease 2 runtime components (via the merge module) to our client machines in order to execute the RDC.
    We can print/preview/export to excel, but the pdf creation is failing with this error.
    We are only using the RDC (which we know is no longer supported) because of huge issues with the Crystal for .NET methods we are having with our customers (I have an active case for this issue).  Therefore, we have to rollback our .NET product and revert to the RDC code. 
    Vista is failing to create a PDF for a report developed in the CR2008 SP1 developer edition when using the RDC.
    When you say  "Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.", what do you mean by "will not work in CR2008"?
    Thank you

  • Attempted to read or write protected memory followed by Load Report Failed

    After running OK for some time ASP.NET web application (VS 2008 .NET 3.5 with Crystal Reports included) running on MS WIN 2003 R2, SP2) will throw error when trying to create PDF crystal report. Error reads as follow:
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt. -    at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Close()     at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.InternalClose(Boolean bSetupForNextReport, Boolean bAutoClose)     at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Dispose(Boolean bDisposeManaged)     at System.ComponentModel.Component.Dispose()     at CrystalDecisions.CrystalReports.Engine.ReportDocument.InternalClose(Boolean bSetupForNextReport)     at CrystalDecisions.CrystalReports.Engine.ReportDocument.Close()
    After that every consecutive attempt to create another PDF crystal report will fail with fallowing error:
    Load report failed. -    at ... at System.Web.UI.WebControls.Button.OnClick(EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Once Application pool is recycled, error goes away but comes back after while. It seems that recently the uptime is getting shorter.
    Anyone had similar experience, posible solution?
    Thanks in advance,
    Miro

    Hi Miro,
    Clean Temp folder of that machine.
    For testing export report to PDF format from designer do you face any issue?
    Try to export the report with following line of code :
            CrystalDecisions.CrystalReports.Engine.ReportDocument boReportDocument;
            CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument reportClientDoc;
            boReportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
            boReportDocument.Load(Server.MapPath("FinalActivityRpt.rpt"));
            reportClientDoc = boReportDocument.ReportClientDocument;
            boReportDocument.SetDatabaseLogon("sa", "sa");
            CrystalReportViewer1.ReportSource = boReportDocument;
            ExportOptions exportOptions = new ExportOptions();
            exportOptions.ExportFormatType = CrReportExportFormatEnum.crReportExportFormatPDF;
            PDFExportFormatOptions pdfOptions = new PDFExportFormatOptions();
            pdfOptions.StartPageNumber = 1;
            pdfOptions.EndPageNumber = 3;
            exportOptions.FormatOptions = pdfOptions;
            Response.AddHeader("Content-Disposition", "filename=" + "untiteled" + ".pdf");
            Response.ContentType = "application/pdf";
            Response.BinaryWrite((Byte[])reportClientDoc.ReportSource.Export(exportOptions, new         RequestContext()));
            Response.End();
    Regards,
    Shweta

  • Report failing with error

    Hi All,
    Application R12.1.3 with Shared Application Tier 2 nodes
    Database : 11g R 11.2.0.2 with RAC 2 nodes with ASM
    We have a concurrent program which gets fired when submitted thru API . For each order program is run once . If there are more orders it will run n number of times . At this time one request is failing with error
    REP-0004:
    REP-0069:
    REP-57054:
    But for the same failed request when we run separately(with same parameters) it is completing Normal . There is no other error in Manager Logs.
    please help what can be the issue.
    thanks
    Mapps

    Please see the following docs/links.
    Concurrent Processing - Concurrent Reports Failing With Errors REP-0004,REP-0082 and REP-0104 [ID 844976.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=REP-0004+AND+REP-0069+AND+REP-57054&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    If the links did not help, please enable trace/debug and see if you get more details about the error and post the contents of the log file then -- How Can Trace and Debug Be Turned On For A Concurrent Request? [ID 759389.1]
    Thanks,
    Hussein

  • Crystal Reports 10 Enterprise Server Issue - Exporting Large Reports to PDF

    Weu2019re implementing a Crystal Reports 10 Server for a customer but weu2019re having an issue with exporting large reports to PDF.  The report size that starts to show this issue is roughly 300 pages with 20 records per page.  We use the default Crystal ActiveX viewer. 
    Basically what happens is that the user will launch the report in the ActiveX viewer and the large report will take a while to load, as much as 3 to 4 minutes.  The user may then wish to export to PDF.  Once they attempt it with these large reports the viewer will basically hang and possibly be processing but will then time-out after roughly 5 minutes with this error:
    u201CProxy Error
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request POST /thinqreports/THINQCrystalInterface.asp.
    Reason: Error reading from remote server
    IBM_HTTP_Server/6.1.0.9 Apache/2.0.47 (Unix) Server at lmsproxy.aurora.org Port 443u201D
    We believe this error is coming from a server on our network.  We have a proxy server between users and the Crystal Server that has a 5 minute time-out for connections.  What we want to know is:
    - Is there a way to speed up this export to PDF process?
    - Should the Crystal Viewer be keeping an http connection alive to the Crystal Report Server while its doing this export process?
    - If not, what port does Crystal Viewer use to communicate with the Crystal Report Server? 
    - Is there something we can set in Crystal to keep an http connection open? 
    - What is actually occurring during this export process? 
    Occasionally, we may get the above error when simply launching a report, not just attempting to export to PDF.  We presume that is because loading the report into the Crystal Viewer from the Crystal Report Server is taking longer than 5 min.
    Anyone have any thoughts?  Thanks.
    Scott

    Scott,
    As this is happening within Enteprise (and I am assuming the report does not time out in the Crystal Reports Designer) I would suggest posting this to the BusinessObjects Enterprise Administration
    forum.
    My limited Enterprise knowledge would be to suggest scheduling the report as PDF but I don't know if that is a viable option for you.

  • Scheduled Report Failing - Don't Know Why

    I'm trying to re-create a scheduled report on CMC that had gotten deleted. It ran before (sometimes multiple times...) but at least it ran. I'm duplicating all the settings for this report based on how they were before, but every time I try to get the report to run, it fails.
    I don't know enough about this to be able to embed any kind of error messages in the e-mail notifications we get. All I know is that no matter what I change/tweak/adjust, we get an email saying "This report has failed to run."
    What kinds of things should I be looking at to troubleshoot? I know the report itself is fine, as users can view it normally (as in, through other viewers). There's definitely something specific to the scheduling process that is not correct, but I don't know what to look at.
    Here is how the scheduling is currently configured:
    Schedule > Main Tab
    -Run Weekly, Tues - Sat
    -Start Date: 10/01/08, 8:30 AM (I originally set this up yesterday, so today at 8:30 should have been the first time it ran, but instead it failed)
    -End Date: 10/01/18, 12:00 AM
    -Number of retries allowed: 0
    -Retry interval in seconds: 1800
    Schedule > Notification
    -Email notification based on: a job has failed to run
    -Message: Report failed to run. Scheduled Report: %SI_NAME% - %SI_STARTTIME% What other codes can we put in this message, BTW? I've been trying to look for something to return error codes, but %SI_OUTCOME%, %SI_STATUSINFO%, and %SI_ALERT_MESSAGE% don't display anything, they just print on the email
    Schedule > Destination
    -Destination: Email (SMTP)
    -Clean up instance after scheduling is checked
    -We have "Set the values to be used at schedule time here:" populated with our list of email addresses for recipients
    -Attach object instance to email message is checked
    -Specified file name: %SI_NAME%%SI_STARTTIME%.%EXT%
    -Add extension is checked
    Schedule > Format
    -Format: Microsoft Excel (Still fails if we choose Excel Data Only or Adobe Acrobat)
    -Use options saved with report is checked (Still fails if we deselect this)
    Schedule > Schedule For
    -Schedule only for myself.
    Could really use some help here, as I don't know what in the world could be causing this to fail. Thanks in advance.

    First thing is to forget all the complex configs and just try to schedule the report to run once now, no alerts, no notifications, no nothing.
    Does that work?
    Then you can build up the schedule, to see where the problem is coming from.
    Sincerely,
    Ted Ueda

  • Can't print more than 75 reports... Load report failed

    Hi,
    I have a problem: I can't print more than 75 reports without restarting my application.
    I'm using VB, Visual Studio 2005 and Crystal Reports Developer XI Release 2.
    It's a windows application.
    In the following examples I'm exporting to pdf but the same hapens if I put it on a viewer.
    I tried to do some tests to find out the problem. I don't have a solution yet
    Test 1:
    I made a cycle printing 100 times the same report. I used the code from an example that was in the BusinessObjects website and just put it into a cycle. At 75 I get the error "Load Report Failed"
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
    Dim ExportFolder As String = Application.StartupPath + "\export"
    If Not IO.Directory.Exists(ExportFolder) Then
    IO.Directory.CreateDirectory(ExportFolder)
    End If
    For i As Integer = 1 To 100
    Dim crReportDocument As ReportDocument
    Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
    ''The path/location where the exported file will be saved
    Dim exportFilePath As String = ExportFolder + "\exported" & i & ".pdf"
    ''Create an instance of the Chart report
    crReportDocument = New Chart()
    ''Set the options for saving the exported file to disk
    crDiskFileDestinationOptions = New DiskFileDestinationOptions()
    crDiskFileDestinationOptions.DiskFileName = exportFilePath
    crReportDocument.ExportOptions.DestinationOptions = crDiskFileDestinationOptions
    crReportDocument.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
    crReportDocument.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
    ''Export the report
    crReportDocument.Export()
    Next
    Test 2:
    I try to insert a "crReportDocument.Dispose() after the Export. It takes more than 1 minute doing the dispose and lots of time processing the 2nd report (more than 2 minutes)
    Dim ExportFolder As String = Application.StartupPath + "\export"
    If Not IO.Directory.Exists(ExportFolder) Then
    IO.Directory.CreateDirectory(ExportFolder)
    End If
    For i As Integer = 1 To 100
    Dim crReportDocument As ReportDocument
    Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
    ''The path/location where the exported file will be saved
    Dim exportFilePath As String = ExportFolder + "\exported" & i & ".pdf"
    ''Create an instance of the Chart report
    crReportDocument = New Chart()
    ''Set the options for saving the exported file to disk
    crDiskFileDestinationOptions = New DiskFileDestinationOptions()
    crDiskFileDestinationOptions.DiskFileName = exportFilePath
    crReportDocument.ExportOptions.DestinationOptions = crDiskFileDestinationOptions
    crReportDocument.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
    crReportDocument.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
    ''Export the report
    crReportDocument.Export()
    ' Dispose
    crReportDocument.Dispose()
    Next
    Test 3
    Same as Test3 but with ReportDocument.Close() before the dispose.
    Still doesn't work, Close takes too long, just like Dispose...
    Test 4
    I tried using a global variable with the ReportDocument.
    Instead of creating new instances of the ReportDocument, I keep using the same.
    It works fine if I use always the same report file, but if I try to print 2 different reports the 2nd returns the error "Load Report Failed" and takes too long loading before the error.
    Well, I made some researches on internet and I foud this, but still doesn't work with me, because Dispose always takes too long... 
    http://www.arquitecturadesoftware.org/blogs/hugobatista/archive/2006/02/22/236.aspx
    http://www.arquitecturadesoftware.org/blogs/hugobatista/archive/2006/05/23/328.aspx
    http://www.arquitecturadesoftware.org/blogs/hugobatista/archive/2007/04/05/CrystalReportsMemoryLeakFixByJerryCote.aspx
    Can anybody help?
    Thanks
    Isabel
    Edited by: Isabel Cabral on Aug 12, 2008 8:12 PM

    Already tried that, then I get another problem...
    After exporting the first report, takes 1 or 2 minutes doing the Close and the Dispose, and after that it takes too long trying to load the next report (after 1 hour I give up!).
    This is the code I'm using to do the tests:
            'Create the export folder
            Dim ExportFolder As String = Application.StartupPath + "\export"
            If Not IO.Directory.Exists(ExportFolder) Then
                IO.Directory.CreateDirectory(ExportFolder)
            End If
            For i As Integer = 1 To 100
                Dim crReportDocument As ReportDocument
                Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
                ''The path/location where the exported file will be saved
                Dim exportFilePath As String = ExportFolder + "\exported" & i & ".pdf"
                ''Create an instance of the Chart report
                crReportDocument = New Chart()
                ''Set the options for saving the exported file to disk
                crDiskFileDestinationOptions = New DiskFileDestinationOptions()
                crDiskFileDestinationOptions.DiskFileName = exportFilePath
                crReportDocument.ExportOptions.DestinationOptions = crDiskFileDestinationOptions
                crReportDocument.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
                crReportDocument.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
                ''Export the report
                crReportDocument.Export()
                'Close and dispose
                crReportDocument.Close()
                crReportDocument.Dispose()
            Next
    Thanks,
    Isabel

  • CR4VS2010 Load Report failed - COMException (0x800001f5): The Report App...

    Hello,
    My company recently decided to start using the 64 bit CR VS2010.  Several machines have installed it and are working correctly, but others get Load Report failed - COMException (0x800001f5): The Report Application Server failed error when trying to render a crystal report to a new application window.  This happens when running the app through VS2010 or IIS.
    Another issue, is that once CR4VS2010 is installed, the ability to check-out .rpt files through TFS no longer works.  CR4VS2010 will open the .rpt, but manual check-out is not allowed for some reason.
    Machines are running Vista 64 bit Ultimate, VS2010, Crystal XI R2 SP4, and TFS.
    So far I have tried re-installing VS2010 and CR4VS2010, but still get the same issues.
    All help is greatly appreciated.
    Thank you.

    Hello,
    Please one question per post, makes it a lot easier to follow. Post your TFS question in a new post.
    Use Process Monitor and compare logs between working and non-working PC's. Typically either missing dependencies or permission issues. Look for Access Denied errors.
    Thank you
    Don

  • Intermittent "Load Report Failed" error on IIS6 ASP 4.0

    I can run reports designed in Crystal 2011 and embedded in VS2010 designed web pages on a Windows 2003 SP2 server every day.  However, once every 2 - 3 days I get a "Load Report Failed - A document processed by the JRC engine cannot be opened in the C++ stack".  The first instance of this error causes all subsequent user access to Crystal Reports to fail with the same error.  When the ASP 4.0 application pool is recycled the error goes away.
    I was getting the "Load Report Failed" error due to "out of memory" I until made sure that the crystalreportviewer.dispose was run on exiting each report page. 
    Here is  how I run Crystal Reports:
       Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
            If Not IsPostBack Then
                Dim myAL As New Hashtable
                myAL.Add("MO1", Request.QueryString("MONum1"))
                myAL.Add("MO2", Request.QueryString("MONum1"))
                Dim filename As String = ""
                filename = Server.MapPath("~/reports") + "\MfgPicklistByMO.rpt"
                Dim u As New CrystalUtilities
                Session("crViewer") = u.SetupReport(filename, myAL)
            End If
            CrystalReportViewer1.ReportSource = Session("crViewer")
        End Sub
       Public Function SetupReport(ByVal fileName As String, _
                     ByVal Params As Hashtable, Optional ByVal dbParam As Boolean = True) As   CrystalDecisions.CrystalReports.Engine.ReportDocument
            Dim objCrystalReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            objCrystalReportDocument.Load(fileName)
    .... logs onto a selected database, and loads paramters

    I have installed CrystalReportViewer1.Dispose() statements on all of the link events to navigate out of the pages with the CrystalViewer.  However, it turns out that several users are using the back arrow to navigate out of the page instead of the navigation links I have put on the page.
    I can't seem to find any event in ASPNET 4 that fires when the back arrow is pushed.  If I could find such an event I could put a CrystalReportViewer1.dispose statement there assuming CrystalReportViewer1 still has scope.    The Page_Disposed event does not fire when the back arrow is pushed.
    Environment:  VS2010, Crystall 2011, ASPNET 4.0

  • Reproducible error when loading many reports (Load report failed - Not enough memory for operation)

    Environment:
    Win 7 SP 1
    Visual Studio Pro 2012 Update 4
    Crystal Reports for Visual Studios Service Pack 10 (13.0.10.1385)
    Report created in Crystal Reports XI Release 2 (11.5.8.826)
    Targeting x86 .NET 4.0
    Scenario:
    We have a program that runs and creates a large number of reports before the process is ended. When running after many hours we'd get a Load report failed/Not enough memory of operation exception. I kept removing code and found i could reproduce just using the report.Load call. I simplified the report to a completely blank report to make sure it was nothing specific to a report I was loading. (Opened Crystal Reports XI Release 2, Save As, "Blank.rpt".). I then created, loaded, and disposed of this report in a loop. I was able to cause the same exception after 32,764 iterations on my machine. I also tried using .NET 3.5 same result. I added a counter to our main program and it also went through 32,764 report loads before the same exception was thrown. Main program uses 15 or so different reports with a variable number of subreports in each.
    Sample Code to illustrate the problem:
    I did this as a WinForms project since our main program is using winforms.
    References added:
    CrystalDecisions.CrystalReports.Engine
    CrystalDecisions.ReportSource
    CrystalDecisions.Shared
    CrystalDecisions.Windows.Forms
    using System;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    namespace CrystalTest
        public partial class Form1 : Form
            public Form1()
                InitializeComponent();
                int i = 0;
                try
                    while (true)
                        i++;
                        ReportDocument report = new ReportDocument();
                        report.Load("Blank.rpt");
                        report.Close();
                        report.Dispose();
                catch(Exception ex)
                    MessageBox.Show(i.ToString() + ex.Message);
    Exception:
    CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80041004):
    Not enough memory for operation.
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       at CrystalTest.Form1..ctor() in c:\Test Projects\CrystalTest\CrystalTest\Form1.cs:line 27

    int = Int32. No it's not the "counter" that's causing the problem. The max size of an int32 is far far larger than 32764.
    I am disposing and cleaning up the datasets in the main app. That is why I didn't include them in this test; they aren't relevant.
    I'm unsure why this test program is completely irrelevant. It throws the same exception, at the same count, as the main program. It does it in substantially less lines of code than our main program. I spent days running long tests to figure out exactly what I needed to make the problem appear so I could post a clean and precise post on these forums. I then created the test program to illustrate that.
    The "real" code as I said does stuff in sections and in a certain order.
    For each report I need to export based on rows in a table
    1. Creates a new Report Document
    2. Loads the report document with the report
    3. Creates a dataset of the data to display
    4. Calls SetDataSource
    5. Calls Report.ExportToDisk
    6. Disposes DataSets
    7. Closes/Disposes Reports
    To help isolate the problem I first took out the export to disk part (Step 5). The problem still occurred. I then took out everything related to our data. (Step 3, Step 4, Step 6). The problem still occurred. And yes I commented out this code in our main real program. This left me with:
    1. Creates a new Report Document
    2. Loads the report document with the report
    7. Closes/Disposes Reports
    At this point i had to prove it was not dependent on the report. This makes sure it's not a database connection, or pulling too much data into the report. The most efficient test for this is a blank report.
    So my order of operations becomes...
    1. Creates a new Report Document
    2. Loads the report document with a blank report
    7. Closes/Disposes Reports
    So you'll see this is exactly why I wrote this test the way that I did.
    I've had a run where it error on iteration 32761. My last runs have errored on 32764. I have had many runs over many weeks that all error with the same exception.
    There are no temp files left behind, With a test running you can see the temp files being added but they are immediately removed.

  • Scheduling a Deski report fails with error message: "Failed to get property

    Hi,
    We have created few Desktop Intelligence report. Now when these report are schedules to be refreshed weekly (on Sunday), it fails with the following error message:
    "Failed to Get Property"
    Have tried to refresh the reports manually in Full Client too but the report fails there too.
    Have checked for the connection information. The servers are up and running.
    Have tried to re-create the connection and even tried to re-import and export the Universe.
    If we rename the report and save it and export, it works fine. Can not try this workaround as have more that 500 reports.
    Please suggest.
    regards,

    Hi Maria,
    usually the message "Failed to Get Property" is followed by an item name such as SI_FILE, or SI_VARIABLE, or SI_USE_ORIGINALDS, and so on.
    Could you please specify as much information coming from the error message as you can?
    Furthermore, is this issue happening with any Desktop Intelligence reports you schedule?
    Are the reports using the same Universe?
    Which DB are you using?
    Regards,
    Samanta F.

  • Load Report Failed error sporadically shows up

    Hi all,
    I have written an asp.net web site (CR2008 sp2.5, .net3.5, VS2008, vb.net running on winServ2003 hitting an Oracle 10g database) that does nothing but dish out reports for users.  I built in the asp.net member/role security, which works fine, and different sections have a "frmReportViewer.aspx" file that has a crystal report viewer control in it. 
    Based on a querystring parameter, the report will load the correct rpt to the control on the page.
    here's the problem.:   sometimes when loading a report, it instantly comes back with "LOAD REPORT FAILED".  Sometimes, you can close the window, click the link again, and it will work fine.   Sometimes, if the report does load, then if i try to drill down into a group, it will tell me "no valid report source is available" in a little ajax-style dialog box in the report.
    My main question is....why does this work sometimes?  this instability will make this project go down the tubes (along with my job perhaps)....I showed my company what CAN be done, now i need to make it RUN LIKE IT SHOULD!
    THANKS IN ADVANCE!
    GEORGE
    Edited by: george hardy on Mar 25, 2010 7:58 PM

    Make sure you are disposing and closing the report object;
    repdoc.close
    repdoc.dispose
    once you are done with it.
    Also, search the kbase for the error:
    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
    Kbases / Notes 1218766, 1217643 would be a sampling of what you'll find there.
    From your description, it is not clear if this occurs under heavier loads. If it is, increasing the allowed print job count may help. For more details see [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f053713e-3e3d-2c10-2a81-f79259e54023] article.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Load report failed - COMException (0x8000020D)

    I have a windows application project (C# and .NET 2.0) that used Crystal Report 2008.  But I get error sometimes (it seems accidentally) in loading report on end user's machine. That error is:
    CrystalDecisions.Shared.CrystalReportsException: Load report failed.
    System.Runtime.InteropServices.COMException (0x8000020D): Unable to load report.
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
    at SIA.DataTransfer.Forms.frmReport.GetStateReport(Int32 transferType)
    I'm sure report path is correct
    please guide me. How can I solve this problem?

    There are a few basic reasons you'd get the error:
    1) App is asked to load the report from a faulty location
    2) There is a read permissions issue on the folder the report is in
    3) There is a read write permission issue on the temp folder
    4) The app is not cleaning up the report object
    5) A dll (such as a ufl) can not be loaded
    It is critical that your original description is accurate:
    "I get error sometimes (it seems accidentally) in loading report on end user's machine."
    If that is the case (and I assume you meant you get the error on occassion, or after the app has been running for a while(?)), 1 to 3 above should not be in play.
    Two questions:
    What is the version of the assembly crystaldecisions.crystalreports.engine.dll referenced in your project?
    Did you run procmon and did it show you anything?
    Suggestions:
    Use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility to compare the dlls loading on your development and on the user computer. Since this works on your dev computer, check for dll differences.
    Ensure you are using .Close and .Dispose once you are done with each report object.
    See if the Event Viewer shows any messages
    Ludek

  • 'Load report failed' msg reported by CrystalDecisions.CrystalReports.Engine

    Dear member,
    We are using Crystal Report viewer (Version 11.5) from our Web based product on Windows Server 2003.
    Sometime when we run the report generating application we get the error message 'Load report failed'.
    So far, we don't find any problem in our product.
    Has someone experienced a similar problem?
    How did you solve the issue?
    Thanks and best regards,
    Makoto
    Below are the error messages detail logged on event logs.
    Event Type:     Error
    Event Source:     AvantGard eTreasury
    Event Category:     None
    Event ID:     140
    Date:          4/02/2011
    Time:          2:21:31 PM
    User:          N/A
    Computer:     JP0010SWFIN41
    Description:
    The description for Event ID ( 140 ) in Source ( AvantGard eTreasury ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Source: CrystalDecisions.CrystalReports.Engine
    Target: EnsureDocumentIsOpened
    Function: .Initialise
    Message: Load report failed..
    Event Type:     Error
    Event Source:     AvantGard eTreasury
    Event Category:     None
    Event ID:     140
    Date:          4/02/2011
    Time:          2:14:18 PM
    User:          N/A
    Computer:     JP0010SWFIN41
    Description:
    The description for Event ID ( 140 ) in Source ( AvantGard eTreasury ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Source: CrystalDecisions.CrystalReports.Engine
    Target: PEOpenEngineEx
    Function: .Initialise
    Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt..

    Make sure you are closing and disposing of the report object once you are finished with them.
    What Service Pack are you on?
    Thank you
    Don

Maybe you are looking for

  • How to implement Check box in the Rtf based on the value from XML datafield

    Hello All , It would be great if any one can help me in implementing check box in the rtf based on the data filed value from the XML data. I need to get in the out put checked boxes like what we say Radio button Yes or No ( If Yes it should be marked

  • Finished Installation..ERROR in starting the SERVER PLZZ HELP

    Hi, I could complete the installation of SAP WAS from the cd with host n keller successfully. But now when i make a set up and try to logon with the SAP GUI , It gives an error saying the host couldnt be find and in the meanwhile on ABAP ENGINE START

  • Why use Ctrl-A just to see properties of a movie clip

    I'm going through Todd Perkins' video tutorials for ActionScript 3.0 (very good, btw) and in Chapter 5 "Handling Mouse Clicks" there's a point where Todd says 'note that the movie clip in the animation layer, if I lock everything else except for the

  • Material Management/ Classification System

    Hello When I look materials by class and I display the materials but when I want to select two or more materials for copy, I get the following message: Message no. CL479 This application can only copy one object from the search result. Select one obj

  • Moving the row in the Iterator

    Hi I am using ADF Business component and UIX. I have a uix page that displays a Table and two buttons The buttons job is move a particilar row up or down . Here is the code for the move up button. int index = transaction.getCurrentRowIndexInRange()-1