Crystal Report XI – MultiThread failed - PEOpenEngineEx Error:512

In Crystal Report XI u2013 Multi Thread - function PEOpenEngineEx failed. Reason: Report engine not opened
Hi
I am using Crystal report XI with Delphi 7
OS: Windows XP.
Delphi 7
CR Version: Crystal Report XI
In Crystal Report XI While calling PEOpenEngineEx() by setting Engine option as multi thread, It failed with error message u201CError:512 Report Engine Not Openedu201D
Code Change in Delphi 7 UCrpe32.pas (Crystal Reports XI Release 1 - Service Pack 3 and Service Pack 4)
  aEngineOptions.openEngineType := PE_OE_MULTI_THREADED;
  FEngineOpened := FCrpeEngine.PEOpenEngineEx(EngineOptions);
I tried the same with Crystal Report 8.5 (above mentioned code change) Function PEOpenEngineEx() working fine.
How to overcome this error to make work Multi Thread using CR XI?
Regards,
Jamson.

I would make verify the database within Crystal report and then re publish it again. It seems it doesn't get the connection to the db.
Have you refreshed the database within Crystal Reports?
As Graham said, does it open in Crystal Viewer?
another thing would be to add the DSN (System DSN) onto your client machine as well. Maybe it is not getting a right connection.
Try it and let us know.
Kind Regards
Jehanzeb

