Custom tool error for COMexception: The report application server failed.
hi there,
i am using crystal reports for the last one year onwards, i don't get any errors till know. Yesterday when i modified some information in 40 reports. out of these reports 34 reports are successfully build, but for the remaining six reports the code is not generating.
Custom tool error: "Code generator 'ReportCodeGenerator' failed. Exception stack = CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: 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()
--- 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 CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)
at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath, String resourceNamespace)
at CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)"
i am not understanding why it is getting for me, Please help me
Hello,
Whoever wrote the CustomCodeGenerator will have to help you with this one. We know nothing about the underlying code they are using and therefore can't determine the cause.
Appears the error is it can't even load the report so there is something wrong with the workings. Open the report again in CR Designer and Verify Database and then check the changes you did. Something is not right or the DB driver their application is using does not match with what you are using.
Don
Similar Messages
-
What causes The Report Application Server failed exception?
My environment:
Windows Server 2008 R2 8 cores 6 gig of ram.
A Windows Service running:
Oracle 11g
Oracle 11.2 64 bit client
C# 4.0 Framwork
Crystal Reports Visual Studio 2010 13.0.2000
This window service needs to create 1100 pdf documents generated by crystal reports per hour for a minimum of 8 hours straight.
These pdf files are written on the local file system.
The Windows Service runs 3 threads per core. Each thread can run up to 5 individual CR .rpt files in a sequential order.
After 4000 pdf documents created, I get the following errors.
1) The Report Application Server failed
2) Server is out of memory.
3) Not enough memory for operation.
4) Invalid report file path.
Using Windows Task Manager Resource Monitor I noticed the following:
After running 3000 pdf report requests, I stopped the processing pdf reports and noticed hundreds of
\BaseNamedObjects\CrystalReportXalanInitizeMutex(Pid of my process)
Why are they there after a close and dispose of the ReportDocument object?
I ran Reggate ANTS Memory Profiler 7.2 to check for memory leaks in my code and my code that I have control over is clean.
Why am I getting the exceptions above?
My code calls ExportReportToSream. After persisting the stream to disk, I call Close and Dispose on the stream.
My Code
========================================================================================== public MemoryStream ExportReportToStream(String reportName, LogOnInfo logOnInfo, string reportParams, CrystalExportFormatType formatType)
ReportDocument reportDoc = new ReportDocument();
if (!System.IO.File.Exists(reportName))
throw new InvalidArgumentException("reportName '" + reportName + "' does not exist", EngineExceptionErrorID.InvalidArgument);
try
lock (lockThis)
reportDoc.Load(reportName, OpenReportMethod.OpenReportByTempCopy);
ApplyLogOnInfo(reportDoc, logOnInfo);
//apply params if any
if (!String.IsNullOrEmpty(reportParams))
ApplyStringParams(reportDoc, reportParams);
return (MemoryStream)reportDoc.ExportToStream((ExportFormatType)formatType);
//we need to use the try catch, finally so the report can be disposed properly
catch (Exception)
throw;
finally
DistroyReportDocument(reportDoc);
reportDoc = null;
private void ApplyStringParams(ReportDocument reportDoc, string reportParams)
if (reportDoc == null)
return;
if (String.IsNullOrEmpty(reportParams))
return;
string[] paramsArray = reportParams.Split('|');
string[] subParamsArray = null;
//apply report params
ParameterValueKind type;
string paramValue = string.Empty;
ParameterField paramField = null;
ParameterDiscreteValue discreteValue;
int x = 0;
int paramCount = 0;
for (x = 0; x < reportDoc.ParameterFields.Count; x++)
// The ParameterFields object contains all parameters including the subreports.
// Subreport params have the name of the subreport.
if (reportDoc.Name.Trim().ToUpper() == reportDoc.ParameterFields[x].ReportName.Trim().ToUpper())
paramCount++;
Edited by: Ludek Uher on Dec 15, 2011 7:57 AM
Edited by: Ludek Uher on Dec 15, 2011 7:58 AMif (paramsArray.Length < paramCount)
throw new InvalidArgumentException("invalid number of arguments passed to report '" + reportDoc.Name + "' expected " + reportDoc.ParameterFields.Count + " received " + paramsArray.Length, EngineExceptionErrorID.InvalidArgument);
for (x = 0; x < reportDoc.ParameterFields.Count; x++)
if (reportDoc.Name.Trim().ToUpper() != reportDoc.ParameterFields[x].ReportName.Trim().ToUpper())
continue;
paramValue = paramsArray[x];
paramField = reportDoc.ParameterFields[x];
type = paramField.ParameterValueType;
if (paramField.EnableAllowMultipleValue && paramValue.IndexOf(',') > -1)
subParamsArray = paramValue.Split(',');
ParameterValues currentParameterValues = new ParameterValues();
foreach (string subParamValue in subParamsArray)
discreteValue = new ParameterDiscreteValue();
discreteValue.Value = subParamValue;
currentParameterValues.Add(discreteValue);
paramField.CurrentValues = currentParameterValues;
else
discreteValue = new ParameterDiscreteValue();
discreteValue.Value = paramValue;
paramField.CurrentValues.Add(discreteValue);
private bool ApplyLogOnInfo(ReportDocument document, LogOnInfo logOnInfo)
TableLogOnInfo info = null;
// Define credentials
info = new TableLogOnInfo();
info.ConnectionInfo.AllowCustomConnection = true;
info.ConnectionInfo.ServerName = logOnInfo.ServerName;
info.ConnectionInfo.DatabaseName = logOnInfo.DatabaseName;
// Set the userid/password for the report if we are not using integrated security
if (logOnInfo.IntegratedSecurity)
info.ConnectionInfo.IntegratedSecurity = true;
else
info.ConnectionInfo.Password = logOnInfo.Password;
info.ConnectionInfo.UserID = logOnInfo.UserID;
// Main connection?
document.SetDatabaseLogon(info.ConnectionInfo.UserID,
info.ConnectionInfo.Password,
info.ConnectionInfo.ServerName,
info.ConnectionInfo.DatabaseName,
true);
// Other connections?
foreach (CrystalDecisions.Shared.IConnectionInfo connection in document.DataSourceConnections)
connection.SetConnection(logOnInfo.ServerName, logOnInfo.DatabaseName, logOnInfo.IntegratedSecurity);
connection.SetLogon(logOnInfo.UserID, logOnInfo.Password);
connection.LogonProperties.Set("Data Source", logOnInfo.ServerName);
connection.LogonProperties.Set("Initial Catalog", logOnInfo.DatabaseName);
// Only do this to the main report (can't do it to sub reports)
if (!document.IsSubreport)
// Apply to subreports
foreach (ReportDocument rd in document.Subreports)
ApplyLogOnInfo(rd, logOnInfo);
// Apply to tables
foreach (CrystalDecisions.CrystalReports.Engine.Table table in document.Database.Tables)
TableLogOnInfo tableLogOnInfo = table.LogOnInfo;
tableLogOnInfo.ConnectionInfo = info.ConnectionInfo;
table.ApplyLogOnInfo(tableLogOnInfo);
if (!table.TestConnectivity())
string strMsg = "ApplyLoginInfo failed to apply log in info for table " + table.Name + ", Crystal Report: " + document.FileName + " DB: " + logOnInfo.DatabaseName + " UserID: " + logOnInfo.UserID;
throw new InvalidOperationException(strMsg);
//verify logon info
document.VerifyDatabase();
return true;
private void DistroyReportDocument(ReportDocument document)
if (document == null)
return;
document.Close();
Edited by: Ludek Uher on Dec 15, 2011 7:59 AM -
Crystal Reports error - The Report Application Server failed
Hi,
I am getting the following error on XP Professional system. These reports were built earlier by one of my collegue and am trying to use the app but i stuck up getting the below error. The report gets failed
repPath=Server.MapPath ("./Reports/Umbrellas.rpt");
crReportDocument.Load(repPath); //Fails here
crReportDocument=SetLogonForReport(crReportDocument);
crReportDocument.SetParameterValue ("fromDate",DateTime.Parse (fromdt) );
crReportDocument.SetParameterValue ("toDate", DateTime.Parse (todt) );
I tried in design time attaching to Crystal Reports Viewer object , i get the same error. It looks like something related to Crystal Reports got corrupted in this system.
Please find the stack trace for the error
Stack Trace:
[COMException (0x80004005): The Report Application Server failed]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
[Exception: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
CrystalDecisions.ReportSource.NonHTTPCachedReportSource.GetReport(RequestContext context, Boolean bAddToCacheWhenCreated)
CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext)
CrystalDecisions.Web.ReportAgent. (Boolean o)
CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
System.Web.UI.Control.PreRenderRecursiveInternal() +62
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Page.ProcessRequestMain() +1488
Environment:
.NET v1.1.4322
Crystal Reports 10.0.0.533
OS: Windows XP Professional - Ver 2002 Severice Pack 2
I tried some of the solutions provided by searching web, it does not work. Please help!!!
Appreciate your help on this.
Edited by: KMallik2000 on Jul 15, 2009 4:39 PMHi,
I am trying to replicate the same issue on new desktop which has crystal reports 9.1 & 10 installed. I still see crystal reports 9.1 controls when i open VS.net. when i compare both desktop installed softwares, i found that the other desktop has "Crystal Reports 10 .NET runtime installed" which is not there on the new desktop. please advise whether i need to install this software to get ver 10 components installed? Appreciate your help on this. can you also advise the software download location for 10 .net run time installation?
In other words, though crystal reports 10 got installed on this desktop but it is not getting referenced in VS.NET. I am seeing only 9.1 version assemblies are being used. hence my solution is not getting compiled in this desktop. Please advise how to get the version 10 assemblies referenced in the solution
Edited by: KMallik2000 on Jul 20, 2009 4:46 PM -
Getting "The Report Application Server failed" when trying to view a report
I'm getting an error pop up:
Crystal Report Windows Forms Viewer
The Report Application Server failed
OK
When trying to display a report using the Crystal Reports viewer (as shipped with VS2008)
The stack trace implies it's having problems rendering the first page of the report:
System.Windows.Forms.dll!System.Windows.Forms.MessageBox.ShowCore(System.Windows.Forms.IWin32Window owner = null, string text, string caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon, System.Windows.Forms.MessageBoxDefaultButton defaultButton, System.Windows.Forms.MessageBoxOptions options, bool showHelp) + 0x220 bytes
System.Windows.Forms.dll!System.Windows.Forms.MessageBox.Show(string text, string caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon) + 0x18 bytes
CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.MainReportDocument.GetPage(CrystalDecisions.Shared.PageRequestContext context = {CrystalDecisions.Shared.PageRequestContext}) + 0x6a9 bytes
CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.ReportDocumentBase.GetPage(int pageN = 1) + 0x1a3 bytes
CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.DocumentControl.ShowNthPage(int PageNumber = 1) + 0x79 bytes
CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.DocumentControl.ShowFirstPage() + 0x48 bytes
CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.PageView.ShowFirstPageEx() + 0x1ec bytes
CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowReport() + 0xea bytes
CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.CrystalReportViewer.OnPaint(System.Windows.Forms.PaintEventArgs evtArgs = {ClipRectangle = {System.Drawing.Rectangle}}) + 0x182 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.PaintTransparentBackground(System.Windows.Forms.PaintEventArgs e, System.Drawing.Rectangle rectangle, System.Drawing.Region transparentRegion = {System.Drawing.Region}) + 0x16c bytes
Any ideas how to fix this?There is a good process for getting bugs fixed. However, you will have to provide a reliable way of reproducing the issue. E.g.; I can not go to R&D and ask that they fix a bug with a report that sometimes works and sometimes does not work.
I suspect the best way to approach this, will be to actually see the report and try to determine what part of the report may be the issue. To be able to share the report, you will have to create a phone case here:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
and discuss this at length with a support engineer.
Ludek -
CrystalReport - Getting "The Report Application Server failed" while export
Hi Experts,
I am using Crystal Reports 2008 in my ASP.NET application to generate reports. Everythings works fine in the development environment. When I deploy it on my Windows Server 2003 system, I get an error "The Report Application Server failed" while exporting the report from the report control. But, the report assuch is working fine even in the production environement. I experience this issue only while exporting to excel or anyother format.
Do I need to configure anything or any settings needs to be turned on in the .rpt files!!
Appreciate any help to get this issue resolved.
TIA,
PremFirst a confirmation. When you say; "...exporting the report from the report control...", you mean the printer button on the viewer?
Questions;
What version of .NET?
What Crystal Reports Service Pack are you on?
How was the CR runtime installed on the server?\
Can you print the report OK?
Are you using sessions?
Ludek -
"The Report Application Server failed"
We are using ASP.NET 4.0 and Crystal 2008 (v12.3) to execute Crystal reports on a scheduled basis. Everything works fine for a while and then we get the error:
u201CThe Report Application Server failedu201D
on all the reports. The problem can only be solved by rebooting the server. I did some research but could not find any information as to the cause of the error. Has anyone encountered this before and know what the cause is?My application is a windows service.
In my C# class I have a finally block that does the following:
private void DistroyReportDocument(ReportDocument document)
if (document == null)
return;
ReportDocument crSubreportDocument;
SubreportObject crSubreportObject;
ReportObjects crReportObjects;
TableLogOnInfo crTableLogOnInfo;
Database crDatabase = document.Database;
Tables crTables = crDatabase.Tables;
TableLinks crLinks = crDatabase.Links;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in crTables)
table.Dispose();
foreach (CrystalDecisions.CrystalReports.Engine.TableLink link in crLinks)
link.Dispose();
crLinks.Reset();
crLinks.Dispose();
crTables.Reset();
crTables.Dispose();
//// Subreport code ////
Sections crSections = document.ReportDefinition.Sections;
// loop through all the sections to find all the report objects
foreach (CrystalDecisions.CrystalReports.Engine.Section crSection in crSections)
crReportObjects = crSection.ReportObjects;
//loop through all the report objects in there to find all subreports
foreach (ReportObject crReportObject in crReportObjects)
if (crReportObject.Kind == ReportObjectKind.SubreportObject)
crSubreportObject = (SubreportObject)crReportObject;
//open the subreport object and logon as for the general report
crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName);
crDatabase = crSubreportDocument.Database;
crTables = crDatabase.Tables;
crLinks = crDatabase.Links;
foreach (CrystalDecisions.CrystalReports.Engine.Table aTable in crTables)
crTableLogOnInfo = aTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo = null;
aTable.Dispose();
foreach (CrystalDecisions.CrystalReports.Engine.TableLink link in crLinks)
link.Dispose();
crLinks.Reset();
crLinks.Dispose();
crTables.Reset();
crTables.Dispose();
crSubreportDocument.DataSourceConnections.Clear();
crSubreportDocument.DataDefinition.ParameterFields.Dispose();
crSubreportDocument.DataDefinition.Dispose();
crSubreportDocument.Database.Links.Dispose();
crSubreportDocument.Database.Dispose();
crSubreportDocument.Close();
crSubreportDocument.Dispose();
crSubreportObject.Dispose();
} // End if
} // End foreach
crReportObjects.Dispose();
} // End foreach
document.DataSourceConnections.Clear();
document.ReportDefinition.Sections.Dispose();
document.DataDefinition.ParameterFields.Dispose();
document.DataDefinition.Dispose();
document.Database.Links.Dispose();
document.Database.Dispose();
document.Close();
document.Dispose();
I know this is over kill, but I got it from an earlier post in this forum.
Thank you for the article. It suggest I could be running into the default print Job limit. I'll try editing the registry as the document suggests.
I'm getting 3 different exceptions, do you think possbly they are all related? -
Load Report Failed - Report Application Server Failed error at runtime
Hello, I'm pretty new to Crystal Reports so please bear with me.
I just installed CR 2008 on my development box, which is running VS2005 .NET 2.0. I changed over all of my assembly references in my web.config to the new version:
<add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral,
PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Viewing.ReportSource, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
Also the webpage that is displaying the ReportViewer object has this reference as well:
<%@ Register Assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
Now, in my code behind I am simply trying to open a pre-built crystal report that came in the sample pack
When I try and do this in our already built website I get an error:
"Load report failed"
With the inner exception saying:
"The Report Application Server failed"
This same piece of code works perfectly if I build a new website, however when I try and impliment this into our existing code base I get the error shown above. Also the samples I've used all use .NET 3.5 and the website is in 2.0. I'm not sure if that is a factor or not but that is also another piece of information that could be useful.
Any help on this matter would be greatly appreciated. Thank you for you're time.
Chris McMahan
Edited by: Arithal on Aug 4, 2009 8:36 PMAnd finally the stack trace. Sorry for the length of these posts.
[COMException (0x800001f5): The Report Application Server failed]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +126
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +575
[CrystalReportsException: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +646
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +1374
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +169
Report_Viewer_Crystal_CrystalView.ConfigureCrystalReports() in c:\Inetpub\wwwroot\Report Viewer\Crystal\CrystalView.aspx.cs:49
Report_Viewer_Crystal_CrystalView.Page_Init(Object sender, EventArgs e) in c:\Inetpub\wwwroot\Report Viewer\Crystal\CrystalView.aspx.cs:33
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnInit(EventArgs e) +99
System.Web.UI.Page.OnInit(EventArgs e) +9
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834 -
Getting error: Report Application Server failed
I started posting my problem in thread below and have been advised to continue in this forum
Reference thread: The Report Application Server failed
My problem occurs in a asp application (vb 2005) and also when I run the Crystal Report stand alone (xi rel 2).
The asp application does not render any other messages than "report Application Server Failed" but running the CR stand alone I get "error formatting cross tab object". Whenver I get this message and if I switch page setting (either from landscape to portrait or portrait to landscope) it work for the report in question.
I have now advanced a little further in trying to solve the issue or at least find what is wrong. I have created a .net windows application where I export the CR to disk
Dim DiskOpts As CrystalDecisions.Shared.DiskFileDestinationOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions
myCrystalReport1.ExportOptions.ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.DiskFile
myCrystalReport1.ExportOptions.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat
DiskOpts.DiskFileName = ReportPath & ReportName
myCrystalReport1.ExportOptions.DestinationOptions = DiskOpts
myCrystalReport1.Export()
I get the same problems, some reports will not let me export and I am getting error:
CrystalDecisions.CrystalReports.Engine.InternalException: The Report Application Server failed ---> System.Runtime.InteropServices.COMException (0x800003E5): The Report Application Server failed
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()
My default page set up is landscape and if I now reverse the page set up like: myCrystalReport1.PrintOptions.PaperOrientation = PaperOrientation.Portrait it will let me export.
My windows application exports hundreds of reports in a single run and by toggling between landscape and portrait I manage to get it working when I get an export error (like above).
Was hoping that anyone couldm point me in a good direction, I've been fighting this problems for many days now and I do not have a solution as to why this is happening. Thank you.Hi,
The cross-tab reports that are causing this error, do they have any formatting formulas on any of the objects?
Are your using any running totals or setting the Evaluation Time using WhilePrintingRecords?
I've run into this problem with crosstabs when I created a Display String formula using Running Totals.
The report cannot render the report because the running total is conflicting with the results of the crosstab.
When you right-click an object and go to Format Field. In the Common tab if the Display String has a formula set, remove or comment it out. Do this for all the objects and try running the report again.
Good luck,
Brian -
Report Application Server Failed
Hi All,
I have converted a PLD to Crystal Report. After importing this converted Crystal Report in B One , I have set it as default for Purchase Order document. When I am clicking on the Print Preview I am getting error as Report Application Server Failed. Please help me in addressing this issue.
Regards,
Noor HussainHello Noor,
Before you import the CR layout into SAP B1 you may use the Preview in SAP B1 Function to know the report is really operating.
Regards
János -
Error when calling the report on server?
We have a .NET application on the server and we want to call a crystal report (.rpt) from one of the forms (.NET aspx page). We are getting below error. The report works fine on the desktop where it is developed. Please let us know if there is any specific process to move the reports to server. Any help is appreciated.
The report is developed in Crystal Reports 2008 and we are using Visual Studio 2005. We are using Crystal Report Viewer control to call / associate the report developed.
Error message,
An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.
Thanks
SridharHi,
Have you install the runtime files of CR 2008 on server, if not then install it from [here|http://resources.businessobjects.com/support/additional_downloads/runtime.asp#08].
Download according to the service pack applied on CR 2008.
Also ensure that you are at service pack 1 level of CR 2008 as its a latest service pack available for CR 2008.
Hope this will help!!
Regards,
Amit -
Hi,
I Haven't used Vb.net, as I work on C#, But in SSRS it supports only VB.net code as custom coding, so i coded in c# and converted to VB.net from online converter. The code i got from online converter is working fine in local i.e when i preview in BI studio,
but when i try to deploy the same i'm getting error
Error 3
There is an error on line 12 of custom code: [BC30201] Expression expected.
0 0
Below is the code:
' -- Author : Jai Anand
' -- Date : 06-05-2014
' -- Discription : To split the given string of numbers and Assign the days for it,
' -- example: if integer 1 - (Su) --> Sunday, 2 - (Mo) --> Monday
public Function FindPlanDays(plandate As String) As String
Dim planarray As String() = New String() {}
Dim days As String = ""
planarray = plandate.Split(","C)
Dim i As Integer = 0
While i < planarray.Length
Dim day As String = If(planarray(i) = "1", "Su,", If(planarray(i) = "2", "Mo,",
If(planarray(i) = "3", "Tu,", If(planarray(i) = "4", "We,", If(planarray(i) = "5", "Th,", If(planarray(i)="6","Fr,", If(planarray(i) = "7", "Sa,", String.Empty)))))))
days = days & day
i += 1
End While
days = If(days <> String.Empty, " (" + days.TrimEnd(","C) + ")", days)
Return days
End Function
Kindly check the code, if any issue is there,give me the solution..Thank youHi,
I found the solution and the report is deployed . The issue was with If and we should suffix with space and underscore( _) at the end of the line break and continues in next line (i.e if the statement continues in next line).
iif has always been available in VB, even in VB6.
Dim day As String = Iif(planarray(i) = "1", "Su,","Mon")
It is not a true operator, as such, but a function in the Microsoft.VisualBasic namespace.
so the modified code which worked fine to deploy
' -- Author : Jai Anand
' -- Date : 06-05-2014
' -- Discription : To split the given string of numbers and Assign the days for it,
' -- example: if integer 1 - (Su) --> Sunday, 2 - (Mo) --> Monday
public Function FindPlanDays(plandate As String) As String
Dim planarray As String() = New String() {}
Dim days As String = ""
planarray = plandate.Split(","C)
Dim i As Integer = 0
While i < planarray.Length
Dim day As String = Iif(planarray(i) = "1", "Su," ,Iif(planarray(i) = "2", "Mo,", _
Iif(planarray(i) = "3", "Tu,", Iif(planarray(i) = "4", "We,", Iif(planarray(i) = "5", "Th,", _
Iif(planarray(i) ="6","Fr,", Iif(planarray(i) = "7", "Sa,", String.Empty)))))))
days = days & day
i += 1
End While
days = Iif(days <> String.Empty, " (" + days.TrimEnd(","C) + ")", days)
Return days
End Function -
Error while starting the sun application server 8
when ever i start the default server i get the following server.............
can any one tell me where shoud i specify the correct path or is the error related to something else.................
[#|2005-06-29T14:27:32.250+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER005:Spaces in your PATH have been detected. The PATH must be consistently formated (e.g. C:\Program Files\Java\jdk1.5.0\bin; ) or the Appserver may not be able to start and/or stop. Mixed quoted spaces in your PATH can cause problems, so the launcher will remove all double quotes before invoking the process. The most reliable solution would be to remove all spaces from your path before starting the Appservers components. |#]
[#|2005-06-29T14:27:32.328+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.tools.launcher|_ThreadID=10;|
C:/Sun/AppServer/jdk\bin\java
-client
-Xmx512m
-XX:NewRatio=2
-Dcom.sun.aas.defaultLogFile=C:/Sun/AppServer/domains/domain1/logs/server.log
-Djava.endorsed.dirs=C:/Sun/AppServer/lib/endorsed
-Djava.security.policy=C:/Sun/AppServer/domains/domain1/config/server.policy
-Djava.security.auth.login.config=C:/Sun/AppServer/domains/domain1/config/login.conf
-Dsun.rmi.dgc.server.gcInterval=3600000
-Dsun.rmi.dgc.client.gcInterval=3600000
-Djavax.net.ssl.keyStore=C:/Sun/AppServer/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=C:/Sun/AppServer/domains/domain1/config/cacerts.jks
-Djava.ext.dirs=C:/Sun/AppServer/jdk/jre/lib/ext;C:/Sun/AppServer/domains/domain1/lib/ext
-Djdbc.drivers=com.pointbase.jdbc.jdbcUniversalDriver
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
-Dcom.sun.aas.configName=server-config
-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
-Ddomain.name=domain1
-Djmx.invoke.getters=true
-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
-Dcom.sun.aas.promptForIdentity=true
-Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
-Dcom.sun.aas.instanceRoot=C:/Sun/AppServer/domains/domain1
-Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
-Dcom.sun.aas.domainName=domain1
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Dproduct.name=Sun-Java-System/Application-Server
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.faces,javax.servlet.jsp.jstl,javax.xml.bind,javax.help
-Dcom.sun.aas.configRoot=C:/Sun/AppServer/config
-Djava.library.path=C:\Sun\AppServer\jdk\jre\bin\client;C:\Sun\AppServer\lib;C:\Sun\AppServer\lib;C:\Sun\AppServer\jdk\bin;.;C:\WINNT\system32;C:\WINNT;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\VoiceAge\Common;C:\Sun\AppServer\bin;C:\DOCUME~1\71304\LOCALS~1\Temp\j2eesdk-1_4_02_2005Q2-windows.exe2\package;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\VoiceAge\Common;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\VoiceAge\Common;c:\j2sdk1.4.1_01\bin;c:\sun\appserver\bin;
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-cp
C:/Sun/AppServer/jdk/lib/tools.jar;C:/Sun/AppServer/lib/appserv-rt.jar;C:/Sun/AppServer/lib\activation.jar;C:/Sun/AppServer/lib\admin-cli.jar;C:/Sun/AppServer/lib\appserv-admin.jar;C:/Sun/AppServer/lib\appserv-cmp.jar;C:/Sun/AppServer/lib\appserv-ext.jar;C:/Sun/AppServer/lib\appserv-jstl.jar;C:/Sun/AppServer/lib\appserv-upgrade.jar;C:/Sun/AppServer/lib\commons-launcher.jar;C:/Sun/AppServer/lib\commons-logging.jar;C:/Sun/AppServer/lib\dom.jar;C:/Sun/AppServer/lib\j2ee-svc.jar;C:/Sun/AppServer/lib\j2ee.jar;C:/Sun/AppServer/lib\jax-qname.jar;C:/Sun/AppServer/lib\jaxr-api.jar;C:/Sun/AppServer/lib\jaxr-impl.jar;C:/Sun/AppServer/lib\jaxrpc-api.jar;C:/Sun/AppServer/lib\jaxrpc-impl.jar;C:/Sun/AppServer/lib\jmxremote.jar;C:/Sun/AppServer/lib\jmxremote_optional.jar;C:/Sun/AppServer/lib\jsf-api.jar;C:/Sun/AppServer/lib\jsf-impl.jar;C:/Sun/AppServer/lib\mail.jar;C:/Sun/AppServer/lib\relaxngDatatype.jar;C:/Sun/AppServer/lib\rmissl.jar;C:/Sun/AppServer/lib\saaj-api.jar;C:/Sun/AppServer/lib\saaj-impl.jar;C:/Sun/AppServer/lib\xalan.jar;C:/Sun/AppServer/lib\xercesImpl.jar;C:/Sun/AppServer/lib\xsdlib.jar;C:/Sun/AppServer/lib/install/applications/jmsra/imqjmsra.jar;C:/Sun/AppServer/imq/lib/jaxm-api.jar;C:/Sun/AppServer/imq/lib/fscontext.jar;C:/Sun/AppServer/lib/ant/lib/ant.jar;C:/Sun/AppServer/pointbase/lib/pbclient.jar;C:/Sun/AppServer/pointbase/lib/pbembedded.jar
com.sun.enterprise.server.PEMain
start
display
native|#]
[#|2005-06-29T14:27:54.859+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.resource.jms|_ThreadID=10;|JMS5023: JMS service successfully started. Instance Name = imqbroker, Home = [C:\Sun\AppServer\imq\bin].|#]
[#|2005-06-29T14:27:54.875+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.core|_ThreadID=10;|CORE5098: AS Socket Service Initialization has been completed.|#]
[#|2005-06-29T14:27:59.156+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0001:MBeanServer initialized successfully|#]
[#|2005-06-29T14:27:59.343+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.stream.err|_ThreadID=10;|java.lang.NoClassDefFoundError: javax/net/ssl/TrustManager
at com.sun.enterprise.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:59)
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:215)
at com.sun.enterprise.server.PEMain.run(PEMain.java:284)
at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
|#]The missing class is part of the Java Dynamic Management Kit (JDMK)
and is in the JAR file 'jdmkrt.jar'
In my SOLARIS 9 installation the path is
/opt/SUNWjdmk/5.1/lib/jdmkrt.jar
My solution was to edit the the �asadmin� shell script
and add the path to the above JAR file in its CLASSPATH
$ vi /opt/SUNWappserver/sbin/asadmin
-Djava.library.path=...:/opt/SUNWjdmk/5.1/lib: ... -
How to see the log file on the Reports Application server?
Hi,
I am new to this Reports, please correct me if i am wrong or in the wrong forum, we have a java based front-end application which calls oracle reports to display requested reports. We are using oracle reports (9i/10g). I need work on a report, It is working fine if i provide parameters on the report itself, but if i run from the application it is not running properly. I want to see the parameters the application is sending to this report, is there any way that i can some log file or any other one on the report server?
thanks,Thank you.
When you fire the processes to the report server you
can trace the report with the following parameter:
RWCLIENT.EXE SERVER=my_server
TRACEFILE=c:\my_trace.trc
TRACEMODE=TRACE_REPLACE
TRACEOPTS=TRACE_ALL -
Using ISCRCommandTable in the Reports Application Server
Hi
We have a report that is linked to a Command but the query may be constructed in different ways (using different tables). In past we've pushed the data to the report but I was looking into pulling the data.
I thought it might be possible to create a Command Object then edit the CommandText Property in code using the RAS API (inproc). Though it's possible to set the CommandText this does not seem to effect the data displayed. Is there a reason for this? Am I doing something wrong?
Dim mySampleReportPath As String = "C:\Inetpub\wwwroot\SetCommandtext\Report1.rpt"
rd.Load(mySampleReportPath)
' Access the ReportClientDocument API in-process using the ReportDocument class.
rcd = rd.ReportClientDocument
'Change SQL in Command.
Dim c As CrystalDecisions.ReportAppServer.DataDefModel.ISCRCommandTable
With rcd.DataDefController.Database.Tables
c = .Item(.FindByAlias("Command"))
c.CommandText = "SELECT name, '123' as test FROM Checklist"
rcd.DataDefController.ParameterFieldController.SetCurrentValue("", "test", "USA")
rcd.DataDefController.ParameterFieldController.SetCurrentValue("", "title", c.CommandText)
End With
' Set the report source of the Crystal Report viewer to the instance of the report.
myCrystalReportViewer.ReportSource = rd
Cheers
AlexFound the answer in this code example: [NET-CS2005_RAS-UNMANAGED_CR115_MODIFY_COMMAND-TABLE-SQL|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/30da384c-bb66-2b10-8392-96acb15624c6]
-
Error while starting the Portal application server
Hi ,
We are running EP 7 on SP12 on HP-UX1 1.31 with Oracle.
this a strange problem that we are facing.When we try to restart the Application sever it never starts up until we take a restart of the CI as well.
The default trace writes
m.sap.engine.core.Framework#######Thread[Thread-1,5,main]
##0#0#Fatal#1#/System/Server#Plain###Critic
al shutdown was invoked. Reason is: Error getting confirmation reply
during attach to cluster.#
#1.#0019BBEBBF0E00000000001E00002348000442F5B31BE7CE#1199522946212#com.sap.engine.core.Framework##co
m.sap.engine.core.Framework#######Thread[Thread-1,5,main]
##0#0#Fatal#1#/System/Server#Plain###Critic
al shutdown was invoked. Reason is: Error getting confirmation reply
during attach to cluster.#
#1.#0019BBEBBF0E00000000001700002885000442F61C903BE6#1199524715444#com.sap.engine.core.service630.co
ntainer.LoadContainer##com.sap.engine.core.service630.container.LoadContainer#######Thread[Thread-1,
5,main]##0#0#Error#1#/System/Server#Plain###interface
tclmctcculinterface_sda - null jars, incor
Has anyone come across same error??
If we restart the CI then everything starts up well.
Regards,
rohitHi,
We are facing the same problem.
Can you help me out with this??
Thanks & Regards,
Arpita Saini
Maybe you are looking for
-
Cannot Sign into Ovi Store and cannot create email...
Hey all, I have just recently got my N8 back from Nokia. I sent it back due to numerous problems...battery life was less than 16hrs, kept saving sent messages, wouldn't update emails instantly and kept getting mail that was 4 days old, etc... But now
-
X99S Gaming 7 - USB power and FAN speed??
1. How do I get power from my USB ports (smartphone charging) when my computer is turned OFF. 2. I cant get my SYSFans to run under 50%??? They can go down to 30% when I use a Fan controller.
-
ORA-20001: Error in MRU – Master-Detail
We don't allow to user modify the data and I remove a delete button in Master Detail. When I Add a row, I have the following message. Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in dat
-
Display cell contents as text instead of evaluating as a numeric expression
If I enter a value such as 21/27 in a cell, Numbers interprets it as 21 divided by 27 and displays the result, but that's not what I want. I want 21/27 to be displayed. How can I do that? Thanks, Pete
-
Hi I have used DOM to read XML node values and DOM's Transformer class to save changed xml node values back to the xml file. File f = new File("C:\\test.xml"); DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); Docu