Report Load Error
After running 30-40 Crystal Reports we get a 'Report Load' error on the .Load() command. At this point we cannot run any of our 8 reports created with Crystal Reports. To resolve the issue we restart IIS and then the reports load and run without problem.
Recently we upgraded our project from .NET 1.1x, VS2003, CR 9.X to .NET 2.0, VS2005, CR 10.2. This intranet web site runs under IIS 6 on WS 2003. Prior to the upgrade we did not see this behavior.
To create the report we send Crystal Rerports a dataset and then output the report to a PDF. Any ideas on how we can resolve this issue?
Here is sample code for producing our reports:
<code>
Dim amortReportDocument As ReportDocument
Dim reportPath As String = Server.MapPath("./amort.rpt")
amortReportDocument = New ReportDocument
amortReportDocument.Load(reportPath)
amortReportDocument.SetDataSource(ds1)
Dim myExportOptions As CrystalDecisions.Shared.ExportOptions
Dim myDiskFileDestinationOptions As CrystalDecisions.Shared.DiskFileDestinationOptions
Dim myExportFile As String = FilePath & FileStamp & ".pdf"
myDiskFileDestinationOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions
myDiskFileDestinationOptions.DiskFileName = myExportFile
myExportOptions = amortReportDocument.ExportOptions myExportOptions.DestinationOptions = myDiskFileDestinationOptions
myExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
myExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
amortReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(myExportFile)
Response.Flush()
Response.Close()
Response.End()
amortReportDocument.Close()
amortReportDocument.Dispose()
We added the following to the page unload event:
Private Sub page_unload(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Unload
GC.Collect()
End Sub
</code>
Ok lets try this:
Right click on the temp folder (where the .rpt filed are getting created at runtime) -> properties.
go to Security tab.
click on Add.
enter (with out "") "IIS_WPG" in Object name window.
Click on Locations.
Select the machine name in the tree.
Ok.
Click on "Check names".
OK.
Give full control to it. (For testing purpose please ignore any warning signs).
OK.
Also please include the ReportDocumentObject.Close(), ReportDocumentObject.Dispose() and GC.Collect() in your page_upload event.
Does it help?
AG.
Similar Messages
-
Crystal Reports 2008 - Report Load error - Memory Leak Error?
Hello
<br>
We have a problem with Crystal Reports 2008 with .NET 2.0.
<br>
CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
<br>
The problem is that during high amount of report producing, errors in eventlog pops up and the production of reports using <br>
Crystal Reports stops.
<br>
Below are examples of the three most common event logs.
<br>
We have tried to implement a cleanup method both as a destructor (with a global ReportDocument rdoc variable) and using direct call to cleanUpDoc() method when finished with loading doc:
<br>
~IOServerClass()
<br>
<br>
cleanupDoc();
<br>
<br>
<br>
private void cleanupDoc()
<br>
<br>
try
<br>
<br>
if (rdoc != null)
<br>
<br>
rdoc.Close();
<br>
rdoc.Dispose();
<br>
rdoc = null;
<br>
<br>
this.CleanGlobalEvents();
<br>
System.GC.Collect();
<br>
<br>
<br>
<br>
The doc is loading using the "normal" method (in-process).
<br>
<br>
try
<br>
<br>
rdoc = new ReportDocument();
<br>
rdoc.Load(fullpathandreport);
<br>
<br>
catch (Exception ex)
<br>
<br>
cleanupDoc();
<br>
<br>
...process doc....
<br>
cleanupDoc();
<br>
<br>
Furthermore we have tried during Scalable tests of the system - but cannot produce the below errors ourselves. Only the customer can.
<br>
Please help with solving this problem.
Is the above advisable to do?
Should the document be loaded in another way?
Is it a memory leak?
<br>
Regards
Kristian
<br>
<br>
event logs:
<br>
<br>
#1
<br>
<br>
Event Type: Error
Event Category: None
Event ID: 1102
Date: 12-02-2010
Time: 10:22:05
User: N/A
Description:
IO_ServerClass.IO_ServerPrepareReportBeforeExecute() Report load Error:
Loading reportfile=C:\Inetpub\wwwroot\xxx\Reports\321.rpt
Source=CrystalDecisions.CrystalReports.Engine
Message=Load report failed.
Stacktrace= 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 xxx.IOServer2.IOServerClass.IO_ServerPrepareReportBeforeExecute(String
WebRootRelPathNameRepName, String init, Hashtable ParmsVals, Int32 JobId, Int32 JobStep,
Page webpage) in C:\Documents and Settings\xxx\My Documents\Visual Studio 2008\Projects\xxx.IOServer2\IOServerClassClassic.cs:line 290
InnerSource:Analysis Server
InnerMes:
Error in File 321 {19463E3B-D404-45EB-88AE-5722A7FF9E90}.rpt:
The request could not be submitted for background processing.
InnerStack:
at
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object&
DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object&
DocumentPath, Int32 Options)
at
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
<br>
<br>
#2
<br>
<br>
IO_ServerClass.IO_ServerPrepareReportBeforeExecute() Report load Error:
Loading reportfile=C:\Inetpub\wwwroot\xxx\Reports\321.rpt
Source=CrystalDecisions.CrystalReports.Engine
Message=Creating an instance of the COM
component with CLSID {D7F5D7C3-B06C-4CAC-BC47-A06E66D2EE9B} from the IClassFactory failed
due to the following error: 8007000e.
Stacktrace= at
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.CreateRptDoc()
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper..ctor()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Initialize()
at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
at Kimik.IOServer2.IOServerClass.IO_ServerPrepareReportBeforeExecute(String
WebRootRelPathNameRepName, String init, Hashtable ParmsVals, Int32 JobId, Int32 JobStep, Page webpage) in C:\Documents and Settings\xxx\My Documents\Visual Studio 2008\Projects\xxx.IOServer2\IOServerClassClassic.cs:line 289
<br>
#3
<br>
<br>
IO_ServerClass.IO_ServerPrepareReportBeforeExecute() Report load Error:
Loading reportfile=C:\Inetpub\wwwroot\xxx\reports\340.rpt
Source=CrystalDecisions.CrystalReports.Engine
Message=Load report failed.
Stacktrace= 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 Kimik.IOServer2.IOServerClass.IO_ServerPrepareReportBeforeExecute(String
WebRootRelPathNameRepName, String init, Hashtable ParmsVals, Int32 JobId, Int32 JobStep,
Page webpage) in C:\Documents and Settings\xxx\My Documents\Visual Studio 2008
\Projects\xxx.IOServer2\IOServerClassClassic.cs:line 290
InnerSource:CrystalDecisions.ReportAppServer.ClientDoc
InnerMes:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
InnerStack:
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object&
DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object&
DocumentPath, Int32 Options)
at
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
Edited by: kristians on Feb 16, 2010 2:57 PMHi;
First, ensure you have the latest service pack / hot fix for your version of Crystal Reports, and that the client has the same updates as well. Fix Pack 2.4 is the current latest, and can be downloaded from our downloads section.
One of the errors is the Background Processing error, so have a look at the following article:
http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/50a6f5e8-8164-2b10-7ca4-b5089df76b33&overridelayout=true
Regards,
Jonathan
Follow us on Twitter u2013 http://twitter.com/SAPCRNetSup -
Report.Load Error with ASP application
Hi,
I experienced a few instances where my the follow statement where my ASP application (using VS2005, CRXI-R2+SP4, Datasets and CR Viewer on the server) thows an error on my server (running Server 2003).
Dim Report As CrystalDecisions.CrystalReports.Engine.ReportDocument = _
New CrystalDecisions.CrystalReports.Engine.ReportDocument()
Try
Report.Load(Server.MapPath("~/Private/Event/WebEvent.rpt"))
Catch ex As Exception
JavaMessage("Report Not Found")
Exit Sub
End Try
I don't know what the exception is at this point. But something happens and the crystal reports in all my websites break uniformly. I need to restart IIS to get things back working. This has happended to me 3x now.
Any ideas?
Thanks,
EricHi,
As a best practice use Close() and Dispose() method also gc.Collect();
Check if this helps!!
Amit -
Experts,
I am getting the following error, while clicking on a button to load crystal report.
Could not load file or assembly
'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its
dependencies. The system cannot find the file specified.
I am running it through ard at client server, In my own machine it is running fine.
I have tried installing Crystal Report basic run time for VS 2008, still same. Please help.Any suggestions Experts?
-
I first tried downloading Safari when the 5.0 update came out last year. When I choose the app in the dock, I get the blue top bar (Safari, File, etc) but nothing else loads. I uninstalled the app and tried again several times, but no success. For over a year now I've used Firefox as a result. Today I thought I'd try again, but same results. When I choose "new window" in the file menu, I get a small gray window with my bookmarks on top, then in a few seconds, the app quits unexpectedly and the report an error screen appears. I've unchecked all the languages in the information area for the app, cleared all history, cookies, and cache. Still the extensions tab in the preferences area has "LOCALIZED STRING NOT FOUND" in 4 places. It won't show what that means when I click the "?". Will I ever be able to use Safari again?
Perform the suggestions mentioned in the following articles:
* [[Firefox is already running but is not responding]]
-> Profile in use
* [http://kb.mozillazine.org/Profile_in_use]
Check and tell if its working. -
Loading Crystal Report 2010 Error
When I try to install C# application that I created at the client's workstation, i am getting an error about not getting my report loaded. The application loads the report working in my development workstation, but when i installed in the other workstation, then it will not load the report. I have installed Visual Studio 2010 with CR 2010. I had created the reports with Crystal Report 2008, and want to migrate to VS2010.
Here's what I get from the client's workstation:
Method 'get_ReportRequestStatus' in type 'CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper' from assembly 'CrystalDecisions.CrystalReports.Engine, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' does not have an implementation.
I have all my CR *.dll referrenced to the latest one, but I am not sure if I am using the right *.dll.
Thanks for any input on this. It'll be greatly appreciate it.Correct, you are using the beta version of the runtime.
Search here on how to remove version 14 and use the RTM release version 13.
Thank you
Don -
"Load Report Failed" Error after upgrading to CR XI R2 and VS 2005
Previously I had visual studio 2003 and crystal report XI and on my website project and I have this function where users can download their monthly statement. and it was working fine. here is my code of the function...
Private Sub cmdStatement_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdStatement.Click
Dim pReport As New ReportDocument
pReport = New ReportDocument()
Try
'Dim pTable As Table
pReport.Load(Server.MapPath(".") & "\reports\MonthlyStatement.rpt")
pReport.SetDatabaseLogon(dbUser, dbPassword, dbServer, dbDatabase)
pReport.RecordSelectionFormula = "{CCMSC.CID}='" & mCID & "'"
Dim pArray() As String =
DataAccess.SqlPublic.ExecuteDataset(cnString, "webDownloadEStatement", pArray)
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
pReport.ExportToHttpResponse(CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat, Response, True, "DebtHelper_" & mCID & "_MonthlyStatement")
pReport.Dispose()
Catch ex As Exception
divMessage.Visible = True
lblMessage.Text = ex.Message
Finally
pReport.Dispose()
End Try
End Sub
Now, recently I upgraded my crystal to CR XI Release 2 SP6 and also upgraded my web project to Visual Studio 2005 with .NET 2.0. and now it gives me "report load failed" error on the very first line pReport.Load(......)
The project has updated the references related to crystal reports to the 11.5 version from 11.0. Not sure what am I missing here.
I have also opened the report file in the new crystal and saved it. I also opened it in Visual Studio itself and saved it.
I would appreciate any help possible.
Thanks
RajHi! Ludek,
I have tried to hard code the path. I checked the win/temp folder and the aspnet account already has the read/write permissions.
Below is the detailed error message:
Error Message: Load report failed.
Page Error Occurred: /MyDebthelper/reports.aspx
ExceptionType: System.Exception
Inner Exception: System.Runtime.InteropServices.COMException (0x800001F5): The Report Application Server failed at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
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 MyDebthelper.reports.cmdStatement_Click(Object sender, EventArgs e) in C:\Documents and Settings\RBhavsar\My Documents\Visual Studio 2005\Projects\MyDebtHelper\MyDebthelper\reports.aspx.vb:line 83 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)
Thanks
Raj
Edited by: debthelper on Apr 30, 2010 5:21 PM -
How to resolve "Internal error: ABAP Report cannot be loaded" error
Hi All,
I am new to SAP.Please help me out from this problem.
When I am trying to debug BSP page, in debugging mode it shows "Internal error: ABAP Report cannot be loaded" error and then dumps.
In transaction ST22 it shows this dump something like this
Runtime Errors MESSAGE_TYPE_X
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X).
1 FUNCTION AC_SYSTEM_FLUSH .
2 *"----
3 ""Lokale Schnittstelle:
4 *" IMPORTING
5 *" VALUE(CALLED_BY_SYSTEM) TYPE C OPTIONAL
6 *" EXCEPTIONS
7 *" CNTL_SYSTEM_ERROR
8 *" CNTL_ERROR
9 *"----
10 data: sysubrc like sy-subrc.
11
12 CALL FUNCTION 'AC_FLUSH_CALL'
13 EXPORTING
14 SYSTEM_FLUSH = 'X'
15 CALLED_BY_SYSTEM = CALLED_BY_SYSTEM
16 IMPORTING
17 MESSAGE_NR = sysubrc
18 MESSAGE_TEXT = SY-MSGLI.
19
20 sy-subrc = sysubrc.
21
22 CASE SY-SUBRC.
23 WHEN 0.
24 WHEN 1.
25 * system_error
26 MESSAGE ID 'CNDP' TYPE 'X' NUMBER 007 RAISING CNTL_SYSTEM_ERROR.
27 WHEN 2.
28 * method_call_error
>>>>> MESSAGE ID 'CNDP' TYPE 'X' NUMBER 006 RAISING CNTL_ERROR.
30 WHEN 3.
31 * property_set_error
32 MESSAGE ID 'CNDP' TYPE 'X' NUMBER 006 RAISING CNTL_ERROR.
33 WHEN 4.
34 * property_get_error
35 MESSAGE ID 'CNDP' TYPE 'X' NUMBER 006 RAISING CNTL_ERROR.
36 WHEN OTHERS.
37 RAISE CNTL_ERROR.
38 ENDCASE.
39
40 ENDFUNCTION.
Thanks in advance
Sunil ChoudhuryHi Sunil,
The reason for this could be anything, anyways look up for an OSS note with the error message first.
As a workaround, you can try to use the classic debugger instead of the new ABAP debugger and see if it works.
You should be logged into SAP via SAP GUI when you are debugging BSP.
Regards
Chen -
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 paramtersI 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 -
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 27int = 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. -
"Load report failed" error with VS 2010 upgrade
I have a report system that has been running nicely for a few years. Today, I upgraded it to use the latest Crystal from Visual Studio 2010. I installed the .net framework 4.0, installed the Crystal runtime (64 bit), and updated the web site with slightly revised code to use the new stuff. Now, reports that worked yesterday fail with the 'load report failed' error. A little research shows that the file name passed to the report engine is correct (and is the same as it has always been). I see that rpt files are being created in windows\temp each time a report is requested, so it seems that the report file is being found.
The code change I made was to use the new ExportToHttpResponse method.
When deployed in development and test environments (both 32 bit). this worked perfectly. In production, however, no such luck. I wonder if I have missed a setting somewhere, or if there is something extra to do on a 64 bit server?
Does anyone have a clue for me?
More info - I found the following error in the event log:
The keycode assembly, BusinessObjects.Licensing.KeycodeDecoder.dll, cannot be loaded.
... which I thought was interesting until I noticed the same error occurs on my dev machine, where the reports are working.
I also used process monitor to check the dlls loaded on the production box, and they all seem to be the latest version. I tried using the 'modules' utility on my production box, but it did not pick up the Crystal stuff (or any of my web stuff - I wonder if it is a 32-bit only tool?).
Edited by: Ray Novak on Dec 29, 2010 5:12 PMI just tried this again with the same result. I uninstalled the previous Crystal, deleted all the old folders and reg keys I could find, then installed the new 64 bit redist package. I asigned permissions to the SAP reg key tree. I ended up with the same result: "Invalid file name". There were new files created in the temp folder for each report request, so I can tell that my.rpt files are being found.
I used process monitor to see what was happening, and here are the results that seem interesting:
RegOpenKey HKU\.DEFAULT\Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0 NAME NOT FOUND
RegOpenKey HKU\.DEFAULT\Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0 NAME NOT FOUND
IRP_MJ_CREATE C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\secSSO.dll.2.Config NAME NOT FOUND
FASTIO_NETWORK_QUERY_OPEN C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\SmAgentAPI.dll NAME NOT FOUND
Since it seemed to be trying to create files in the \win64_x64 folder, I allowed the process full access, but it didn't help. It was also looking for SmAgentAPI.dll which does not seem to exist on my system. -
LOAD REPORT ERROR
We are working on the Crystal Reports version 2008 sp3 (12.0) with windows application. When the user tries to open more than 75 reports, this error is occurring. Please give us suggestion to resolve this issue.
We have tried following Code changes.
1.In Registry Settings Job Limit i changed to -1
2.Released all the report document objects once report generated.
ReportDocument.Close();
ReportDocument.Dispose();
3.GC.Collect();
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
Eventhough still i am getting error like "Load Report Failed"
"The maximum report processing jobs limit configured by your system administrator has been reached."
Once Report document objects are reached 75.how to decrese it?(without closing application)
How can we resolve this issue.Any other suggestion are there for decreasing report document objects in crystal Engine.
Please suggest me.
Thanks in Advance.There are two distinct concepts to consider:
1) Concurrent Processor License (CPL)
The CR engine is limited to 3CPL meaning that 3 concurrent reports can be processed by the report engine. Subsequent requests are queued up and processed as a license becomes available (in the event viewer you may see messages along the lines of; job x submitted, waiting y seconds for available license). The .close and .dispose methods free up memory taken up processing a report. Not doing so, increases memory used until there is no more memory to be had, leading to issue such as loading of reports, unstable computers and crashes.
2) Print Job
A Print Job is defined as almost any job a report is requested to do. E.g.; paging is a Print Job, Zooming, subreport, etc. One report could have 75+ print jobs associated with it simply by putting a subreport into a detail section which contains 75+ records and the subreport runs per each record. I suspect this is where your issue lies. There is a way to increase the number of print jobs, however the engine is optimized for this number and increasing it may lead to unanticipated consequences. See the article [Crystal Reports Maximum Report Processing Jobs Limit|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/f053713e-3e3d-2c10-2a81-f79259e54023]. One note on the above article. I mention that setting the value to 0 essentially removes the limit. While that is true in certain cases, doing so is playing with fire....
One other article to take note of is [Troubleshooting the error; Load Report Failed|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d02f7cd3-f18b-2d10-55ad-dab2200f68fc]
- Ludek -
Crystal Report XI Error:717
Error:717
Hi,
We use Crystal Report XI developer with Oracle 10g.
Our Oracle Client is Oracle 10g and the Oracle server is Oracle 10g.
Our application develepor tool is CodeGear RAD Studio, Delphi 2007 Enterprise.
The Crystal Report use the Native Oracle Connection.
When the applicatin run, and we call the Crystal Report, an error occure:
Error:717 Error in file c:sample.rpt
Failed to load database information
Execute
Please help me!
Thanks
Sándor LencséI would make verify the database within Crystal report and then re publish it again. It seems it doesn't get the connection to the db.
Have you refreshed the database within Crystal Reports?
As Graham said, does it open in Crystal Viewer?
another thing would be to add the DSN (System DSN) onto your client machine as well. Maybe it is not getting a right connection.
Try it and let us know.
Kind Regards
Jehanzeb -
HI everyone,
I have a problem regarding abap program,
I have transported a program with tcode from development server to production server but when i run the program in production server the program gives a runtime error.
" Program Load Error " thus dumping the program.
when i checked it in SE38 of production server it quotes " program does not exiist ".
Can please anyone let me know wat is the reason??
Thank you,
Vivek.Hi vivekacharya,
I think you saved the report and tcode in different Transports Requests, you moved only one request in which the report is not exsist.
so go to se38 program goto utilities --> versions --> version management and then get the request and transport the request to production server.
Regards,
Sateesh -
Post Author: jigmewangchuk
CA Forum: Crystal Reports
I am totally new to ASP.NET and I have developed a web application in VS2005 (VB) and Crystal report 10. I am getting an error u201CReport Load Failedu201D when I run report from main page linked to report viewer page (url) but it works fine when I run report viewer page directly (view in browser from VS2005. Here is my code:
Dim oRpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
oRpt.Load("F:\BDFCL\CrystalReport11.rpt")
Dim ds As New DataSet1
Dim da As New DataSet1TableAdapters.BranchInformationTableAdapter
da.Fill(ds.BranchInformation)
oRpt.SetDataSource(ds)
CrystalReportViewer1.ReportSource = oRpt
I shall be grateful if you could kindly advice me accordingly.
Thanks in advance
JigmeHi Don,
Thanks for the reply. I had downloaded a set of samples from SAP and I have looked through a few of the set you supplied. I am worried that I'm going to have some trouble because the samples have the reports loaded as part of the solution but I was looking to create a more generic viewer. I don't want to have to reprogram for each and every report that is created. That is why I was trying to use the generic parameter dialog. After the Report Load Failed dialog comes up, it does bring up the parm dialog and hits SQL Server just fine. Yes...the reports are passing Parms to Stored Procs in SQL Server. The report has default parameter values.
What I am trying to do is search thru the application folder and gather the names of the reports located there and fill the combo box with the names of the reports. Then the user should just be able to select a report and run it. I can't save the data in the reports because they must be ran per the requester's date range and other desired parameters.
Does this seem valid or am I going to have to program for EVERY single report and reprogram/recompile for every report added? Not particularly what I want to hear. I would have used the standard Crystal Report Viewer and had the users use that but it doesn't seem to allow you refresh the data from the viewer.
Thanks for your help,
Chris
Maybe you are looking for
-
Upgrading Early 2009 Mac Pro to Yosemite
I need an upgrading for dummies tutorial I want to upgrade some applications that I use and can not do that with Mountain Lion which is currently on my Early 2009 Mac Pro. (Processor 2.66 GHz Quad-Core Intel Xeon - Memory 12 GB - Graphics NVIDIA Ge
-
Payload missing in Soap document
We use XI 3.0, R3->XI->WebService scenario From my SoapDocument, i don't see the payload being part of the <Body>. Hence we get the "Object reference not set to an instance of an object" exception, from the WS - <SOAP:Envelope xmlns:SOAP="http://sche
-
What is the best online cloud backup?
I've had carbonate when I had windows laptops, now I'm new to mac and want to back up all of my documents, particularly photos. I've heard about problems restoring photos when using carbonate on a mac. I'm prepared to pay but I need a cloud backup se
-
Flash Player 10.1 for Solaris x86 missing
Hello, I am having and odd problem installing 10.1.82.76 on Solaris for x86. When I get the file extracted and installed, the version check in Firefox clams that its not version 10.1.82.76 but 10.0 r45 or 10.0.45.2 as confirmed by http://www.adob
-
Best way to approach... Wizards and Multiple Browser Windows?
How have others got / would others get around the following problem? I have a 4 page custom-built wizard to collect information about people and then, on the final step, insert that information into my PERSONS table. I use the same 4 pages as an Upda