Solved

CrystalDecisions.CrystalReports.Engine.DataSourceException: Query Engine Error

Posted on 2004-10-01
2
6,539 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 12204234
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 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 12204880
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 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