Query Engine Error:

Post Author: swordfish8
CA Forum: General
Hi, Many thank for taking the time to read this thread, the web application work on development box but fails when deployed.
Please help, the problem is detailed below, cheers, Praveen
Developed Environment
Web Application Developed in VS .NET 2002
Crystal Reports 9.0
Set Up Package :
Project Output: Primary Output and Content Files selected
Merge Modules:        Database_Access.msm
                                       Database_Access_enu.msm
                             Managed.msm
                             Regwiz.msm
                             VC_CRT.msm
                             VC_STL.msm
Code:
mycommand.CommandText = "ASR_STATISTICS"
mycommand.CommandType = CommandType.StoredProcedure
With mycommand.Parameters
.Add(New SqlParameter("@WeekStartDate", SqlDbType.DateTime)).Value =    _CDate(Me.txtDate.Text.Trim)
.Add(New SqlParameter("@WeekEndDate", SqlDbType.DateTime)).Value = _
  CDate(Me.txtEndDate.Text.Trim)
.Add(New SqlParameter("@Customer", SqlDbType.VarChar)).Value = _
           (Me.lstCustomer.SelectedItem.Value.Trim)
End With
Dim myDA As New SqlClient.SqlDataAdapter()
myDA.SelectCommand = mycommand
Dim myds As New Dataset1()
myDA.Fill(myds, "ASR_STATISTICS")
Dim oRpt As New crptStatistics()
oRpt.SetDataSource(myds)
Me.CrystalReportViewer.ReportSource = oRpt
Installed the web application on the server
Operating System: Windows Server 2003
ERROR
Server Error in '/ASDReports' Application.
Query Engine Error: 'C:\WINDOWS\TEMP\temp_dff30854-29f4-4c4e-8fe0-66dbea4cd19b.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_dff30854-29f4-4c4e-8fe0-66dbea4cd19b.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_dff30854-29f4-4c4e-8fe0-66dbea4cd19b.rpt']
    . K(String 
, EngineExceptionErrorID   ) +514
    . F(Int16   , Int32   ) +493
   CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestContext reqContext) +462
   CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext) +201
   CrystalDecisions.Web.ReportAgent.v(Boolean  `) +137
   CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e) +99
   System.Web.UI.Control.PreRenderRecursiveInternal() +77
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

Post Author: Bandit07
CA Forum: Upgrading and Licensing
I would go through and add in each criteria 1 at a time to see which one is causing the error. 

Similar Messages

  • Query Engine Error when adding to repository.

    I'm using Crystal 9.  I am trying to using the Add Command function as a datasource from an ODBC connection.  The SQL is straightforward.
    Select dbo.CDS_STATDAY.Meta_ID
    From dbo.CDS_STATDAY
    I get an error when I select the "Add to Repository" checkbox in the "Add Command to Report" dialog box.  I don't get an error if I don't select it and the query seems to run fine.
    The errors I get are 'Query Engine Error:"' and then 'Not supported.  Details: Failed to create object.'
    Is this a permissions problem?

    Hi Mark,
    Do you have  Business Objects / Crystal Enterprise in stalled in your network? If so, what is the version of Enterprise you are using ?  This is becuase, the Crystal Query enginene have changed from  CR server XI. 
    Thanks,
    Sastry

  • Query Engine Error in Crystal Report

    I have a asp application with crystal report as reporting tool. Every thing works fine with Oracle 9i, but when i migrate to Oracle Database 10g Release2 some of the reports in crystal report shows following error report.
    Query Engine Error:'HY00:[oracle][ODBC][ora]ora-01456:may not perform insert/delete/update operation inside a Read Only transaction.
    ORA-06521:at "<dbusername>.<procedure name>,line 58
    ORA-06512:at line1
    I checked the database is in READ WRITE mode.
    any help wolud be appreciated.
    Thanks in Advance
    Debashis

    Hi,
    This is posted in the wrong forum. This forum is for Oracle Berkeley DB. Please find the correct forum and post your question there.
    Regards,
    Alex Gorrod,
    Oracle Berkeley DB

  • Query Engine Error in Visual Studio 2005

    Post Author: Chris K
    CA Forum: Crystal Reports
    I created a report in Crystal 11 and have included it in a project created in Visual Studio 2005.  When I try to run the report in VS I get the message: "Query Engine Error: 'Error Code: 0x' Failed to open a rowset.  Error in File"  I can run the report in Crystal without any errors.  The report has subreports and parametes.  I am using a stored procedure in SQL 2005.  I have included may other reports in this project and not had any problems.  Any suggestions?

    Post Author: gandasi
    CA Forum: Crystal Reports
    I had an issue that sounds very similar - report worked beautifully in Crystal, but "failed to return rowset" when run from my application (which is not VS2005, but in my case that didn't matter).
    Turns out that I had not given execute rights to the stored procedure to the public group in SQL server. I guess when running the report in Crystal it was using my Windows Authentication to logon or something which was why that was running OK.
    I explicitly set the permissions on the stored proc to grant public execute, and the report would run from my app.
    Hope this helps
    Cheers

  • Query Engine Error after upgrade from CR for VS2003 to CR for VS2008

    Three CR reports were built in CR 8.5, loaded into VS2003 (C#), and converted. Each report worked fine for the past three years. Each report users the same odbc connection direct to the Sybase 12.5.3 database and each is based on a stored procedure. Each report has input parameters. Recently we did an upgrade to VS2008. We installed the CRRedist2008_x86.msi on the development machine running Windows XP and on the server running Windows 2003. No changes were made to the design of the reports, the parameters, or to the database stored procedures.
    Several other reports run just fine since the update to VS2008, however, two reports are now raising an error message "Query Engine Error: 'An internal error has occurred. Please contact Business Objects technical support.' Failed to open a  rowset." This error message occurs just after ReportViewer.ShowDialog() method is called (login has already been successfully achieved) I verified that with the parameters being passed to the reports are correct and that these should indeed be returning data.
    One additional report is also now raising the error "Query Engine Error at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext) ". It can be described as above, odbc connection to Sybase 12.5.3, achieves a successful login, based on a stored procedure that is unchanged. The rpt itself is unchanged.
    I would appreciate your assistance with getting these reports working again. Any suggestions welcome!

    I forgot to mention that I had already done a 'Verify Database' on each of these reports, with no success. However, I have now repeated the 'Verify Database' on each report and they all work. Not sure why it had to be done a second time, but I am very happy that it works. Thank you for your response.
    In answer to your question - why does the Crystal Reports runtime have to be installed on the development machine? This is because our process includes an installation of the application on the development machine, independent of the debug environment, and a test of that application instance before deploying to the application server.

  • Crystal Reports 10 Error "Unknown Query Engine Error"

    Hi guys,
    after creating reports with crystal reports 2008 fails,because there's no 64-bit runtime version i try to develope my reports now with Crystal Reports 10 (ships with Visual Studio 2008).
    I've minimized the complexity to a minimum - a simple console application without SharePoint or something like that. Now i'm getting the error:
    "Unknown Query Engine Error"
    when i try to set the DataSource for my report. Of course i created a new report file with CR10 to avoid compatibility issues. Every Users has full permissions on the file system...
    I'm using the follwing Code Snippets, which are working fine for Crystal 2008 and don't threw an error while compiling in CR10.
    Schema.xsd:
    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema id="XMLSchema1"
        targetNamespace="http://tempuri.org/XMLSchema1.xsd"
        elementFormDefault="qualified"
        xmlns="http://tempuri.org/XMLSchema1.xsd"
        xmlns:mstns="http://tempuri.org/XMLSchema1.xsd"
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
    >
      <xs:element name="News">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Title" type="xs:string" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    ConsoleApplication.cs:
                MyReport report = new MyReport();
                DataSet ds = new DataSet();
                DataTable t = new DataTable("News");
                DataColumn title = new DataColumn("Title");
                title.DataType = Type.GetType("System.String");
                t.Columns.Add(title);
                ds.Tables.Add(t);
                DataRow drDataRow;
                drDataRow = t.NewRow();
                drDataRow["Title"] = "My Title";
                t.Rows.Add(drDataRow);
                * //Error is thrown here*
                report.SetDataSource(ds);
                string filename = "C:\\report.pdf";
                report.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat,
                     new System.IO.FileInfo(filename).ToString());
    Does anyone have an advice: Do i miss a patch or hotfix? These problem frustrates me already, because i thought setting a datasource couldn't be such a problem...
    Thanks in Advance,
    Christian

    Resolution:
    This Version of Crystal Reports (Visual Studio 2008 .Net) doesn't want the crdb_adoplus.dll in the GAC. After i uninstall the *.dll the Console Application run without problems. For SharePoint you have to create a custom CAS which should look like this:
    <CodeGroup
                                  class="UnionCodeGroup"
                                  version="1"
                                  PermissionSetName="FullTrust"
                                  Name="Crystal_Strong_Name"
                                  Description="This code group grants code signed with the Crystal Reports strong name full trust. ">
                                <IMembershipCondition class="StrongNameMembershipCondition"
                                                      version="1"
                                                      PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100f1191170c753924fe8b624c15216d8d4869e4f37d0e7941b77c05c67ba0662a7ad9099e1041739a3b1f33255c4f8c878649a558b7aaef8e08c7ce3edc2275cbda2608381813fc038db8e5792a729658c59e73121691f22197aa92c7e715d7dfdbb2730b037ccdfcd2708fbfc8c9a1a60be50c635975afce4e4b1e3e12613cfc2"
                                                      />
    Well - CR drives me crazy
    Edited by: C.Kaiser on Oct 14, 2010 4:36 PM

  • Unknown Query Engine Error when doing a Verify Database

    Hi there,
    Using Crystal 10. Sybase Server.
    Have built a report that connects to a stored procedure. The stored procedure has since been updated, and new fields have been added.
    Usual process for me is to simply:
    1. Go to Database > Verify Database
    2. Enter login credentials for server
    3. Enter parameter values (as per stored proc)
    4. Report is then updated and new fields display
    Currently, I am able to complete step 3. As soon as I hit ok, i get an 'Unknown Query Engine Error' - to which I can only hit OK. Doing so results in no changes - and the new fields of course do not display.
    Any clues on what might be going wrong? I am guessing that it is something to do with the stored proc itself - but perhaps it is some sort of permissions issue?
    Grateful for any assistance you can provide. Please let me know if you need any more info from me.
    Many thanks,
    Corinne

    Likely due to some field type defined incorrectly or not supported. Try creating a new report off the new update connection info. If that fails also then it's the data source causing the problem.

  • Unknown Query Engine Error

    Post Author: Scott Miers
    CA Forum: Data Connectivity and SQL
    Hello,
    I have an application written in vb6 that opens a crystal 11 report.
    The report retrieves data from Microsoft SQL Server 2005.
    Occasionally, I get this error when opening large reports:
    "Unknown Query Engine Error"
    The error also occurred on Microsoft SQL Server 2000 and Crystal 8.5
    I only receive this error message on windows XP. This error does not occur on Windows 2000 workstation or server.
    I can easily reproduce the problem.
    Any Suggestions?
    Regards,
    Scott

    Post Author: sharonmtowler
    CA Forum: Data Connectivity and SQL
    im not sure if you are asking a question, do you place the parameters in the sub report as well as the main?

  • Query engine error after upgrading from vs2003 to 2008

    Hi,
    I had crystal reports installed and working with visual studio 2003 using .Net. After upgrading to visual C# 2008 Express, When I attempt to create a report at runtime, I get the error "Query Engine Error. <filelocation>\report1.rpt"
    If I attempt to edit a report at design time, I get the following error: "There is no editor available for <fileLocation>\report1.rpt. Make sure the application for the file type (.rpt) is installed.
    Can anyone point me in the right direction??
    Thanks,
    Dittimon

    Crystal Reports is not supported with the Express editions of Visual Studio.
    If you are going to use VS.NET 2008 you will need to use the Professional Version or higher.
    This is noted in the following help file: [CR 2008|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm ]
    Under Supported Versions of Visual Studio
    Jason

  • Query Engine Error 'crdb_b1.dll'

    Can anyone help me with this error. I am trying to load crystal report for SAP B1 with data coming from stored procedure from vb.net

    Hi,
    Please refer SAP note:
    1758302 - Error while connecting to Crystal
    Thanks & Regards,
    Nagarajan

  • Crystal Reports 10/XI - Unexpected Engine Error 91(106)

    I'm getting the following error when attempting to run a report in CR 10 and / or CR XI
    The PC with CR 10 is running XP and the PC with CR XI is running Vista
    Query Engine Error: 'HY000:|CA||ODBC CA-Datacom/DB Driver||CA-DATACOM/DB| UNEXPECTED ENGINE ERROR: 91(106)
    the error on the Vista / XI machine offers slightly more information;
    Query Engine Error: 'HY000:|CA||ODBC CA-Datacom/DB Driver||CA-DATACOM/DB| UNEXPECTED ENGINE ERROR: 91(106) |Database Vendor Code - 117|'
    I can't seem to find a reference to this 'Vendor Code' in any documentation from CA or Crystal
    The unusual thing is that I only get this error when I have a specific number of parameters as selection criteria; I have several fields in the selection expert; and I only get the error when one of those fields speficically has exactly 2 values in the 'IN' clause; If I add an additional value, or subtract a value, the report comes back as expected; It doesn't matter what the values are, as I have mixed and matched many combinations;
    As a work around I have simply added an extra value that doesn't actually exist to the 'IN' clause, and I am getting my desired results, however my boss would like to have an answer to why this is happening
    Any information, or direction that anyone could point me in would be greatly appreciated!

    The error code belongs to the odbc driver which is why you can't find it. Typically this is due to the client is not installed or can't be found

  • Error in File... Failed to create the Crystal Query Engine.

    I am attempting to use Compliance Suite 4 to open a report.  The error I get is:
    Error in File
    S:\Applications\Apps\CSuite\Reports\schedstu.rpt:
    Failed to create the Crystal Query Engine.
    S:\Applications\Apps\CSUITE\Report\schedstu.rpt
    When we attempt to open the report with Crystal Reports XI we get the following:
    NO SAVED DATA
    This report file does not contain saved data and cannot be viewed.
    These reports will open for the same account on a different PC.  Has anyone seen this?  Thanks!

    You'll probably get a quicker answer from the people at Compliance Suite. All that error is telling me is that the database engine does not understand what it is that you're throwing at it in terms of a database connection or data type. As it's a 3rd party app, I do not know how this is implemented so that is all I can say...
    Ludek

  • Query engine failed error for crytal report refreshing to new params in jsp

    Using licensed weblogic 8.1 server in production mode. Weblogic workhsop has inetegrated supprot for crystal reports 9. Using standalone report & accessing sql server through odbc, i got result for different parameters passed.
              Problem Area : Passing parameter to have specific report causes unexpected query engine failed error in com.crystaldecisions.report.web.viewer.CrystalViewer class. If viewer.refresh method is commented, then static (already saved) report is displayed through jsp. But using viewer.refresh method for dynamic report genertaion for new parameters through jsp gives above error.

    Hello
              I'm experiencing the same problem. Please let me know if you've any solution.

  • Query engine : Can not find DSN in Connection String

    DearSir/Madam,
    Opearating System Windows 7 Professional(32-bit).
    I am using Application, which is developed : Visual basic 6.0(32-bit), Report Writer : Crystal Report 9.2.693(32-bit) and database: Oracle 9.2.0.10(32-bit).
    ODBC Data source : System DSN created and Connection established (Based on Driver : CR ORACLE ODBC Driver 4.10 (cror818.dll))
    In windows 7 environment Data Base connectivity and data fetching also wroking fine.
    My problem is while running reports it display error as "Query engine : Can not find DSN in Connection String"
    I want run time reports.
    For your kind information, at the same time in Windows XP Professional there is no problem found and working fine.
    Kindly help me.
    Thanks and regards,
    Swarup

    Crystal Reports 9.x is not supported on Win 7. See the following wiki:
    http://wiki.sdn.sap.com/wiki/x/b4JiAw
    - Ludek

  • Another Problem will Crystal Query Engine

    Post Author: AHandford
    CA Forum: Upgrading and Licensing
    Hello,
    I have in the past had problems with the crystal query engine, which were resolved by registering the crqe.dll  in the bin directory.  That was on Windows 2000. In that case I was able to open reports in  CR developer successfully and export Crystal reports in PDF format from a third party LIMS system. No problems.
    I have now got XP and am having to troubleshoot the problem again. I registered the dll and my install of CR10 is working fine but  I get the usual "Failed to create the Crystal Query engine" when trying to export the Crystal report from LIMS. If I replace the CRQE.dll ( dated 2003) which was shipped with v10 with another CRQE dll (dated april2006) I can now export from the third party LIMS OK but cannot open the reports in developer.
    Is there any specific problem with doing this on XP?  Do I need a full set of more recent dlls to get this to work?
    Manty thanks,
    Andy Handford

    You'll probably get a quicker answer from the people at Compliance Suite. All that error is telling me is that the database engine does not understand what it is that you're throwing at it in terms of a database connection or data type. As it's a 3rd party app, I do not know how this is implemented so that is all I can say...
    Ludek

Maybe you are looking for