Skip to Content
author's profile photo Former Member
Former Member

Load report failed

The error detailed below recently started happening in an application that has been stable for several years with Crystal Reports XI Release 2.

Ther error is intermittent and happens randomly on any of several hundred reports embedded in the C# .NET application. Once it happens the first time, all reports will then generate the same error and fail. The solution is to close the application and restart it. Then everything works fine until the next time the error happens later that day or the next day.

A possible trigger of this new situation is the fact that we recently upgraded all of our application terminal servers. Crystal Runtime (CrystalReports11_5_NET_2005.msi) is installed on the new servers.

Crystal Version: Business Objects - Crystal Reports XI Release 2

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()

at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)

at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet)

at MyApplication.btnPrintReport_Click(Object sender, EventArgs e)

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2009 at 01:34 AM

    Hi,

    Issue is on development environment or deployment environment?

    Clear the temp folder.

    The temp folder that stores the temp images of the reports might be full. If the size limit on the temp folder is reached (usually C:\Documents and Settings\<userName>\Local Settings\Temp) the report temp copy will not be copied there and the reportdocument.Load() will fail.

    Resolution

    Delete files from the folder and run the application again.

    Regards,

    Shweta

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 02, 2009 at 04:21 PM

    Hello,

    I believe you downloaded the patch for CR .NET which is included with Visual Studio .NET and not the updated runtime files for Service Pack 5.

    Use this link: https://smpdl.sap-ag.de/~sapidp/012002523100001088442009E/crxir2sp5_net_mm.zip

    There is no MSI so you'll have to build your own MSI from the merge modules.

    Or use this link to get the MSI:

    https://smpdl.sap-ag.de/~sapidp/012002523100001088482009E/crxir2sp5_server_install.zip

    Thank you

    Don

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      We have been in production with Crystal Reports 2008 for a week now. The number of errors has dropped down to the levels we experienced prior to the incident starting in February 2009. In other words, things appear to be normal.

      We're getting fewer than 100 "Failed to load report" errors per week (this is with a user base of ~5000 running probably 30,000 to 40,000 reports per week).

      I'd lke the number to be zero, but my guess is that this small number of errors is entirely related to overall system memory utilization spikes.

      Thanks to everybody for your help in troubleshooting this problem

  • author's profile photo Former Member
    Former Member
    Posted on Apr 23, 2009 at 04:51 PM

    i have a error like this, but i'm working whit vs2008, the file downloaded (msi) can be resolve my problem? or i need the msi for vs2008, and where i find it?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.