Solved

CrystalDecisions.CrystalReports.Engine.DataSourceException: Query Engine Error

Posted on 2004-10-01
2
6,581 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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

626 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