Solved

CrystalDecisions.CrystalReports.Engine.DataSourceException: Query Engine Error

Posted on 2004-10-01
2
6,495 Views
Last Modified: 2012-05-05
Hi, I am receiving this error when i run a report in .net 2003 with CR. I cannot find any solutions for this problem. Here is the error (CODE IS BENEATH ERROR): PLEASE HELP - THANKS!

Query Engine Error: 'C:\WINDOWS\TEMP\temp_5909cf2a-a62b-4a2e-8e2f-13085e7f405e.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.DataSourceException: Query Engine Error: 'C:\WINDOWS\TEMP\temp_5909cf2a-a62b-4a2e-8e2f-13085e7f405e.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:\WINDOWS\TEMP\temp_5909cf2a-a62b-4a2e-8e2f-13085e7f405e.rpt']

HERE IS MY CODE:

Imports System.Data.SqlClient
Imports CrystalDecisions.CrystalReports.Engine
------------------------------------------------
    Public creport1 As New CrystalReport1
------------------------------------------------
       Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here

        Dim cnn As New SqlConnection
        cnn.ConnectionString = csAframe
        cnn.Open()

        Dim da As New SqlDataAdapter("Select top 5 * from adhoc_externaluseractivity", cnn)

        Dim ds As New DataSet
        da.Fill(ds)

        creport1.SetDataSource(ds)

        Me.CrystalReportViewer1.ReportSource = creport1
       
    End Sub
0
Comment
Question by:akzocols
2 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
Comment Utility
akzocols,

I have move this to the Crystal Reports topic where I think you will have a better chance of getting a solution.

COBOLdinosaur
Page Editor, Web Development Software

0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
Comment Utility
Your report is surely built using a xsd file (schema). In that schema, tables have names. When you fill the dataset object, give the same names (da.Fill(ds, "tableName"))
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now