473,385 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Query Engine Error trouble

Hi,

I think i'm doing something simple, although i may be wrong. I was able
to load a Crystal report file up until today, and even now, its only 1
report that's misbehaving. I'll confess that i didn't create the
report, it was done by our Crystal guy with Crystal 9 (or 8), all i do
is load it using .NET, which, like i said before, worked just fine.
Here's the code:

//i call this func from Page_Load passing in only the filename
//the rest is hardcoded.
public void LoadCrystalReport(string strServerName,
string strDB_Username, string strDB_Password, string
strReportFilename)
{
ReportDocument crReportDocument = new ReportDocument();

crReportDocument.Load(Server.MapPath(strReportFile name));

Database crDatabase;
Tables crTables;
TableLogOnInfo crTableLogOnInfo;
ConnectionInfo crConnectionInfo;

//Set the crConnectionInfo with values either stored in
//the report or hard coded below
crConnectionInfo =
crReportDocument.Database.Tables[0].LogOnInfo.ConnectionInfo;
crConnectionInfo.DatabaseName = "";
crConnectionInfo.ServerName = strServerName;
crConnectionInfo.UserID = strDB_Username;
crConnectionInfo.Password = strDB_Password;

//Set the CrTables object to the Tables collection of
//the Report's dDtabase
crDatabase = crReportDocument.Database;
crTables = crDatabase.Tables;

// LOOP THRU THE CRYSTAL REPORT 'TEMPLATE',
// TO GET THE LOGON INFO ETC.
for (int i = 0; i < crTables.Count; i++)
{
crTableLogOnInfo = crTables[i].LogOnInfo;
crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
crTables[i].ApplyLogOnInfo(crTableLogOnInfo);
}

crReportDocument.SetParameterValue("startdate", "6/1/2005");
crReportDocument.SetParameterValue("enddate", "8/1/2005");

// this will retrieve it as a web page
this.CrystalReportViewer1.ReportSource = crReportDocument;
}
//At this point it crashes giving me

Query Engine Error:
'c:\inetpub\wwwroot\myutils\Abs_Tard_for_Certifier .rpt'
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details:
CrystalDecisions.CrystalReports.Engine.DataSourceE xception: Query
Engine Error: 'c:\inetpub\wwwroot\myutils\Abs_Tard_for_Certifier .rpt'

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[DataSourceException: Query Engine Error:
'c:\inetpub\wwwroot\myutils\Abs_Tard_for_Certifier .rpt']
.F(String  , EngineExceptionErrorID 
) +540
.A(Int16 , Int32 ) +537

CrystalDecisions.CrystalReports.Engine.FormatEngin e.GetPage(PageRequestContext
reqContext) +539

CrystalDecisions.ReportSource.LocalReportSourceBas e.GetPage(PageRequestContext
pageReqContext) +189
CrystalDecisions.Web.ReportAgent.u(Boolean N) +164
CrystalDecisions.Web.CrystalReportViewer.OnPreRend er(EventArgs e)
+108
System.Web.UI.Control.PreRenderRecursiveInternal() +62
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Page.ProcessRequestMain() +1499
-------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET Version:1.1.4322.2032

I've tried opening the report file and re-saving it as a Crystal for
VS.NET file, no difference. I checked to make sure i have the correct
Merge Modules as well as the DLLs in System32. The weird thing about
this is, the Abs_Tard_for_Certifier.rpt file is the only one that
crashes, even some previous versions of it. Other rpt files display
just fine.

If anyone can help, I'd really appreciate it.

Thanks.
Regards,

Rafael Zavulunov

Nov 19 '05 #1
0 1435

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Lee | last post by:
Hello All, First of all I would like to say thank you for all of the help I have received here. I have been teaching myself Access for about 4 years now and I've always been able to find a...
0
by: william_dudek | last post by:
I have a crystal report that works fine when run through Crystal, which I am triying to incorporate into a crystal report viewer. The report takes 1 parameter, which is either 0 or 1. If the...
10
by: Daniel | last post by:
In Microsoft Access I can write a query that includes the criteria: Between Date()-7 And Date() to retrieve the records from a table that fall within the last week. I'm trying to write a...
0
by: phlype.johnson | last post by:
I'm struggling to find the best query from performance point of view and readability for a normalized DB design. To illustrate better my question on whether normalized designs lead to more complex...
9
by: timber910 | last post by:
Hello, I've been working on this for days and have been able to find anything to help me solve the problem. Here is my SQL query. Select FISCALMONTH.id, FISCALMONTH.qtr_year,...
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
2
by: matt | last post by:
hello, i have an .RPT file that i am using to load a report via the ASP.NET CrystalReportViewer control. i dont include my .RPTs as embedded resources...instead i load the absolute path of the...
1
by: jesmi | last post by:
my code is: U]employee.cfm <html> <head> <title>Employee List</title> </head> <body> <h1>Employee List</h1>
7
by: bryant | last post by:
Hi all. I am new to ASP and working in Expression Web. The following query displays the information I need in the gridview for a single record. SELECT "OE_HDR"."ORD_NO", "OE_HDR"."CUST_NAM",...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.