Similar Messages

  • Crystal Reports 2008 Loading Failed Error in Windows 7

    Hi,
    We are using Crystal Reports 2008 in our application. These are working fine in XP Professional OS. But the Same code is not working in Windows 7 operating system. When I debug, I found report Load is failing. Error is at below line of code.
    CR.Load( "D:\Sample_Win7.rpt", OpenReportMethod.OpenReportByTempCopy)  ' CR is Report Document
    Can any one suggest me, what settings are required in Win 7 OS to get out of this issue.
    Thanks inadvance,
    Kiran

    Hi,
    Thanks for the reply. Here is the exact issue description.
    CrystalDecisions.Shared.CrystalReportsException was caught
      Message="Load report failed."
      Source="CrystalDecisions.CrystalReports.Engine"
      StackTrace:
           at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod)    at SampleReportInWin7.Form1.Button1_Click(Object sender, EventArgs e) in D:\Brookledge SW\SampleReportInWin7\Form1.vb:line 22
      InnerException: System.Runtime.InteropServices.COMException
           ErrorCode=-2147467259
           Message="The system cannot find the path specified. "
           Source="Analysis Server"
           StackTrace:
                at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
           InnerException:
    Thanks for your time,
    Kiran

  • Crystal Reports ActiveX Designer Failed to open document

    Yesterday I created a report in Visual Studio 2008 with about 20 subreports, each subreport containing a single aggregate query (i.e count or sum). I then saved the report file. Hours later when I attempted to reopen the report in Visual Studio I recived the message box "Crystal Reports ActiveX Designer Failed to open document". The report file was completely unusable - it could not be opened for editting.
    Today I repeated the process twice (once ith multiple subreports and once with all aggregate queries combined in a single subreport), only to have the new report files become unusable with the same error message. I am completely shocked at this behaviour from Crystal Reports. I have now spent 10+ hours with no usable report. I realy need a fix for this ASAP!!! Any suggestions would be greatlhy appreciated.

    Hi Jeff,
    Just wanted to confirm you were on SP1.
    I've found that these types of error are usually due to corrupt system files or sometimes even Anti-virus software denying access. If there is no error it's not CR corrupting the file.
    Look in your AV logs to see if it's logging anything.
    Another possibility is with MS pushing out patches they can also cause problems. I've see them change permissions on our dependencies that can cause problems.
    Sorry I can't be specific but without seeing your report or any details you'll have to determine at which step in the report it stops working.
    Can you save any reports now?
    Steps to debug, create a new report with no subreports and save it. Then re-open, if that works then start adding one subreport and then save/open. It may be something related to either the subreports or the number of subreports.
    You could try doing a repair install of VS and SP1.
    Was this working at one time or is this something new, do you have other reports that are similar that have problems?
    You need to debug the report and find out what is causing it to be corrupted. Try adding the 20th subreport and then delete it also.
    Don

  • HostXYZ.cacheserver - Crystal Reports Cache Server: Failed to start/stop

    Hi,
    We are  unable to  open any of the BO Crystal Reports through our 'Clarity PPM Web Application'.When we logged on to the BO CMC portal in the production environment, In the 'Servers' section, we could see the 'HostXYZ.cacheserver in 'Stopped' state.When we are trying to restart that server, it results in an error "HostXYZ.cacheserver - Crystal Reports Cache Server: Failed to start/stop".Could you please help me how to proceed further?Please let me know, if you need any other information.
    Thanks,
    Sandeep

    WHich version of BO do you use? Go into the CMC navigate to Servers and check the Metrics section of your Central management server. There should be a version number like x.y.z.w there. Can you please post it here?
    Regards,
    Stratos

  • Crystal Report throws Unexpected Database Connector error

    Hi,<br>
    <br>
    We are using Crystal report 2008 CR4E API to implement the crystal report in our application. We use the below code to reset the report data source with our application data source. It works fine for most of the simple queries. But if the query contains any function defined in the SELECT Clause it throws Unexpected Database Connector error. As per the log and analysis we believe the root cause of the exception is it consider that function as column in the table and throws the SQL Exception that "function is Invalid Identifier". Could you please help in resolving this issue?
    <br><br>
    Code:<br><br>
         Tables tables = clientDoc.getDatabaseController().getDatabase().getTables(); <br>
                for(int i = 0;i < tables.size();i++){<br>
                    origTable = tables.getTable(i);<br>
                    if (tableName == null || origTable.getName().equals(tableName)) {<br>
                        newTable = (ITable)origTable.clone(true);<br>
                        newTable.setQualifiedName(origTable.getAlias());<br>
                        connectionInfo = newTable.getConnectionInfo();<br>
                        propertyBag = new PropertyBag();<br>
                        propertyBag.put("Trusted_Connection", params.trustedCon);<br>
                        propertyBag.put("Server Type", params.serverType);<br>
                        propertyBag.put("Use JDBC", params.useJdbc);<br><br>
                        propertyBag.put("Database DLL",params.databaseDLL);<br>
                        propertyBag.put("Connection URL", params.connectionURL);<br>
                        propertyBag.put("Database Class Name", params.dbClassName);<br>
                        connectionInfo.setAttributes(propertyBag);<br>
                        connectionInfo.setUserName(params.userName);<br>
                        connectionInfo.setPassword(params.password);<br>
                        clientDoc.getDatabaseController().setTableLocation(origTable, newTable); // Exception is thrown here<br>
              }                    <br>
         }     <br>
    <br>
    SQL Query : <br><br>
    Select empno, Fun_getEmpAddress(empno) from employee where empno = ?<br><br><br>
    Error Log:<br><br>
    2011-04-26 16:30:41.926 89022900 CrystalReportParms_jsp._jspService(368) Error while generating crystal report<br>
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2285)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2305)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:737)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)<br>
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)<br>
         at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)<br>
         at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)<br>
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)<br>
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)<br>
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)<br>
         at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)<br>
         at com.crystaldecisions.sdk.occa.report.application.an.a(SourceFile:108)<br>
         at com.crystaldecisions.sdk.occa.report.application.b0.if(SourceFile:148)<br>
         at com.crystaldecisions.sdk.occa.report.application.b0.b(SourceFile:95)<br>
         at com.crystaldecisions.sdk.occa.report.application.bb.int(SourceFile:96)<br>
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(SourceFile:151)<br>
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(SourceFile:106)<br>
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:2159)<br>
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:543)<br>
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:3898)<br>
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(SourceFile:2906)<br>
         at com.mysystems.myapp.common.CRJavaHelper.changeDataSource(CRJavaHelper.java:157)<br>
         at com.mysystems.myapp.common.CrystalReport.print(CrystalReport.java:202)<br>
         at org.apache.jsp.english.CrystalReportParms_jsp._jspService(CrystalReportParms_jsp.java:368)<br>
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<br>
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br>
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)<br>
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)<br>
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)<br>
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br>
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br>
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>
         at com.mysystems.myapp.common.MyServletFilter.doFilter(MyServletFilter.java:107)<br>
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br>
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br>
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br>
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br>
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br>
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)<br>
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)<br>
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)<br>
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)<br>
         at java.lang.Thread.run(Thread.java:595)<br>
    Caused by: com.crystaldecisions.reports.common.QueryEngineException: Unexpected database connector error<br>
         at com.crystaldecisions.reports.queryengine.Connection.bf(SourceFile:2958)<br>
         at com.crystaldecisions.reports.queryengine.Rowset.z3(SourceFile:944)<br>
         at com.crystaldecisions.reports.queryengine.Rowset.bL(SourceFile:533)<br>
         at com.crystaldecisions.reports.queryengine.Rowset.zM(SourceFile:245)<br>
         at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:776)<br>
         at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:2234)<br>
         at com.crystaldecisions.reports.queryengine.Table.if(SourceFile:2161)<br>
         at com.crystaldecisions.reports.queryengine.Table.try(SourceFile:1525)<br>
         at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:568)<br>
         at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2405)<br>
         at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)<br>
         at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)<br>
         at com.crystaldecisions.reports.common.Document.a(SourceFile:203)<br>
         at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)<br>
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1167)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)<br>
         ... 47 more<br>
    Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Unexpected database connector error<br>
         at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)<br>
         at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)<br>
         at com.crystaldecisions.reports.queryengine.Connection.bf(SourceFile:2953)<br>
         ... 63 more<br>
    Caused by: java.sql.SQLException: ORA-00904: "Fun_getEmpAddress": invalid identifier<br>
    <br>
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)<br>
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)<br>
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)<br>
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:622)<br>
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:111)<br>
         at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:350)<br>
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:895)<br>
         at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:382)<br>
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:985)<br>
         at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1515)<br>
         ... 66 more<br>

    i'm also getting the same error when i'm trying to call stored procedure (that will fetch the result set and populate the report) through the query in the report-viewer.jsp. The result set is fetched i.e. when i print the result set it shows on tomcat but it is not getting passed to Table object to populate the report. However when i try to give the query explicitly in the form of SELECT statements, it works fine i.e. i can view the report in the browser. But giving query in the form of SELECT is a very naive way and is ok if u have too less reports not requiring too many joins, thats why i was using stored procedure. Any help would be appreciated.

  • Crystal Report Log in Failed

    Hi All,
    I am having a problem when creating a Crystal report from a Universe. when i go for new connections --> Universe -->its not asking for any log in details, its providing me the list of universes that are available. when i select my universe its giving me a Webi type interface to create a query. After creating my query and click on ok, its giving an error "LOGIN FAILED".
    Please help,
    Thanks in advance,
    Raja.N

    Hi Raja,
    I moved your post to the Universe Forum. It may be a problem with the Universe or could be a problem with you logging into Enterprise/Repository. Either way I suspect it's a configuration issue first.
    Don

  • Crystal reports "Database login failed" when using push method

    I have a web application (ASP.NET, .NET v3.5), that pushes data to a CR 2008 report. On two servers one of the three reports returns a "Database login failed" error. I am stumped since there is no login, it's push not pull; in addition the problem is hard to debug since it works fine from my developers workstation. I have "updated" the xsd in that report, reinstalled the app, etc., non of which helped. If anyone has a solution or even ideas I'd appreciate the help.

    What about following the troubleshooting steps as described in the blog;
    Create an XML file off of your dataset. Make sure this is done just before you set the dataset to the report:
                rpt.Load(rptPath)
    myDataset.WriteXml(xmlPath, XmlWriteMode.WriteSchema)
    rpt.SetDataSource(myDataset)
    Copy the above created XML to your development system
    Open the problem report in the Crystal Reports designer
    In the Desigger, go to the Database menu and select u201CSet Datasource Locationu201D
    In the u201CReplace with:u201D pane, expand the u201CCreate New Connectionu201D folder.
    Double click the u201CADO .NET (XML)u201D icon
    Browse to the location of the XML file you created in step (1)
    Click on the path to the XML. The <Update> button should enable
    Click on the <Update> button
    Typically, either of the following will happen:
    You will get a u201CMap Fieldsu201D dialog. This indicates that the XML written off of your dataset does not match what the report is expecting. This may be due to incorrect fields name, incorrect field type, etc. You will now need eliminate the difference.
    Incorrect data or no data. There is an issue with your dataset and you need to determine why the data is not present in your dataset. Looking at the XML may be a good place to start.
    Ludek

  • Crystal 2011 getting Logon failed IM004 error when using ODBC (RDO)

    I just installed Crystal Reports 2011 on Windows 7 Ultimate SP1.  Sporadically, but way too often (I would estimate about 60% of the time), when I go to set up an ODBC (RDO) connection or refresh an existing report and enter the password, I get the following error:
    Logon failed.
    Details: IM004:[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_Handle_ENV failed
    Other times, it just works, with no changed made.  It seems to work slightly more often when using the SQL Server driver (the one for SQL 2000) as opposed to the SQL Native Client or SQL Server Native Client 10.0 drivers.  But not often enough for that to be the solution.
    I have tested this with a locally installed SQL Server (on the same machine as Crystal Reports) and remote SQL Servers, with SQL 2000, 2005 and 2008.  Same results.
    I have Crystal Reports 2008 installed on the same machine and have not once had this problem.  I have tried using the same ODBC connections I already had from Crystal 2008 with Crystal 2011 and also to create new ones, same results either way.
    Is this a known issue, or is there a switch/setting I need to change to make this work consistently?  I am especially puzzled by the fact that it seems random, I have not been able to find any pattern at all.

    Hi Victoria,
    MS SQL Server 2008 has a client install now, the MDAC/WDAC doesn't install it as MS used to do with all of their OS's. CR also had to update the use of SQL Server 2008 to include the SQLNCLI10 client engine.
    I suggest, if you have not already, install the Native 10 client from either the SQL Server CD or you can download the MSI from MS's site and only use the Native 10 driver.
    MS kind of dropped ODBC and moved to OLE DB. The native client actually uses the OLE DB driver so using ODBC just puts another layer on top of OLE DB anyways. It's more convenient to use ODBC for deploying applications but it can affect performance.
    Anyways, as noted, CR 2011 is still in Ramp up mode so this issue may have been tracked. If not though you can purchase a support case, if it's a bug then you'll get a refund, if it's a limitation in MS then no refund.
    There is [SP 1 for CR 2011|https://smpdl.sap-ag.de/~sapidp/012002523100007683092011E/cr2011sp1.exe] - http://service.sap.com/sap/bc/bsp/spn/bobj_download/main.htm
    Seems to be a problem with that page right now so try again later... and apply SP 1 or wait until it goes GA and test again. If it's still an issue then you can log a case.
    Firefox just got updated and it's failing, IE works though...
    Thanks again
    Don
    Edited by: Don Williams on Jun 22, 2011 8:51 AM

  • Crystal Reports ClickOnce install fails after upgrade to run time 13.0.2

    I realize this is very similar to two other posts but the ClickOnce failure was not addresses in the two threads I found.
    Visual Studio 2010 V 10.0.40219.1 SP1Rel
    .NET Framework V 4.0.30319 SP1Rel
    Crystal Reports for .NET Framework 4.0 BuildVersion=13.0.2.469.Cortez_CR4VS (from ProductId.txt in the download folder)
    Application was original developed using CR BuildVersion=13.0.1.220.Cortez_CR4VS
    So since I upgraded this week, if a user clicks the Launch link on the deployment web page the application loads the appl;ication update and starts. Does not even check with Crystal Reports but everything seems to work.
    The new version of the Crystal Reports runtime tries to install for users I have that enjoy clicking the run button. The install fails and points at a log file, the key part of which is
    Installing using command 'C:\WINDOWS\system32\msiexec.exe' and parameters ' -I "C:\DOCUME1\clyle\LOCALS1\Temp\VSDC8.tmp\Crystal Reports for .NET Framework 4.0\CRRuntime_32bit_13_0_2.msi" -q '
    Process exited with code 1603
    Status of package 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' after install is 'InstallFailed'
    Uninstalling the previous version manually alleviates the failure as does manually running the msi on the target machine. But that kind of defeats the purpose of ClickOnce. Looking at product.xml that accompanies the runtime download I see it tests for the 13.0.2 version and bypasses the install if it finds it but it does not check for earlier versions.
    Another thread I read indicated changing the switches in the install command would work but I am not clear on how to do that from ClickOnce, I cannot locate where the command is being given. Is there a way to get it to test for previous versions and delete them or force an overwrite using the ClickOnce?

    Ludek,
    Did this issue above every get resolved? 
    Here is what I have:
    ClickOnce, Windows form app that uses Crystal.  I upgraded to VS 2012 and Crystal right along
    with it. 
    I only want the 32bit version to install, even on 64bit
    machines.  I have modified the
    product.xml file to allow for this.  Also
    have some machines with version 13.0.0 and 13.0.1 of the Crystal ClickOnce msi
    file.  Would like to get everyone up to
    13.0.6.
    I am doing ALL this testing on clean VMWare installs.
    Windows 7 x64 and Windows XP x86.
    I force the 32bit install in the product file. (This I believe
    is working correctly) And I do a version check, this is where the problem comes
    in… Below, from the product file:
      <InstallChecks>
        <RegistryCheck
    Property="CRRuntime32Version" Key="HKLM\SOFTWARE\SAP
    BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports"
    Value="CRRuntime32Version" />
      </InstallChecks>
    Note to path in the registry. This path which is installed
    by CR is different for Win7 vs WinXP, not sure why?  In Win7 the path is: 
    HKLM\SOFTWARE\Wow6432Node\SAP
    BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports
    Also if you have version 13.0.0 installed there is no entry
    in the registry for the version number at all!
    The log file also show that it can’t find the version if 13.0.0 is
    installed.
    Admittedly the error log shows that it is somehow finding
    the version if it is 13.0.1 (nothing for 13.0.0)? But even though I have it set
    to skip the 13.0.6 install if the version check is 13.0.1 or higher Crystal
    attempts to install anyway, and it fails in the process, halting the entire
    ClickOnce install.
    In summary.  I need to
    be able to check the version currently installed and update it to 13.0.6.  This fails and seems to be a bug?   Hopefully there is a work around. 
    Thanks,
    Jim
    The product.xml file I have modified is below for review.
    <?xml version="1.0" encoding="utf-8" ?>
    <Product
      xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
      ProductCode="SAP.CrystalReports14.NET.2.0"
    >
      <!-- Defines list of files to be copied on build -->
      <PackageFiles>
        <PackageFile Name="CRRuntime_32bit_13_0_6.msi"
          HomeSite="http://downloads.businessobjects.com/akdlm/crnetruntime/clickonce/CRRuntime_32bit_13_0_6.msi"
          PublicKey="30818902818100cbc8f3d8b4bc4db86f150116f4ad7f2fd2d91d29ae6f752c2aa6489cbda10670a0b97b8840d03dd8d082bfb985882b1278504bdd15a1f2a00b629cd70bf26d94b3933a9647a12c819ca67acd1c32ac942e1b824aad4fd8e8a989c45cf4a13770fe2b233f598ea06b62081174be6b7701f347612c126d42c2f9b759ff00164eb30203010001"/>
      </PackageFiles>
      <RelatedProducts>
        <DependsOnProduct Code="Microsoft.Net.Framework.2.0" />
        <DependsOnProduct Code="Microsoft.Data.Access.Components.2.8" />
      </RelatedProducts>
      <InstallChecks>
        <RegistryCheck Property="CRRuntime32Version" Key="HKLM\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports" Value="CRRuntime32Version" />
      </InstallChecks>
      <Commands Reboot="Defer">
        <Command PackageFile="CRRuntime_32bit_13_0_6.msi"
          Arguments=''
          EstimatedInstalledBytes="50000000"
          EstimatedInstallSeconds="220">
          <!-- These checks determine whether the package is to be installed -->
          <InstallConditions>
            <!-- Comment out the below BypassIf entry if you want to install the 32bit version CRRuntime redist in the target machine -->     
            <!-- ByPass if the Processor is not x86 -->
            <!-- <BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="Intel"/> -->
            <!-- ByPass if the installed version is same or higher -->
            <BypassIf Property="CRRuntime32Version" Compare="VersionGreaterThanOrEqualTo"  Value="13.0.1"/>
            <!-- Block install if user does not have admin privileges -->
            <FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/>
            <!-- Block install on Win95 -->
            <FailIf Property="Version9x" Compare="VersionLessThan" Value="4.10" String="InvalidPlatformWin9x"/>
            <!-- Block install on NT 4 or less -->
            <FailIf Property="VersionNT" Compare="VersionLessThan" Value="5.00" String="InvalidPlatformWinNT"/>
          </InstallConditions>
          <ExitCodes>
            <ExitCode Value="0" Result="Success"/>
            <ExitCode Value="1641" Result="SuccessReboot"/>
            <ExitCode Value="3010" Result="SuccessReboot"/>
            <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
          </ExitCodes>
        </Command>
      </Commands>
    </Product>

  • Export from Crystal Reports 2008 viewer fails if run on separate thread

    I have a windows desktop application written in Visual Basic using Visual Studio 2008.  I have installed and am trying Crystal Reports 2008 to run a report.  Everything seems to work well except that when I preview a report (using the viewer control) and click the export button found in the upper left corner of that control, I get the following message:
    Error 5: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made.  Ensure that your Main function has STAThreadAttribute marked on it.  This exception is only raised if a debugger is attached to the process.
    I am a little confused on what to do exactly.  Is the problem because I am running in the Visual Studio 2008 IDE?  It says this exception is only raise if a debugger is attached to the process.  No, I tried running it outside the IDE.  The exception wasn't generated but the application hung when the button was clicked.
    It says the current thread must be set to single thread apartment (STA) mode.  If the report is run on its own thread, is the "current" thread the thread the report is running on or is the main application's UI thread?  I don't think I want to set my main application to single thread apartment mode because it is a multi-threaded application (although I really don't know for sure because I am new to multi-threaded programming). 
    My objective is to allow reports to run asynchronously so that the user can do other things while it is being generated.  Here is the code I use to do this:
        ' Previews the report using a new thread (asynchronously)
        Public Sub PreviewReportAsynch(ByVal sourceDatabase As clsMainApplicationDatabase)
            Dim backgroundProcess As System.ComponentModel.BackgroundWorker
            ' Start a new thread to run this report.
            backgroundProcess = New System.ComponentModel.BackgroundWorker
            Using (backgroundProcess)
                ' Wire the function we want to run to the 'do work' event.
                AddHandler backgroundProcess.DoWork, AddressOf PreviewReportAsynch_Start
                ' Kick off the report asynchronously and return control to the calling process
                backgroundProcess.RunWorkerAsync(sourceDatabase)
            End Using
        End Sub
        Private Sub PreviewReportAsynch_Start(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
            ' The source database needed to call preview report was passed as the only argument
            Call PreviewReport(CType(e.Argument, clsMainApplicationDatabase))
        End Sub
        ' Previews the report.  From the preview window, the user can print it.
        Public Function PreviewReport(ByVal sourceDatabase As clsMainApplicationDatabase) As FunctionEndedResult
            Dim errorBoxTitle As String
            Dim frmPreview As frmReportPreview
            ' Setup error handling
            errorBoxTitle = "Preview " & Name & " Report"
            PreviewReport = FunctionEndedResult.FAILURE
            On Error GoTo PreviewError
            ' Set up the crxReport object
            If InitializeReportProcess(sourceDatabase) <> FunctionEndedResult.SUCCESS Then
                GoTo PreviewExit
            End If
            ' Use the preview form to preview the report
            frmPreview = New frmReportPreview
            frmPreview.Report = crxReport
            frmPreview.ShowDialog()
            ' Save any settings that should persist from one run to the next
            Call SavePersistentSettings()
            ' If we got this far everything is OK.
            PreviewReport = FunctionEndedResult.SUCCESS
    PreviewExit:
            ' Do any cleanup work
            Call CleanupReportProcess(sourceDatabase)
            Exit Function
    PreviewError:
            ' Report error then exit gracefully
            ErrorBox(errorBoxTitle)
            Resume PreviewExit
        End Function
    The variable crxReport is of type ReportDocument and the windows form called 'frmPreview' has only 1 control, the crystal reports viewer. 
    The print button on the viewer works fine.  Just the export button is failing.  Any ideas?

    Hi Trevor.
    Thank you for the reply.  The report document is create on the main UI thread of my application.  The preview form is created and destroyed on the separate thread.  For reasons I won't get into, restructuring the code to move all the initialization stuff inside the preview form is not an option (OK, if you a really curious, I don't always preview a report, sometimes I print and/or export it directly which means the preview form isn't used).
    What I learned through some other research is that there are some things (like COM calls and evidently some OLE automation stuff) that cannot be run on a thread that uses the MTA threading model.   The export button probably uses some of this technology, thus the message stating that an STA threading model is required.  I restructured the code as follows to accomodate this requirement.  Here is a sample:
    ' Previews the report using a new thread (asynchronously)
        Public Sub PreviewReportAsynch(ByVal sourceDatabase As clsMainApplicationDatabase)
            Dim staThread As System.Threading.Thread
            ' Start the preview report function on a new thread
            staThread = New System.Threading.Thread(AddressOf PreviewReportAsynchStep1)
            staThread.SetApartmentState(System.Threading.ApartmentState.MTA)
            staThread.Start(sourceDatabase)
        End Sub
        Private Sub PreviewReportAsynchStep1(ByVal sourceDatabase As Object)
            Dim staThread As System.Threading.Thread
            ' Initialize report preview.  This includes staging any data and configuring the
            ' crystal report document object for use by the crystal report viewer control.
            If InitializeReportProcess(DirectCast(sourceDatabase, clsMainApplicationDatabase)) = FunctionEndedResult.SUCCESS Then
                ' Show the report to the user.  This must be done on an STA thread so we will
                ' start another of that type.  See description of PreviewReportAsynchStep2()
                staThread = New System.Threading.Thread(AddressOf PreviewReportAsynchStep2)
                staThread.SetApartmentState(System.Threading.ApartmentState.STA)
                staThread.Start(mcrxReport)
                ' Wait for step 2 to finish.  This blocks the current thread, but this thread
                ' isn't the main UI thread and this thread has no UI anymore (the progress
                ' form was closed) so it won't matter that is it blocked.
                staThread.Join()
                ' Save any settings that should persist from one successful run to the next
                Call SavePersistentSettings()
            End If
            ' Release the crystal report
            Call CleanupReportProcess(DirectCast(sourceDatabase, clsMainApplicationDatabase))
        End Sub
        ' The preview form must be launched on a thread that use the single-threaded apartment (STA) model.
        ' Threads use the multi-threaded apartment (MTA) model by default.  This is necessary to make the
        ' export and print buttons on the preview form work.  They do not work when running on a
        ' thread using MTA.
        Public Sub PreviewReportAsynchStep2(ByVal crxInitializedReport As Object)
            Dim frmPreview As frmReportPreview
            ' Use the preview form to preview the report.  The preview form contains the crystal reports viewer control.
            frmPreview = New frmReportPreview
            frmPreview.Report = DirectCast(crxInitializedReport, ReportDocument)
            frmPreview.ShowDialog()
        End Sub
    Thanks for your help!
    Andy

  • Crystal Report That Uses Stored Procedure Errors when connecting to the DB

    We had developed reports a few years ago, including one that calls a Stored Procedure on an iSeries AS400 DB2 database.  We upgraded our environments to Crystal Reports 2008 and BO XI 3.1.  Now, the existing report that previously ran in the old environment is not running (note that the other SQL-based reports work without a problem, only this one which uses a store procedure is not working).  I downloaded the report into my local Crystal Reports designer and tried to run it from there and I got the following error message:
    ======
    Failed to retieve data from the database.
    Details: ADO Error Code: 0x
    Source Microsoft OLE DB Provider for ODBC Drivers
    Description: [IBM][iSeries Access ODBC Driver] Statement violates access rule:  Connection is set to read only.
    SQL State: 37000
    Native Error: [Database Vendor Code: 30186 ]
    ======
    {CALL "<database>"."<library>"."RELEASEDNOTINVOICE"({d '2010-03-01'})}
    This call will still work from on a SQL client running on a JDBC connection.  Is there some problem with the new verion of BO and Crystal Reports with using the iSeries ODBC driver?

    ...my issue was resolved by setting the ODBC.INI registry entry for AllowProcCalls from 0 to 1.

  • Crystal Reports XI: Invalid column name error

    Hello!
    I have a crystal report using a SQL command that is getting the following error (occasionally):
    Failed to retrieve data from the database.
    Details: ADO Error Code: 0x80040e14
    Source: Microsoft OLE DB Provider for SQL Server
    Description: Invalid column name 'IPCSKUGroup'.
    SQL State: 42S22
    Native Error: 207 [Database Vendor Code: 207]
    I say occasionally because if i go to Database>> Log on or Log off server and log off the target server and then rerun the report, it will work.  If i refresh the report with different parameters, i get the error.
    I'm running Crystal Reports XI version 11.0.0.1282 on Windows XP SP2 32-bit.  The data is in a SQL Server 2000 database.
    This is the portion of the query causing the problem:
    (drop/clear temp tables and initiallize a few variables with parameters)
    (...other queries putting together the temp table #WorkingTotals) - This part works fine because the report runs if i remove the following portion.
    select wtt.QtrMax,QuarterName,Year,wtt.IPCSKUGroup as IPCSKUNum,ServicePriceSuggested,PcsBilled,BilledRevenue,PriceIndex,StdRevenue,
    (select sum(TT.BilledRevenue) from
    (select Top 4 wt2.BilledRevenue
    from #WorkingTotals2 wt2
    where wt2.IPCSKUGroup = wtt.IPCSKUGroup and wt2.QtrMax <= wtt.QtrMax order by wt2.QtrMax desc)as TT)
    as M12Revenue
    from #WorkingTotals wtt
    The entire query works fine when I run it in SQL Query Analyzer.  But Crystal has an issue with the way i'm figuring the M12Revenue field.  The M12Revenue is a moving 12 month revenue which is the sum of the revenue for the past 4 quarters for each quarter.
    This is what i've tried thus far:
    Putting the entire query into a stored procedure
    Storing what gets stored in #WorkingTotals into a database table rather than a temp one
    Renaming columns to various different things.
    Each of those still resulted in the error.
    Thanks for the help!!!
    Wes

    Hi Wes,
    What does SQL Profiler show you when the error happens?
    Try using ODBC to see if it also errors, may be an issue in MS's MDAC and the OLE DB driver. MS usually updates MDAC with all Patches but you may want to verify you are using the latest version.
    Thank you
    Don

  • Crystal Ent 10 install fails with Error 1920 and services won't start

    apologies if i'm posting to the wrong group.  just let me know what the appropriate group is and i'll be happy to post there.  i'm new to Crystal and this is my first installation of Ent so i'm completely lost, but here's my problem. 
    i'm trying to install Crystal Reports 10 and Enterprise 10 on a Windows Server 2003 SP1 server logged in as Local Admin and running the install locally (as opposed from a network location).  i have IIS installed and .Net Framework 2.0 installed as per my software vendor's requirements. 
    the Reports 10 install goes fine, but when i near the end of the Enterprise 10 install, each of the services fails to start.  the message for each is a pop-up that states Error 1920. Service 'Crystal Cache Server' (CasheServer) fiailed to start.  Verify that you have sufficient privileges to start the system services.  i clicked Retry on the 1st one (Crystal Cache Server) but it still fails to start.  so i clicked Ignore on all of them so i can get past each one and check the Services window to see what account they are running under - it's Local System account as i'd expect.  At the end of the install, i'm asked if i want to logon to the CMS and i chose No since i'm not familiar with Crystal at all but figured it's not going to work since the services wouldn't start. 
    i can't start them from the Services window or from the Crystal Configuration Manager - i get a message stating it failed to start in a timely fashion. 
    my co-worker and i noticed that after the install, and the MSDE install that CE does, there are the CE10.mdf and CE10.ldf files but it doesn't create 4 tables that expect to see when comparing this to our Test environment that our consultants set up.  we think this is at the heart of it, but we simply don't know.  can anyone help?

    The appropriate group for this type of question is the Business Objects Enterprise Administration forums; I will move your post there today, in the future you can post to that forum.

  • Crystal Reports 2008 installation fails

    I recently re-installed Windows XP SP3 on my laptop and need to re-install Crystal Reports 2008.
    I place the installation CD into the drive and the Auto-run application starts up and asks for the language to install.
    I select English and click on the Install button.
    After about 10 seconds I get a very cryptic error message.
    Crystal Reports 2008 Setup Error
    Crystal Reports Setup 2008 has failed.
    If the problem persists, please contact Business Objects Product Support.
    Any help in this matter would be greatly appreciated.
    Edited by: Truper on Feb 9, 2010 1:58 PM

    It's likely a dependency issue. Make sure the .NET frame 1.1 and 2.0 are installed. GO to Microsofts site or possibly they are an option in the update page.
    Thank you
    Don

  • DB2 support for Crystal Reports for Enterprise And Unx errors

    Hi,
    I have a requirement to create a report in CrystalReports for Enterprise 4 sourcing data from Oracle 11 and IBM DB2 V9 databases. My first approach is to create relational connections for both the databases in the BO Repository (using Universe designer) and use them directley in the CR for Enterprise. Here I was able to create the two connections but unable to use the DB2 connnection in the report. I get the below error:
    "The Database DB2V9 is not supported".
    Is DB2 is a supported database for Crystal reports for Enterprise ??
    My second approach is to create a multisource universe using IDT. Here when I try to create the Datafoundation layer, I get to see the tables from the DB2 databasae but When I expand the Oracle connection, I get this error: "conversion from UTF8 to charset failed: encoding not loaded".
    Im unable to create a multisource universe at all no matter what connections I use.
    Here is some additional info:
    SAP BI4.1 SP1
    Windows 2008 R2 servers
    Oracle 11g
    IBM DB2 V9.7
    Any suggestions please!
    Thanks,
    Ravinder

    Hi,
    First of all I would strongly advice you to only use IDT for your universe development. The old Universe Designer is a legacy tool and should not be used unless you are using products that doesn't support IDT universes.
    The issue you are facing for your Oracle connection is likely caused by a missing path variable.
    Add "C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64" to the PATH environment variables on the SAP Business Objects Enterprise server.
    Restart the SIA
    NOTE: Modify the path in case the SAP BusinessObjects Enterprise is installed in different folder.
    Hope this helps.
    Cheers,
    Josh

Maybe you are looking for

  • Anchored text boxes in XML

    I am wondering if anyone can help.. I have created a structured indesign document (structured as in tagged for XML import). My problem is the first tagged object is an anchored text box which needs to sit on top of the second anchored tagged picture

  • Urgent Oracle 9 and SUSE Enterprise Server 9

    Hallo, i am trying to install on "SUSE Enterprise Server 9" , oracle 9_2_04 Database , but having strange problem. OUI starts and in last Step of wizards it starts to install jre and hangs, nothing happens. Log : java.lang.UnsatisfiedLinkError: /tmp/

  • Why do I get these errors?

    C:\jakarta-tomcat-4.1.29\webapps\projecttest\WEB-INF\classes\com\stardeveloper\web\listener\SessionCounter.java:6: package javax.servlet.http does not exist import javax.servlet.http.HttpSessionListener; ^ C:\jakarta-tomcat-4.1.29\webapps\projecttest

  • Import photos iPhoto - Photoshop Elements

    Hello, I'm using Photoshop Elements 12 trial version. I would buy it but i got one problem with the automatic import function in Photoshop Elements. On the first start of Photoshop Elements, it asked me if I want to import all my photos from iPhoto.

  • Essbase Cube Performance

    Hi, We have migrated Essbase applications and server to new server. But cube build is taking almost double time as compare to old server. Eventhough new server configuration is very powerfull (Processor - 3Ghz, RAM-8GB, Disk Space - 380 GB). All the