Database Connector Error:'DAO Error Code:0xc03

hi Guys ,
I m getting an error while im adding parameter in my Crystal parameter.
The Error is-
Database Connector Error:'DAO Error Code:0xc03
Source:DAO Database
Description:Malformed GUID,in query expression
'Year=Year(#2010-04-27 11:23:15#)and Month <=Month({?End Date})'.'
I have used the following Sql Query:
SELECT  Sum(Amount)  AS  Year_BUDGET, [Account Number]
FROM  [Monthly Account Budgets]
WHERE  Year = Year ({?End Date}) and Month <= Month({?End
Date})
GROUP BY [Account Number];
Plz try to give me any solution.

Is there really a carriage return (new line) between "{?End" and "Date}" in the Month() expression as shown above?  It looks like Crystal isn't recognizing {?End Date} in that part of the formula and doing the substitution correctly.
HTH,
Carl

Similar Messages

  • Unexpected database connector error---- Error code:-2147467259

    Hi, I am using Crystal Report for Eclipse 12.2.208).
    My rpt file contains a command with a simple sql query
    In eclipse I used this rpt and generated the Jsp file to export the report to Pdf format
    But exception is thrown in the following line of Jsp
    //Push the Java ResultSet into the report (this will then be the datasource of the report)
    CRJavaHelper.passResultSet(clientDoc, fetchResultSet(driverName, connectStr, userName, password, query), tableAlias, "");
    CRJavaHelper.java
    clientDoc.getDatabaseController().setDataSource(rs, tableAlias,tableAlias);
    While replacing the result set I am getting the following error.... Please help me on this.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2285) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2305) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:737) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167) at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529) at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527) at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352) at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54) at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67) at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716) at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125) at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537) at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(SourceFile:605) at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(SourceFile:1688) at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.new(SourceFile:2650) at com.crystaldecisions.sdk.occa.report.application.b9.onDataSourceChanged(SourceFile:301) at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:962) at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:2834) at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setDataSource(SourceFile:2557) at com.businessobjects.samples.CRJavaHelper.passResultSet(CRJavaHelper.java:263) at org.apache.jsp.Report2008_002dviewer_jsp._jspService(Report2008_002dviewer_jsp.java:120) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Unknown Source) Caused by: com.crystaldecisions.reports.common.QueryEngineException: Unexpected database connector error at com.crystaldecisions.reports.queryengine.Connection.bf(SourceFile:2962) at com.crystaldecisions.reports.queryengine.Rowset.z3(SourceFile:944) at com.crystaldecisions.reports.queryengine.Rowset.bL(SourceFile:533) at com.crystaldecisions.reports.queryengine.Rowset.zM(SourceFile:245) at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:776) at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:2234) at com.crystaldecisions.reports.queryengine.Table.if(SourceFile:2161) at com.crystaldecisions.reports.queryengine.Table.try(SourceFile:1525) at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:568) at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2405) at com.crystaldecisions.reports.datafoundation.DataFoundation.a(SourceFile:1234) at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:344) at com.crystaldecisions.reports.dataengine.dfadapter.CheckDatabaseHelper.a(SourceFile:66) at com.crystaldecisions.reports.dataengine.datafoundation.CheckDatabaseCommand.new(SourceFile:100) at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71) at com.crystaldecisions.reports.common.Document.a(SourceFile:203) at com.crystaldecisions.reports.dataengine.VerifyDatabaseCommand.new(SourceFile:76) at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71) at com.crystaldecisions.reports.common.Document.a(SourceFile:203) at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175) at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.a(SourceFile:373) at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.if(SourceFile:352) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1291) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)

    Please ensure that you have upgraded to Service Pack 4.  There was a bug related to Unexpected Database Connector error that was resolved in the latest service pack release this February.

  • 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.

  • ReportClientDocument throws - Unexpected database connector error

    Hi,
    We are getting a weird exception in Websphere 6.1 server when we try to open a crystal report using ReportClientDocument object. It is throwing an unexpected database connector error when we try to change the datasource of the report. It would be great if some one can help us with the solution.
    Code:
    ReportClientDocument reportClientDocument = new ReportClientDocument();
    reportClientDocument.open(REPORT_NAME, 0);
    Tables tables = reportClientDocument.getDatabaseController().getDatabase().getTables();               
    ITable table = tables.getTable(0);
    reportClientDocument.getDatabaseController().setDataSource(resultSet0, tableName0 , tableName0+"_ResultSet");
    P.S: The same code works fine in Tomcat 6.0 server.
    Exception:
    [1/11/11 17:34:10:141 GMT+05:30] 00000037 SystemOut     O Connection logon successfully
    [1/11/11 17:34:10:145 GMT+05:30] 00000037 SystemOut     O Rowset restart: moveToStart true
    [1/11/11 17:34:10:145 GMT+05:30] 00000037 SystemOut     O Rowset execute
    [1/11/11 17:34:10:168 GMT+05:30] 00000037 SystemOut     O  detected an exception: Unexpected database connector error
         at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2409)
         at com.crystaldecisions.reports.datafoundation.DataFoundation.a(SourceFile:1234)
         at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:344)
         at com.crystaldecisions.reports.dataengine.dfadapter.CheckDatabaseHelper.a(SourceFile:66)
         at com.crystaldecisions.reports.dataengine.datafoundation.CheckDatabaseCommand.new(SourceFile:100)
         at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
         at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
         at com.crystaldecisions.reports.dataengine.VerifyDatabaseCommand.new(SourceFile:76)
         at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
         at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
         at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.a(SourceFile:373)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.if(SourceFile:352)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1291)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
         at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
         at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(SourceFile:605)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(SourceFile:1688)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.new(SourceFile:2650)
         at com.crystaldecisions.sdk.occa.report.application.b9.onDataSourceChanged(SourceFile:301)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:962)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:2834)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setDataSource(SourceFile:2557)
         at com.crystaldecisions.reports.sdk.DatabaseController.setDataSource(SourceFile:87)

    It appears that you are trying to pass a resultset to the report, only things i can think of is, either the jar file needed for that type of connection is missing, or maybe the app servers are using different versions of java which causes it to act differently.

  • Unexpected Database Connector Error - Help please !!

    Hi,
    I am trying to use stored procedure in the crystal report, that comes bundled with RAD7. The following code I got from http://diamond.businessobjects.com/node/520 for using the stored procedure. I am getting 'UnexpectedQueryEngineError' on JRCCommunicationAdapter when trying to establish data connection to add the stored procedure to the report. I tried the same example above for adding table to the report by modifying 'Procedure' to 'Table' and it worked fine.
    I really need to use the stored procedure in the report and get to have this working soon. Immediate help is greatly appreciated.
    import java.io.IOException;
    import com.crystaldecisions.sdk.occa.report.application.DatabaseController;
    import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
    import com.crystaldecisions.sdk.occa.report.data.ConnectionInfo;
    import com.crystaldecisions.sdk.occa.report.data.DBField;
    import com.crystaldecisions.sdk.occa.report.data.FieldValueType;
    import com.crystaldecisions.sdk.occa.report.data.Fields;
    import com.crystaldecisions.sdk.occa.report.data.Table;
    import com.crystaldecisions.sdk.occa.report.data.Procedure;
    import com.crystaldecisions.sdk.occa.report.lib.PropertyBag;
    import com.crystaldecisions.sdk.occa.report.lib.PropertyBagHelper;
    import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;
    public class AddSampleProcedure {
        public static void main(String[] args) throws ReportSDKException, IOException {
            ReportClientDocument clientDoc = new ReportClientDocument();
            clientDoc.setReportAppServer("inproc:jrc");
            // Open report
            clientDoc.newDocument();
            DatabaseController ctr = clientDoc.getDatabaseController ();
            Procedure table = new Procedure (); //Table table = new Table();
            String tableName = "Welcome"; //tableName = "Product";
            table.setAlias (tableName);
            table.setName (tableName);
            table.setQualifiedName (tableName);
            table.setDescription (tableName);
            /*Fields fields = new Fields ();
            DBField field = new DBField ();
            String fieldName = "product_name";
            field.setDescription (fieldName);
            field.setHeadingText (fieldName);
            field.setName (fieldName);
            field.setType (FieldValueType.stringField);
            field.setLength(255);
            fields.add (field);
            table.setDataFields (fields);*/
            String ServerName = serverName;
            String DatabaseName = dbName;
            String JDBC_URL=jdbcURL;
            String JDBC_Class = "oracle.jdbc.driver.OracleDriver";
            String UserName = userName;
            String Password = password;
            PropertyBag attrs = new PropertyBag();
            attrs.put(PropertyBagHelper.CONNINFO_DATABASE_DLL, "crdb_jdbc.dll");
            attrs.put(PropertyBagHelper.CONNINFO_SERVER_NAME, ServerName);
            attrs.put(PropertyBagHelper.CONNINFO_DATABASE_NAME, DatabaseName);
            attrs.put(PropertyBagHelper.CONNINFO_SERVER_TYPE, "JDBC (JNDI)");
            attrs.put(PropertyBagHelper.CONNINFO_JDBC_DATABASECLASSNAME, JDBC_Class);
            attrs.put(PropertyBagHelper.CONNINFO_JDBC_CONNECTION_URL, JDBC_URL);
            ConnectionInfo info = new ConnectionInfo ();
            info.setAttributes (attrs);
            info.setUserName(UserName);
            info.setPassword(Password);
            table.setConnectionInfo (info);
            ctr.addTable (table, null);
            clientDoc.saveAs("AddProcedure.rpt", "C:/Test", 1);
            System.out.println("Done");
    Thanks in advance,
    Lakshmi

    Hi there,
    I havent got any replies on the above exception and I am totally stuck. I thought I can provide more details on 'Unexpected Database Connector Error'. This is the exact place where it fails.
    01 May 2008 14:20:17 [main] FATAL com.businessobjects.reports.sdk.JRCCommunicationAdapter - Request failed and JRC Command failed to be undone
    01 May 2008 14:20:17 [main] ERROR com.businessobjects.reports.sdk.JRCCommunicationAdapter - JRCAgent1 detected an exception: Unexpected database connector error
         at com.crystaldecisions.reports.queryengine.driverImpl.o.eC(Unknown Source)
         at com.crystaldecisions.reports.queryengine.driverImpl.o.if(Unknown Source)
         at com.crystaldecisions.reports.queryengine.ax.if(Unknown Source)
         at com.crystaldecisions.reports.queryengine.bc.byte(Unknown Source)
         at com.crystaldecisions.reports.queryengine.bc.new(Unknown Source)
         at com.crystaldecisions.reports.queryengine.bc.for(Unknown Source)
         at com.crystaldecisions.reports.reportdefinition.datainterface.g.a(Unknown Source)
         at com.crystaldecisions.reports.reportdefinition.datainterface.m.new(Unknown Source)
         at com.crystaldecisions.reports.common.as.a(Unknown Source)
         at com.crystaldecisions.reports.common.ae.a(Unknown Source)
         at com.businessobjects.reports.sdk.b.k.a(Unknown Source)
         at com.businessobjects.reports.sdk.b.w.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ag.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.bu.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.bu.void(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.a6.for(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.u.performDo(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.u.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.new(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.addTable(Unknown Source)
    Any idea on this exception and how to resolve it ?
    Thanks

  • Unexpected database connector error

    Hi Team,
    I am trying to do Dynamic database change for Crystal reports and i 'm struggling with the following error. I am following below code listed in the following link
    CRJava Modify DB Location
    Please help me in resolve this issue. I have been struck up with this from 2 days
    The Error Stack Trace is:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2284)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2304)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:736)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:166)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:528)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:526)
        at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:524)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:423)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:351)
        at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
        at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
        at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
        at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
        at com.crystaldecisions.sdk.occa.report.application.an.a(SourceFile:108)
        at com.crystaldecisions.sdk.occa.report.application.b0.if(SourceFile:148)
        at com.crystaldecisions.sdk.occa.report.application.b0.b(SourceFile:95)
        at com.crystaldecisions.sdk.occa.report.application.bb.int(SourceFile:96)
        at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(SourceFile:151)
        at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(SourceFile:106)
        at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:2159)
        at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:543)
        at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:3898)
        at com.crystaldecisions.sdk.occa.report.application.DatabaseController.replaceConnection(SourceFile:3865)
        at org.apache.jsp.DynamicDBChange_jsp._jspService(DynamicDBChange_jsp.java:213)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
    Caused by: com.crystaldecisions.reports.common.QueryEngineException: Unexpected database connector error
        at com.crystaldecisions.reports.queryengine.Table.new(SourceFile:1014)
        at com.crystaldecisions.reports.queryengine.Table.byte(SourceFile:1791)
        at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:638)
        at com.crystaldecisions.reports.queryengine.Table.vc(SourceFile:2419)
        at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
        at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
        at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
        at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
        at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1166)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:660)
        ... 46 more
    Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Unexpected database connector error
        at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)
        at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)
        at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCTable.GetFields(Unknown Source)
        at com.crystaldecisions.reports.queryengine.Table.new(SourceFile:1010)
        ... 56 more
    Caused by: java.sql.SQLException: ORA-01008: not all variables bound
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
        at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
        at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
        at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
        at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
        at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:194)
        at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:1000)
        at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
        at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1882)
        at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1847)
        at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:301)
        ... 60 more
    Waiting for reply
    Thanks
    Penchal

    Hi Penchal,
    What is the backend database? Are you using ODBC or JDBC connectivity for your backend DB engine?
    Make sure to have the required jars for your connection type inside your applications lib directory.
    Does it happens with all the reports?
    What happens if you do not change the datasource, are you able to view reports fine.
    As you are using Crystal reports for ecllipse runtime libraries to build your jsp, you would need to post your dicussions in the below forum to get better response.
    http://scn.sap.com/community/crystal-reports-for-eclipse
    The above space is dedicated for the issues with crystal reports for ecllipse.
    Thanks,
    Prithvi

  • Unexpected database connector error when upgraded to the JRC 12.2.208

    Hi,
         My reports were working fine when using the CR viewers 11 SDK. In order to use print from the server functionality, I upgraded to JRC 12.2.208. Since then I am getting the following exception. Please help. Thanks!
    Line: -
    Exception Trace =
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2285)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2305)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:737)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
         at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
         at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
    Line: -
    CrystalReport logs:
    2010-10-07 09:15:18,390 [http-80-1] DEBUG com.crystaldecisions.reports.dataengine.DataEngineCommand.VerifyDatabaseCommand  - VerifyDatabaseCommand,0,Enter CreateCommand,<document=ReportDocument:<report=main><reportPath=C:\ICTS-10-6\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ICTSWeb\reports\rptICERejection.rpt>>;<isFirstVerify=false>;
    2010-10-07 09:15:18,390 [http-80-1] DEBUG com.crystaldecisions.reports.dataengine.DataEngineCommand.VerifyDatabaseCommand  - VerifyDatabaseCommand,30823955,Exit CreateCommand,<document=ReportDocument:<report=main><reportPath=C:\ICTS-10-6\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ICTSWeb\reports\rptICERejection.rpt>>;
    2010-10-07 09:15:18,390 [http-80-1] DEBUG com.crystaldecisions.reports.common.commandmanager  - command SETUP: VerifyDatabaseCommand
    2010-10-07 09:15:18,390 [http-80-1] DEBUG com.crystaldecisions.reports.common.commandmanager  - command PERFORM: VerifyDatabaseCommand
    2010-10-07 09:15:18,390 [http-80-1] DEBUG com.crystaldecisions.reports.dataengine.DataEngineCommand.VerifyDatabaseCommand  - VerifyDatabaseCommand,30823955,Enter perform,<document=ReportDocument:<report=main><reportPath=C:\ICTS-10-6\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ICTSWeb\reports\rptICERejection.rpt>>;
    2010-10-07 09:15:18,390 [http-80-1] INFO  com.crystaldecisions.reports.dataengine.DataEngineCommand.VerifyDatabaseCommand  - Verifying database
    2010-10-07 09:15:18,390 [http-80-1] INFO  com.crystaldecisions.reports.reportdefinition.ReportCommand.CheckDatabaseCommand  - CheckDatabaseCommand,0,Enter CreateCommand,<document=ReportDocument:<report=main><reportPath=C:\ICTS-10-6\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ICTSWeb\reports\rptICERejection.rpt>>;
    2010-10-07 09:15:18,390 [http-80-1] INFO  com.crystaldecisions.reports.reportdefinition.ReportCommand.CheckDatabaseCommand  - CheckDatabaseCommand,5205942,Exit CreateCommand,<document=ReportDocument:<report=main><reportPath=C:\ICTS-10-6\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ICTSWeb\reports\rptICERejection.rpt>>;
    2010-10-07 09:15:18,390 [http-80-1] DEBUG com.crystaldecisions.reports.common.commandmanager  - command SETUP: CheckDatabaseCommand
    2010-10-07 09:15:18,406 [http-80-1] DEBUG com.crystaldecisions.reports.common.commandmanager  - command PERFORM: CheckDatabaseCommand
    2010-10-07 09:15:18,406 [http-80-1] INFO  com.crystaldecisions.reports.reportdefinition.ReportCommand.CheckDatabaseCommand  - CheckDatabaseCommand,5205942,Enter perform,<document=ReportDocument:<report=main><reportPath=C:\ICTS-10-6\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ICTSWeb\reports\rptICERejection.rpt>>;
    2010-10-07 09:15:18,406 [http-80-1] INFO  com.crystaldecisions.reports.queryengine  - Connection logon:PreQEServerName=s(DOCSQLDEV01);Provider=s(SQLOLEDB.1);Integrated Security=s(SSPI);Initial Catalog=s(ICTS_DEV);Data Source=s(DOCSQLDEV01);Use Procedure for Prepare=s(1);Auto Translate=s(True);Packet Size=s(4096);Workstation ID=s(DOCCAPWKS708);PreQEServerType=s(Active Data (ADO));Database DLL=s(crdb_javabeans.dll);Java ResultSet=
    2010-10-07 09:15:18,406 [http-80-1] INFO  com.crystaldecisions.reports.queryengine  - Connection logon successfully
    2010-10-07 09:15:18,437 [http-80-1] INFO  com.crystaldecisions.reports.queryengine  - Rowset restart: moveToStart true
    2010-10-07 09:15:18,437 [http-80-1] INFO  com.crystaldecisions.reports.queryengine  - Rowset execute
    2010-10-07 09:15:18,437 [http-80-1] DEBUG com.crystaldecisions.reports.common.commandmanager  - command SETUP: NotUndoableCommand
    2010-10-07 09:15:18,437 [http-80-1] DEBUG com.crystaldecisions.reports.common.commandmanager  - command PERFORM: NotUndoableCommand
    2010-10-07 09:15:18,437 [http-80-1] DEBUG com.crystaldecisions.reports.common.commandmanager  - -- command is NOT UNDOABLE -> purge undo stack
    2010-10-07 09:15:18,453 [http-80-1] DEBUG com.crystaldecisions.reports.common.commandmanager  - command SETUP: NotUndoableCommand
    2010-10-07 09:15:18,453 [http-80-1] DEBUG com.crystaldecisions.reports.common.commandmanager  - command PERFORM: NotUndoableCommand
    2010-10-07 09:15:18,453 [http-80-1] DEBUG com.crystaldecisions.reports.common.commandmanager  - -- command is NOT UNDOABLE -> purge undo stack
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(SourceFile:605)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(SourceFile:1688)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.new(SourceFile:2650)
         at com.crystaldecisions.sdk.occa.report.application.b9.onDataSourceChanged(SourceFile:301)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:962)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:2834)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setDataSource(SourceFile:2557)
         at com.crystaldecisions.reports.sdk.DatabaseController.setDataSource(SourceFile:87)

    I find in the SAP notes that this is a reported bug in the JRC application. 
    SAP Note 1416845 - JRC application throws "Unexpected database connector" error
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap%28bd1lbizjptawmq==%29/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433313336333833343335%7D.do
    My question is - Does anyone know when is this bug scheduled to be fixed and released?
    Thanks,
    Travis

  • Unexpected Database Connector Error when rpt has parameters (CR4JE)

    Hello,
    I am trying to call a crystal report from my web-based JBoss application.  If the report does not have a parameter, the report is displayed just fine.  When the report has a parameter, a parameter screen is displayed. When I enter the parameter information and press OK, the report gives "Unexpected Database Connector Error". This applies for both String type parameters and Number type parameters.  Have provided the code below for the xhtml page that contains the bocrv tag and the "reports" bean that it references.  The database is Oracle10g (10.2.0.4).
    Many thanks,
    Travis
    ReportBean.java
    public void init(String reportName) {
              System.out.println("Calledinit");
              String report = "./crystalReports/"+reportName;
              IReportSourceFactory2 rptSrcFactory = (IReportSourceFactory2) new JPEReportSourceFactory();
              try {
                   System.out.println("Callinng rpet"+report);
                   this.reportSource = (IReportSource) rptSrcFactory
                             .createReportSource(report, l);
              } catch (ReportSDKException e) {
                   System.out.println("Exception while callingn report");
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    reportViewer.xhtml
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view contentType="text/html" xmlns="http://www.w3.org/1999/xhtml"
         xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:s="http://jboss.com/products/seam/taglib"
         xmlns:bocrv="http://www.businessobjects.com/jsf/crystalreportsviewers">
         <html>
         <head>
         <title>Report Viewer</title>
         </head>
         <body>
         <h:form>
              <bocrv:reportPageViewer reportSource="#{reports.reportSource}"
                   allowParameterPrompting="true" viewerName="reportViewer" />
         </h:form>
         </body>
         </html>
    </f:view>

    I find in the SAP notes that this is a reported bug in the JRC application. 
    SAP Note 1416845 - JRC application throws "Unexpected database connector" error
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap%28bd1lbizjptawmq==%29/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433313336333833343335%7D.do
    My question is - Does anyone know when is this bug scheduled to be fixed and released?
    Thanks,
    Travis

  • Unexpected database connector error, when data sent from POJO.. Plz Help Me

    Hi, Please Help me about this, I have started learning to develop a crystal report with java swing in crystal report integrated eclipse IDE 3.5 but when i am trying to send data from pojo to report file its giving error like "Unexpected database connector error" and Error code:-2147215349 Error code name:docNotReady.... please hlep me... i uploaded my program and the link to download my file is :
    http://www.4shared.com/file/mz8O4iQi/SimplePojoReport.html
    and i am not using any database just setting the data in the pojo...
    i wrote my problem here before, but nobody replied me... so this time i uploaded my project.. please help me...
    thanks...

    Hell Ted Ueda,
          Thanks for your reply, and did you downloaded my project files ? if not then please download it first.. because i retrieving data from the POJO not from any database.. from database its working fine but in case of POJO its not, because i wanna retrieve data dynamically from directly fields to report, means that user will fill all the information in the text box (Swing) and when he click on the button then the data from the text box should be pushed to report file and also should have to saved in the database.. so please download my project file... and help me...
    link : http://www.4shared.com/file/mz8O4iQi/SimplePojoReport.html
    thanking you..
    Arun...

  • Error in file ...rpt : Database Connector Error

    Hello everyone,
    I recently came across a strange problem whose source i can't find. I am using printToPrinter function to print a report to a printer. My application prints more than 300 reports continuously one after the other. The way i do this is as follows:
    1. I create the datasource in asp.net
    2. I insert the datasource in crystal reports datasource property
    3. I call printToprinter
    4. I close and dispose the ReportDocument object that i use to do the previous steps.
    5. I continue to the next report and so on...
    When i run the application from my development machine the reports print successfully. When my client whose pc is far away tries to print, sometimes and not always, one of the reports crashes in the line of code where i have put the printToPrinter method and the error is :
    Error in file c:\windows\temp\myreport.rpt :
    Database Connector Error
    Does anyone know what causes this strange behavior? And why does this happen occasionally?
    Thanks a lot in advance!

    You're closing the reports after you finish printing them, but are you calling .Dispose() on them?  The Crystal SDK is really a wrapper around COM objects.  Code written in Visual Studio does not automatically memory manage COM objects well (if at all!) so you have to do one of two things: either explicitly call .Dispose() when you're done with a report or put the report in a "Using" structure like this (assuming C# code behind - I don't know how this works in VB!):
    Using (ReportDocument myRpt = New ReportDocument())
      //insert code to load and print report here
    Another issue might be due to network latency.  If your user is indeed "far away" from where the application is running and is printing to a printer local to him, then any network slow-down or things like packet errors would affect communication between the application and the user and cause the print command to error out.
    -Dell

  • CR4E 2.1: Unexpected database connector error

    Hi,</br>
    I've an application that runs reports at an automated time, we've just updated from older JRC components from Crystal Reports XI to the CR4E 2.1 components, we did this because occasionally the reports would cause a maximum cursors exception as we use ORACLE stored procedures to gather data from our database. </br></br>
    Changing to the newer components eliminates the cursor problem but now we are facing this exception from some of the reports that take longer to run
    </br>
    </br>
    <code>
    ERROR: Could not convert saved data
    com.businessobjects.reports.datamodel.DFException: Unexpected database connector error
            at com.crystaldecisions.reports.datafoundation.DFQuery.for(Unknown Source)
            at com.crystaldecisions.reports.datalayer.a.do(Unknown Source)
            at com.crystaldecisions.reports.datalayer.a.a(Unknown Source)
            at com.crystaldecisions.reports.dataengine.m.b(Unknown Source)
            at com.crystaldecisions.reports.dataengine.j.b(Unknown Source)
            at com.crystaldecisions.reports.dataengine.m.o(Unknown Source)
            at com.crystaldecisions.reports.dataengine.m.a(Unknown Source)
            at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
            at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
            at com.crystaldecisions.reports.dataengine.j.case(Unknown Source)
            at com.crystaldecisions.reports.dataengine.h.<init>(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataContext.a(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.new(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.try(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.int(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.I(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.if(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.do(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.if(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.S(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.U(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.aD(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.int(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.R(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.if(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.aH(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataProcessor2.au(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataSourceManager.a(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataSourceManager.if(Unknown Source)
            at com.crystaldecisions.reports.dataengine.DataSourceManager.a(Unknown Source)
            at com.crystaldecisions.reports.reportdefinition.ReportDocument.goto(Unknown Source)
            at com.crystaldecisions.reports.reportdefinition.ReportDocument.at(Unknown Source)
            at com.businessobjects.reports.reportconverter.v12.f.do(Unknown Source)
            at com.businessobjects.reports.reportconverter.v12.V12SaveLoader.a(Unknown Source)
            at com.businessobjects.reports.loader.ReportSaver.a(Unknown Source)
            at com.businessobjects.reports.loader.ReportSaver.save(Unknown Source)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(Unknown Source)
            at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(Unknown Source)
            at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(Unknown Source)
            at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(Unknown Source)
            at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(Unknown Source)
            at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(Unknown Source)
            at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
            at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
            at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
            at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
            at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
            at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
            at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
            at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
            at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
            at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
            at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
            at com.rcody.ReportEngine.batching.ReportEngineBatchJob$ExecuteSavedReports.processReport(ReportEngineBatchJob.java:778)
            at com.rcody.ReportEngine.batching.ReportEngineBatchJob$ExecuteSavedReports.reportExport(ReportEngineBatchJob.java:637)
            at com.rcody.ReportEngine.batching.ReportEngineBatchJob$ExecuteSavedReports.doReportExport(ReportEngineBatchJob.java:1129)
            at com.rcody.ReportEngine.batching.ReportEngineBatchJob$ExecuteSavedReports.run(ReportEngineBatchJob.java:564)
            at com.rcody.ReportEngine.batching.ReportEngineBatchJob.runJob(ReportEngineBatchJob.java:238)
            at com.rcody.ReportEngine.display.SchedulerDisplayControl.proccesRequest(SchedulerDisplayControl.java:229)
            at com.rcody.ReportEngine.ReportEngineAppletServlet.processRequest(ReportEngineAppletServlet.java:58)
            at com.rcody.ReportEngine.BaseServlet.process(BaseServlet.java:40)
            at com.rcody.ReportEngine.BaseServlet.doPost(BaseServlet.java:34)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
            at java
    16:36:27,587 INFO  [STDOUT] .lang.Thread.run(Thread.java:619)
    Caused by: com.crystaldecisions.reports.common.QueryEngineException: Unexpected database connector error
            at com.crystaldecisions.reports.queryengine.Connection.a(Unknown Source)
            at com.crystaldecisions.reports.queryengine.Rowset.z3(Unknown Source)
            at com.crystaldecisions.reports.queryengine.Rowset.bL(Unknown Source)
            at com.crystaldecisions.reports.queryengine.Rowset.zM(Unknown Source)
            at com.crystaldecisions.reports.queryengine.RowsetBase.zA(Unknown Source)
            at com.crystaldecisions.reports.queryengine.QueryInfo.vE(Unknown Source)
            ... 98 more
    Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Unexpected database connector error
            at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)
            at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)
            at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)
            ... 104 more
    Caused by: java.sql.SQLException: ORA-01008: not all variables bound
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
            at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
            at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:210)
            at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:961)
            at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1190)
            at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1726)
            at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1696)
            at org.jboss.resource.adapter.jdbc.WrappedStatement.execute(WrappedStatement.java:84)
            ... 107 more
    </code>
    </br>
    </br>
    These reports would execute just fine under the older components with all their parameters provided. So I'm unclear as to why the new components would return this particular error.</br>If any one can provide an extra documentation or assistance I would really appreciate it</br></br>
    Dusteh

    Hi, my problem is similar:
    1-i have a report that runs a stored procedure in mysql
    2-i programmatically change connection parameter at runtime.
    4-when i run the report i get an exception "Unexpected database connector error" (italian message "Errore imprevisto del connettore del database"
    last rows of log...
    DEBUG - Evaluating formula {@{DSParameter}::{?p_az}}...
    DEBUG - The current value of field {?p_az} is: n(1.0)
    INFO - Formula {@{DSParameter}::{?p_az}} evaluated to: n(1.0)
    DEBUG - Evaluating formula {@{DSParameter}::{?p_cdc}}...
    DEBUG - The current value of field {?p_cdc} is: s(0505)
    INFO - Formula {@{DSParameter}::{?p_cdc}} evaluated to: s(0505)
    DEBUG - Evaluating formula {@{DSParameter}::{?p_anno}}...
    DEBUG - The current value of field {?p_anno} is: n(2009.0)
    INFO - Formula {@{DSParameter}::{?p_anno}} evaluated to: n(2009.0)
    DEBUG - Evaluating formula {@{DSParameter}::{?p_mese}}...
    DEBUG - The current value of field {?p_mese} is: n(6.0)
    INFO - Formula {@{DSParameter}::{?p_mese}} evaluated to: n(6.0)
    INFO - QueryInfo openRowset:
    INFO - Rowset restart: moveToStart true
    INFO - Rowset execute
    INFO - Executing query using a Query Definition.
    ERROR -  detected an exception: Errore imprevisto del connettore del database
         at com.crystaldecisions.reports.datafoundation.DFQuery.for(Unknown Source)
         at com.crystaldecisions.reports.datalayer.a.do(Unknown Source)
         at com.crystaldecisions.reports.datalayer.a.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.m.b(Unknown Source)
         at com.crystaldecisions.reports.dataengine.j.b(Unknown Source)
         at com.crystaldecisions.reports.dataengine.m.o(Unknown Source)
         at com.crystaldecisions.reports.dataengine.m.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.j.case(Unknown Source)
         at com.crystaldecisions.reports.dataengine.h.<init>(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataContext.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.new(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.try(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.int(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.I(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fl(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.X(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.byte(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(Unknown Source)
         at com.businessobjects.crystalreports.viewer.core.rs.RSRecordSource.openInputStream(Unknown Source)
         at com.businessobjects.crystalreports.viewer.core.TSLVReader.a(Unknown Source)
         at com.businessobjects.crystalreports.viewer.core.TSLVReader.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    INFO -  releasing engine request
    DEBUG - command SETUP: NotUndoableCommand
    DEBUG - command PERFORM: NotUndoableCommand
    DEBUG - -- command is NOT UNDOABLE -> purge undo stack
    How i can detect what is happening?

  • ResultSet AS datasource:Unexpected database connector error, Please Help?

    Dear all;
    I try to use a ResultSet as datasource in Crystal Reports,But an Exception Happend;
    First i execute the SQL Statment to get ResultSet Object called rs then try the following code:
    String tableAlias = reportClientDocument.getDatabaseController().getDatabase().getTables().getTable(0).getAlias();
    reportClientDocument.getDatabaseController().setDataSource(rs,tableAlias,"resultsetTable");
    This is the Exception;
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
    Please help me to solve this exception

    I need to execute the SQL Query thruogh java becouse there is some parameters must be in the SQL Query...and i have not permission to add views or stored procedure in database
    this is my query:
    String sqlquery = "SELECT "
                        + "TO_CHAR(TO_DATE('1970-01-01', 'yyyy-mm-dd') + Command.CREATIONTIME / 86400000, 'mm/dd/yyyy') as CREATIONDATE"
                        + ", COUNT(*) as TICKETCOUNT "
                        + "FROM ALARMTICKET Command "
                        + "WHERE "
                        + "to_date(TO_CHAR(TO_DATE('1970-01-01', 'yyyy-mm-dd') + Command.CREATIONTIME / 86400000, 'mm/dd/yyyy'),'mm/dd/yyyy') "
                        + "between "
                        + "'"
                        + dateFormater.format(date1)
                        + "' "
                        + "AND "
                        + "'"
                        + dateFormater.format(date2)
                        + "' "
                        + "group by TO_CHAR(TO_DATE('1970-01-01', 'yyyy-mm-dd') + Command.CREATIONTIME / 86400000, 'mm/dd/yyyy') "
                        + "order by TO_CHAR(TO_DATE('1970-01-01', 'yyyy-mm-dd') + Command.CREATIONTIME / 86400000, 'mm/dd/yyyy')";
    date1 and date2 are my variables.....

  • VB2005 with Crystal Report XI and MS Access - Database Connector Error:

    Post Author: jvaldeziii
    CA Forum: .NET
    "Database Connector Error:"
    does anybody there whose got an idea with this problem?
    Im using VB2005 and im trying to show a report using CR XI with a Ms Access database...
    Whenever i used a CRAXDRT.Report.SQLQueryString? my application has an error "Database Connector Error"
    but whenever i omit this single line of code CRAXDRT.Report.SQLQueryString?
    crxReport.SQLQueryString = "Select * from tblPersonal where EMP_ID like '0%'"
    Or either i replace it with a CRAXDRT.Report.RecordSelectionFormula?
    crxReport.RecordSelectionFormula = "{tblPersonal.IDNo} like '*'"
    it works fine and it show the report and data...
    But?? i have to use more flexible filter condition like "SQLQueryString" like using LEFT OUTER JOIN or even just a simple query string in sql query...
    but using "SQLQueryString" gives me a head ache to figure it myself... I got this frustrating error in my application... "Database connector error"
    thats why i need help... please anybody has a good idea to resolve this problem "Database connector error" please refer to my code if there's something missing or lacking in my code...
    Here's my sample code:
    Private Sub frmCrystalReport_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Try
    ChildFormAutoSizeFit(Me)
    Me.Cursor = Cursors.WaitCursor
    Me.MdiParent = frmMain
    crxApp = New CRAXDRT.Application
    crxReport = crxApp.OpenReport(reportPath & "\EmployeeRecord.rpt", CrystalDecisions.Shared.OpenReportMethod.OpenReportByDefault)
    crxDataBase = crxReport.Database
    crxTables = crxDataBase.Tables
    For Each crxTable In crxTables
    crxTable.Location = DataSource
    crxTable.SetLogOnInfo("Provider=Microsoft.Jet.OLEDB.4.0;Data source=" & reportPath, "myEmpDB.mdb", "UserName", "myPassword")
    Next crxTable
    'Note1: this line crxReport.SQLQueryString gives me the headache "Database Connector Error"
    crxReport.SQLQueryString = "Select * from tblPersonal"
    'Note2: this line crxReport.RecordSelectionFormula works fine
    'crxReport.RecordSelectionFormula = "{tblPersonal.IDNo} like '*'"
    AxCRViewer1.ReportSource = crxReport
    AxCRViewer1.ViewReport()
    crxDataBase = Nothing
    crxTable = Nothing
    crxTables = Nothing
    crxReport = Nothing
    crxApp = Nothing
    Catch ex As Exception
    MsgBox(ex.ToString())
    Finally
    Me.Cursor = Cursors.Default
    End Try
    End Sub
    Please anybody there who can resolve this problem or even just a good idea to share?? Please...
    A lot of appreciation to someone or anybody who can help with this... thanks in advance....

    Post Author: Argan
    CA Forum: .NET
    You may want to move/ask this question in the "Other" sdk forum since this is not the CR.NET SDK, but actually RDC/COM SDK.
    You are using the RDC in .NET, which is unsupported/untested so there is no way to know if it is a .NET specific issue or an issue with the RDC.
    One of the COM folks may be of more help in that forum.
    Good luck with your project.

  • Database Connector Error -Crystal Reports

    Hi all,
    I am using Crystal reports 2008 to design reports for IDM 7.1.The DB is SQL Server 2005.
    I am able to design and fetch correct data from the databases and things work fine in the Crystal report tool. But when I try to call the task from IDM-UI , I am getting a strange error and the job fails.
    The error message goes like tis:
    Failed generating report BasicRoleComposition85837.pdf
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed
    putNextEntry failed storing85731
    I checked the constants and the its all set correctly. I checked the SQL too,it also seems to be ok.
    I really cant make out what went wrong.It would be great if someone can help me out with this.
    Thank you.
    Anupama

    Hi Anupama,
    I have same error.
    Do you know the solution for this ?
    Regards,
    Pradeep

  • Intermittent Unknown Database Connector Error: "Object reference"

    Don't know if I'm posting to the right forum.  Please redirect me if this post belongs elsewhere.
    We use a .NET application by SunGard (Advance Web).  We have a whole bunch of Crystal reports we've deployed through this application, and they all work. . .most of the time.
    We occasionally, however, find that ALL our Crystal reports return this error:
    Unknown Database Connector Error Error in File C:\WINDOWS\TEMP\Report1003 {7B4DBA4D-3EA7-4545-83DB-F5A56AE945FF}.rpt: Unknown Database Connector Error
    CrystalReportViewer - CrystalReportViewer1
    Error: Object reference not set to an instance of an object.
    If we reboot the server, the reports all work again.  But sooner or later they start to fail w/ the same error message.
    We have Crystal Reports 11.5.8.826 installed on the server. 
    The network service account has full read/write access to its temp directory (C:\Windows\TEMP).
    The reports have never failed when we've used this application on a different server, so we're wondering if there's something amiss with the server.
    Anybody have an idea of what's happening here?

    Sorry. My mistake. That note wasn't tagged correctly so it didn't show up on the public side of the SAP Note system. I've fixed the tag but it will still take a day or two for it to replicate to the other system. I've pasted the contents of the note below.
    Symptom
    Error: "Unknown Database Connector Error Failed to retrieve data from the database"
    Error: "Unknown Database Connector Error"
    Failed to change the Table to CommandTable using RAS SDK
    Reproducing the Issue
    There are lots of reports designed with regular tables.
    A custom RAS SDK application is developed to change the reports from regular table to CommandTable
            rd = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
            string rptPath = Server.MapPath("./axmr310_0_std.rpt");
            rd.Load(rptPath);
            DatabaseController databaseController = rd.ReportClientDocument.DatabaseController;
            ConnectionInfos connectionInfos = databaseController.GetConnectionInfos(null);
            ConnectionInfo oldConnectionInfo = connectionInfos[0];
            ConnectionInfo newConnectionInfo = CreateConnectionInfo();
            databaseController.ReplaceConnection(oldConnectionInfo, newConnectionInfo, null,CrDBOptionsEnum.crDBOptionUseDefault);
            ISCRTable oldTable = (ISCRTable)databaseController.Database.Tables[0];
            CommandTable newTable = new CommandTable();
            newTable.Alias = "Command";
            newTable.Name = "Command";
            newTable.QualifiedName = "Command";
            newTable.ConnectionInfo = newConnectionInfo;
            newTable.CommandText = "SELECT * FROM ds_report.axmr310_0939_12";
            databaseController.SetTableLocation(oldTable, newTable);
            CrystalReportViewer1.ReportSource = rd;
    Most of reports can be successfully changed and viewed, however the error occurs with somes of the reports.
    BusinessObjects Enterprise XI 3.*
    Crystal Reports 2008
    Cause
    "Verify on First Refresh" option is not selected for those unworking reports.
    Resolution
    Workaround 1: Check "Verify on First Refresh" option for the report.
    Open the report in Crystal Reports Designer
    Go to menu File -> Report Options
    check the Verify on First Refresh option for the report
    Save the report
    Workaround 2: Add "rd.VerifyDataBase()" in the code
            databaseController.SetTableLocation(oldTable, newTable);
            rd.VerifyDataBase();

Maybe you are looking for

  • Urgent Help for Run Report

    after creating a button in form builder 9i i want to fire a tigger for execute the report which is built in report builder 9i but it is not executing and showing me these errors.. code behind tigger of button is Declare repid REPORT_OBJECT; v_rep VAR

  • Automatic database activation

    hi, Suppose we have two mailbox servers: Node 1 and Node 2 in a DAG with two databases: A and B. A is mounted on node 1 and B is mounted on node 2. Now Node 2 suffers a hardware failure, a windows failure or lost its connectivity to databases (their

  • Airport network not remembered after restart or sleep after upgrading from OS X 10.5 to OS X 10.6.8

    I upgraded OS X 10.5.8 to OS X 10.6.8.  Now after sleep or restart my wireless network is not remembered nor automatically connected to.  I have to select "Other" and enter network name and WPA2 password each time even though "Remember this network"

  • Power outage while using LR - did I lose all my work?

    LR is set to back up when I open it.  I spent 8 hours editing and at 6pm there was a power outage.  Is there ANY WAY I can recover all of my edits?  I'm horrified to hear I can't.  Someone please tell me of a magical way to get everything back. I fin

  • Undo issues with Prem CC OSX- can't lock COMMAND-Z to undo feature in keyboard shortcuts

    Hello, As per my described problem in heading, when I lock UNDO command to COMMAND-Z in Premiere CC, when I try to undo with the command my clips / edit on the timeline are shifting right. If I use UNDO from the pull down menu, the functions performs