Error in setting datasource - Crystal reports

Good day,
I am currently experiencing a problem with setting my datasource to a report in Crystal Reports.
Strangely, the report works in VS 2010, but when running as an executable, the program fails when assigning the datasource.
My code:
    Public Sub PurchasesByVendor()
        Try
            Dim sql As String = "SELECT tblVendors.VendorID, tblVendors.VendorName, tblPO.POID, tblPO.EnterDate, tblCustomers.Company, tblOrders.RefNum, Sum(tblPOItems.ExtPrice) AS SumOfExtPrice " & _
                                "FROM (((tblPO INNER JOIN tblPOItems ON tblPO.POID = tblPOItems.POID) INNER JOIN tblVendors ON tblPO.VendorID = tblVendors.VendorID) LEFT JOIN tblOrders ON tblPO.OrderID = tblOrders.OrderID) LEFT JOIN tblCustomers ON tblOrders.CustomerID = tblCustomers.CustomerID " & _
                                "WHERE (((tblPO.EnterDate) Between #" & dpStart.Text & "# And #" & dpFinish.Text & "#)) " & _
                                "GROUP BY tblVendors.VendorID, tblVendors.VendorName, tblPO.POID, tblPO.EnterDate, tblCustomers.Company, tblOrders.RefNum; "
            Dim con As New OleDb.OleDbConnection
            Dim da As OleDb.OleDbDataAdapter
            Dim ds As New DataSet
            con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = C:\Program Files\Mail-Shop\MSApp2k.mdb"
            con.Open()
            da = New OleDb.OleDbDataAdapter(sql, con)
            da.Fill(ds, "PO")
            Dim povList As List(Of POV) = New List(Of POV)
            If ds.Tables("PO").Rows.Count > 0 Then
                For i = 0 To ds.Tables("PO").Rows.Count - 1
                    Dim pov As POV = New POV()
                    pov.VendorName = ds.Tables("PO").Rows(i).Item(1)
                    pov.PONumber = ds.Tables("PO").Rows(i).Item(2)
                    pov.PODate = ds.Tables("PO").Rows(i).Item(3)
                    If IsDBNull(ds.Tables("PO").Rows(i).Item(4)) = False Then
                        pov.Company = ds.Tables("PO").Rows(i).Item(4)
                    End If
                    If IsDBNull(ds.Tables("PO").Rows(i).Item(5)) = False Then
                        pov.Order = ds.Tables("PO").Rows(i).Item(5)
                    End If
                    pov.Total = ds.Tables("PO").Rows(i).Item(6)
                    povList.Add(pov)
                Next
            End If
            'MsgBox(povList.Count)
            Dim datas As POVD = New POVD()
            Dim dt As New DataTable("povd")
            'Dim dt As DataTable = datas.Tables.Add("hc")
            dt.Columns.Add("Vendor", GetType(String))
            dt.Columns.Add("PONumber", GetType(Integer))
            dt.Columns.Add("PODate", GetType(Date))
            dt.Columns.Add("Company", GetType(String))
            dt.Columns.Add("OrderNbr", GetType(Integer))
            dt.Columns.Add("Total", GetType(Double))
            dt.Columns.Add("Charged", GetType(Double))
            datas.Tables.Add(dt)
            For Each dr In povList
                Dim vendor = dr.VendorName
                Dim ponbr = dr.PONumber
                Dim poDate As Date = DateValue(DateTime.Parse(dr.PODate))
                Dim company = dr.Company
                Dim order = dr.Order
                Dim total = dr.Total
                Dim charged = dr.getCharged(dr.PONumber)
                Dim nw As DataRow = datas.Tables(0).NewRow()
                nw(0) = vendor
                nw(1) = ponbr
                nw(2) = poDate
                nw(3) = company
                nw(4) = order
                nw(5) = total
                nw(6) = charged
                datas.Tables(0).Rows.Add(nw)
            Next
            '' bind the datasource+
            Dim objRpt As New PurchaseByVendor
            objRpt.SetDataSource(datas.Tables(0))
            Dim wfp As New WindowFormReport()
            wfp.CrystalReportsViewer1.ViewerCore.ReportSource = objRpt
            Me.NavigationService.Navigate(wfp)
            con.Close()
            con.Dispose()
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub
Thanks!

What version fo CR you are using, what service pack?
What CR components are installed on the client machine for deployment?
When using datasets to pass the data to Crystal reports, the issue occurs due to datasets in 50% of cases.
What exact error do you get?
Could you try below steps which would tell you if its an issue with Crystal or with getting data into datasets.
- Once the data is populated in the dataset and before doing a "objRpt.SetDataSource(datas.Tables(0))", write the data to a datagrid.
- While deploying the EXE, you could observe the datagrid to check fi the datasets do return some data.
This may not be a Crystal issue.
if you get the data in the datagrid and not in the report then do a 'ds.writeXml("XMLfilepath.xml")'. this will generate the XML file with the data from the dataset. the open the report indeaigner and try to assign the XMl to the report and see if the report works in thed esigner.
- Bhushan
Senior Engineer
SAP Active Global Support
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
Getting started and moving ahead with Crystal Reports .NET applications.

Similar Messages

  • Error in RSS file when setting datasource in report

    Hi,
    I trying to prepare script to deploy my reports to reporting service 2008. Script is takes from
    this question (Deploying Reports rss). Unfortunately code provided for data sources settings is not working in my case and I do not know why.
    Sequence is following: removed reports path, re-craete it, create datasource and for each report following actions performed: deploy and set datasource.
    After first report tried to set data source in itself scripts failed with error:
    D:\_ST\FLASH>rs -i deploy.rss -s http://localhost/ReportServer_i2008
    Parent folder Pipeline Reports created successfully.
    Deploying report 'CRM Practice Report'
    Report: CRM Practice Report published successfully.
    Setting datasource to report 'CRM Practice Report'.
    Error setting datasource to report 'CRM Practice Report'
    ERROR while Publishing report: CRM Practice Report
    Unhandled exception:
    The data source 'Warehouse Datasource' cannot be found.
    Here is the script I using to deploy datasource and reports:
    Dim definition As [Byte]() = Nothing
    Dim warnings As Warning() = Nothing
    Dim destinationFolder As String = "Pipeline Reports"
    Dim reportsTargetPath As String = "/" + destinationFolder
    Dim reportsSourcePath As String = "D:\Depot\Internal\BDW\BDW_Phase4\Src\BDW_R4.17.2\Reports\BDW_Reports"
    Dim datasourceName As String = "Warehouse Datasource"
    Public Sub Main()
    Try
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials
    If rs.GetItemType(reportsTargetPath) = ItemTypeEnum.Folder Then
    rs.DeleteItem(reportsTargetPath)
    End If
    rs.CreateFolder(destinationFolder, "/", Nothing)
    Console.WriteLine("Parent folder {0} created successfully.", destinationFolder)
    CreateReportDataSource(datasourceName, "SQL", "Data Source=apopov\i2008;Initial Catalog=bdw")
    PublishReport("CRM Practice Report")
    PublishReport("CRM Report")
    PublishReport("Pipeline Practice Report")
    PublishReport("Pipeline Report")
    Console.WriteLine("Tasks completed successfully.")
    Catch ex As Exception
    Throw ex
    End Try
    End Sub
    Public Sub CreateReportDataSource(name As String, extension As String, connectionString As String)
    Dim definition As New DataSourceDefinition()
    definition.CredentialRetrieval = CredentialRetrievalEnum.Integrated
    definition.ConnectString = connectionString
    definition.Enabled = True
    definition.Extension = extension
    Try
    rs.CreateDataSource(name, reportsTargetPath, False, definition, Nothing)
    Catch e As Exception
    Console.WriteLine("ERROR creating data source: " + name)
    Throw e
    End Try
    End Sub
    Public Sub PublishReport(ByVal reportName As String)
    Try
    Console.WriteLine("Deploying report '{0}'", reportName)
    Dim stream As FileStream = File.OpenRead(reportsSourcePath + "\" + reportName + ".rdl")
    definition = New [Byte](stream.Length-1) {}
    stream.Read(definition, 0, CInt(stream.Length))
    stream.Close()
    rs.CreateReport(reportName, reportsTargetPath, False, definition, Nothing)
    Console.WriteLine("Report: {0} published successfully.", reportName)
    SetDatasource(reportName)
    Catch e As Exception
    Console.WriteLine("ERROR while Publishing report: " + reportName)
    Throw e
    End Try
    End Sub
    Public Sub SetDatasource(ByVal reportName As String)
    Try
    'Not working, I do not know why
    Console.WriteLine("Setting datasource to report '{0}'.", reportName)
    Dim reference As New DataSourceReference()
    reference.Reference = reportsTargetPath + "/" + datasourceName
    Dim source As New DataSource()
    source.Item = reference
    source.Name = datasourceName
    Dim sources As DataSource() = New DataSource(0) {}
    sources(0) = source
    rs.SetItemDataSources(reportsTargetPath + "/" + reportName, sources)
    Catch e As Exception
    Console.WriteLine("Error setting datasource to report '{0}'", reportName)
    Throw e
    End Try
    End Sub
    I have not ideans why this error may occures.

    Hi Alex,
    I have test the script in my test environment, it works.
    Based on the error message, the data source 'Warehouse Datasource' cannot be found. Please check, did you have add Warehouse Datasource.rds file in the same folder? In your case, it is located in: D:\Depot\Internal\BDW\BDW_Phase4\Src\BDW_R4.17.2\Reports\BDW_Reports
    If the issue is persist, please feel free to ask.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Page Not Found Error when clicking on Crystal Report Viewer print icon

    Hi,
        I am working with ASP.NET 2.0 and crystla reportXI release2.
        I am getting "Page Can not be Found " error when clicking on Crystal Report Viewer print icon.
        Could you please tell me how to get rid of this error?
    Regards,
    Smitha

    This sounds like a postback issue. Does your application handle postback by putting the report in session?
    There is a [sample|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_samples_aspx/data/crsdk_net_tutorials_115_en.zip] to look at on our website. It was created with Crystal Reports XI R2 and Visual Studio .NET but the code will be the same.
    A short pseudocode would be something like this:
    Dim rptDocument As ReportDocument
    If Not Me.IsPostBack or Session("Report") = Nothing Then
    rptDocument = New ReportDocument
    rptDocument.Load(sGlobalPath & "\myreport.rpt";)
    Ludek

  • Error in setting datasource location from oracle to sql server

    Post Author: jonathanaramburo
    CA Forum: Data Integration
    Hello,
    I have an application that uses a table named "events" which conflicts the sys.events view in master database in sql server. The error i was encountering is that, whenever i tried to set the datasource location of my crystal report from its previous connection oracle to sql server, i get an error saying that some of the fields has not been updated because theres no matching fields to the current connection. It seems that crystal is pointing on sys.events view on master db and not on the events table in myDb database. How can I tell crystal reports to not pick up sys.events and get only myDB.events table.
    Thank you in advance,
    Thanks,
    Jonathan

    The exact statement in oracle side which causing this error (O2SS0050:
    Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.) is below:
    dStartDate:= to_date(sStartDate,'MON-YYYY');
    Statement causing error O2SS0050:
    Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported is below.
    nCount2:= length(regexp_replace(sDataRow,'[^,]'));
    So there is no statement which is using to_date(VARCHAR2,
    CHAR) and regexp_replace(VARCHAR2, CHAR) in as such. 'MON-YYYY'  and '[^,]'
    are CHAR values hence SSMA is unable to convert it from varchar2 to char.
    Regarding SYSDATE issue, you mean to put below code in target(SQL) side in SSMA ?
    dDate date := sysdate;
    Thanks.

  • Error after migration to Crystal Reports 12 for existing reports

    Hi,
    We had reports written using Crystal Reports Version 8.5. These reports were not modified for a long time. Recently, we had migrated to Crystal Reports 12 (2008). Some of the these existing reports were modified using the Crystal Reports 2008 designer. After installing our application (we ship Merge Module of Crystal Reports 12 i.e. 2008 which gets installed in GAC)
    1)  If we create new reports in 2008 designer and try to view these reports, it works as expected without any issue(s).
    2 ) However, if these modified reports are tried to be viewed, there is an error which states "Database Logon Failed".
    Details:
    CrystalDecisions.CrystalReports.Engine.LogOnException     {"Database logon failed."}
    ErrorID     CrystalDecisions.CrystalReports.Engine.EngineExceptionErrorID.LogOnFailed
    InnerException     {"Database logon failed."}
    Message      "Database logon failed."
    Source     "CrystalDecisions.ReportAppServer.DataSetConversion"
    Stack Trace        at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)
    TargetSite     {Boolean ThrowDotNetException(System.Exception)}
    Also, it is worth to note that if we try to view these modified reports from any environment which has both Crystal Reports 10 and Crystal Reports 12 in GAC, then these reports work as expected.
    P.S.  We have mechanism in application's code to reset the database connections when any report is being viewed using ReportDocument class' method.
    From the above scenario I believe issue is specific to migration to Crystal Reports 12 (2008).  Any help /workaround to solve this problem will be highly appreciated.

    Make sure you have the latest SP for CR 2008  installed;
    https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
    Ensure you are deploying SP 2 runtime;
    MSM
    https://smpdl.sap-ag.de/~sapidp/012002523100009159092009E/cr2008sp2_mm.zip
    MSI
    https://smpdl.sap-ag.de/~sapidp/012002523100009159002009E/cr2008sp2_redistinstall.zip
    If that does not help;
    1) Do these reports work in the designer?
    2) What database are you using and what is the connection type?
    3) Compare the dlls loading on the systems where this app works (environment which has both Crystal Reports 10 and Crystal Reports 12 in GAC) and a system that is giving you the error. Use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility.
    4) Open the reports in the designer and look at the properties in the Database menu -> Set Datasource Location. Check to see if there are any differences between the two reports.
    5) If there is a subreport in the report that causes the issue, remove it and see if the report works without the subreport.
    Ludek

  • Error print preview a crystal report

    Hi,
    I have an issue where i log in as a user with admin rights and try to print preview a crystal report that was created. It prompts me to log into the database, when i do this gives me a login incorrect oracle error. But when i log in as administrator i am able to do this.

    Hi,
    Additional Info:
    CR 2008 SP3 is called by an application using .net. The Application passes a couple of parameters to the CR report. I'm able to preview the report. All the reports use the same set of parameters.
    Balaji K

  • Error 1305 while installing Crystal Reports 2008, JavaSDK

    While installing Crystal Reports from the original media on a new Lenovo Thinkpad running Windows XP Pro SP3 I get the following error while installing:
    Error 1305: Error reading from File: c:\program files\Business Objects\javasdk\jre\audio\soundbank.gm. Verify that the file exists and that you can access it.
    I have the option to retry or cancel, obviously cancel exits the installer. Retry just fails again. I have tried to access the file (which does exist) and I cannot because it is in use. I used Sysinternals process explorer to find out what has the file in use and it is msiexec.exe which is the Microsoft Installer service which is running in order to install CR2008.
    I have tried restarting, setting permissions on the file and folder, uninstalling and reinstalling Java VM from Sun. I even tried killing msiexec (which killed the install). I even tried taking out all reference to java in a custom install.
    I am at a loss on what to do next. Any help would be appreciated.
    -Michael

    I found that if I installed it from a copied local directory instead of the CD Rom that it worked

  • How do you set the Crystal Report Viewer Printer to Duplex

    Using the code below I can print in duplex mode, but this does not let me view a report before printing
    How do I set the Printer in the Viewer Control Bar of the Crystal Report Viewer to Duplex Printing programmatically rather than having to manually select Duplex through the preferences option?
    I have searched but the only example code I found produces errors in the code and will not run
    Private myReport As ReportDocument
    myReport = New ReportDocument()
    myReport.PrintOptions.PaperSize = PaperSize.PaperA4
    myReport.PrintOptions.PaperOrientation = PaperOrientation.Portrait
    myReport.PrintOptions.PrinterDuplex = PrinterDuplex. Vertical
    myReport.PrintToPrinter(3, False, 0, 0)
    In my VB6 Project that I am converting to VB.NET when I added Report.PrinterDuplex = crPRDPVertical, this allowed me to view the report and then print with Duplex without having to set the Print Preferences manualy
    I found 1386475 - How to set printer name and print job title at runtime using Report Application Server SDK for Visual Studio .NET
    But this causes errors
    Imports CrystalDecisions.ReportAppServer.ClientDoc
    Imports CrystalDecisions.ReportAppServer.Controllers
    Dim boReportClientDocument As ISCDReportClientDocument
    Dim boPrintOutputController As PrintOutputController
    Dim boPrintReportOptions As New PrintReportOptions
    Edited by: DavidMills on Feb 18, 2011 11:58 AM

    Hi David,
    You can mix both engines, just declare them both with different report object names. Here's all of my references:
    using System;
    using System.IO;
    using System.Xml;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.ReportDefModel;
    using CrystalDecisions.ReportAppServer.CommonControls;
    using CrystalDecisions.ReportAppServer.CommLayer;
    using CrystalDecisions.ReportAppServer.CommonObjectModel;
    using CrystalDecisions.ReportAppServer.ObjectFactory;
    using System.Data.OleDb;
    using CrystalDecisions.ReportAppServer.DataSetConversion;
    using CrystalDecisions.ReportAppServer.DataDefModel;
    using CrystalDecisions.ReportSource;
    using CrystalDecisions.Windows.Forms;
    using System.Data.SqlClient;
    using System.Runtime.InteropServices;
        public class frmMain : System.Windows.Forms.Form
            CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
            CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;
    My file open dialog:
            private void btnOpenReport_Click(object sender, System.EventArgs e)
                rptClientDoc = new CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument();
                openFileDialog.Filter = "Crystal Reports (*.rpt)|*.rpt|Crystal Reports Secure (*.rptr)|*.rptr";
                openFileDialog.FilterIndex = 1;
                 if (openFileDialog.ShowDialog() == DialogResult.OK)
                      btnOpenReport.Enabled = false;
                      btnSaveRptAs.Enabled = false;
                      object rptName = openFileDialog.FileName;
                    try
                        rpt.Load(rptName.ToString());
                        rptClientDoc = rpt.ReportClientDocument;
                    catch (Exception ex)
                        MessageBox.Show("ERROR: " + ex.Message);
                        return;
                    MessageBox.Show(rptClientDoc.MajorVersion.ToString() + "." + rptClientDoc.MinorVersion.ToString());
                        MessageBox.Show("Report opened.","RAS",MessageBoxButtons.OK,MessageBoxIcon.Information );
                        btnOpenReport.Enabled = true;
                        btnSaveRptAs.Enabled = true;
                    //MessageBox.Show(rpt.RecordSelectionFormula, "my record: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    MessageBox.Show(rpt.ReportRequestStatus.NumberOfPages.ToString(), "Number of Pages: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
    As for the page number I use it off the Engine report object:
    MessageBox.Show(rpt.ReportRequestStatus.NumberOfPages.ToString(), "Number of Pages: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
    And it works for me...
    Thank you
    Don

  • Error 1603 when installing Crystal reports XI by group policy

    Hi,
    **I am trying to create a Group policy deployment package of Crystal reports 11.5. I have successfully installed other packages from the same share and witrh the same permissions etc. but when I try to install Crystal I end up with the folowing details in the appmgmt.log:
    **++08-11 16:11:03:781
    +Software installation extension has been called for foreground synchronous policy refresh.+
    +The following policies are to be applied, flags are 1.+
        +in development CR (unique identifier {F3CBE794-92FB-4C74-A048-1C8BE81A4ABC})+
            +System volume path =
    rc.local\SysVol\rc.local\Policies\{F3CBE794-92FB-4C74-A048-1C8BE81A4ABC}\Machine+
            +Active Directory path = LDAP://CN=Machine,cn={F3CBE794-92FB-4C74-A048-1C8BE81A4ABC},cn=policies,cn=system,DC=rc,DC=local+
    +Set the Active Directory path to LDAP://CN=Class Store,CN=Machine,cn={F3CBE794-92FB-4C74-A048-1C8BE81A4ABC},cn=policies,cn=system,DC=rc,DC=local;.+
    +Enumerating applications in the Active Directory for computer BRXWK007377 with flags 5.+
    +The following applications were found in policy in development CR.+
        +Assigned application Crystal Reports XI (flags a0005470).+
    +Found 1 applications in policy in development CR.+
    +Enumerating the managed applications which are currently applied to this user.+
    +No managed applications are currently applied to this user.+
    +Found 0 applications locally that are not included in the set of applications from the Active Directory.+
    +Application Crystal Reports XI from policy in development CR is set for installation because it is assigned to this computer policy.+
    +Assigning application Crystal Reports XI from policy in development CR.+
    +Calling the Windows Installer to advertise application Crystal Reports XI from script C:\WINDOWS\system32\appmgmt\MACHINE\{f29d0933-61ee-4794-9840-78cd8aecf2f5}.aas with flags 69.+
    +The assignment of application Crystal Reports XI from policy in development CR succeeded.+
    +Calling the Windows Installer to install application Crystal Reports XI from policy in development CR.+
    +The install of application Crystal Reports XI from policy in development CR failed.  The error was : %1603+
    +Removing application Crystal Reports XI from the software installation database.+
    +Calling Windows Installer to remove application advertisement for application Crystal Reports XI from script C:\WINDOWS\system32\appmgmt\MACHINE\{f29d0933-61ee-4794-9840-78cd8aecf2f5}.aas.+
    +The removal of the assignment of application Crystal Reports XI from policy in development CR succeeded.+
    +Policy Logging for Software Management is attempting to log application Crystal Reports XI from policy in development CR.+
    +Failed to apply changes to software installation settings.  Software changes could not be applied.  A previous log entry with details should exist.  The error was : %1603+
    +Software installation extension returning with final error code 1603.+
    To create the installation point I copied both CD's to our server and executed a command line setup.exe /a
    Can anyone help me move forwards please?
    Thanks
    Chris

    Hi there,
    Try the following silent install command via the DOS command prompt:
    setup.exe ADDLOCAL=ALL CLIENTLANGUAGE=EN REBOOT=ReallySuppress PIDKEY=B1234-1234567-1234567-1234 INSTALLDIR="C:\Program Files\Business Objects\Crystal Reports 11.5" /qn /l* C:\temp\CRXIr2Trace.txt
    Notes and explanations:
    In the above example, it assumes that you copied the installation media to the C:.  You will also have to change directory to the wherever the win32 directory is.  The setup.exe is located in the win32 folder of the installation media.
    If you had put the win32 directory in say, C:\CRXIr2\win32, then you will have to navigate to this point first before typing the string above.  You will also need to change the product key from B1234-1234567-1234567-1234 to match your own. 
    The ADDLOCAL switch specifies a list of features to install.  ADDLOCAL=ALL then installs all the features.
    The REBOOT=ReallySuppress prevents Crystal Reports from prompting the user to reboot the machine
    The /qn switch performs the installation silently without prompting the user . 
    Finally, the string above also logs the installation to a text file in C:\temp\CRXIr2Trace.txt.
    You can find a full explanation of the switches and silent install string from xir2_cr_install_en.pdf in the installation media.

  • Function Sequence Error -- After upgrading to Crystal Reports 2008

    Since we intergrated Crystal 2008 in our application, We are having the ODBC DRIVER ERROR "S1010, Function Sequence Error"
    The following steps reproduces the error.
    I open any crystal report(using my application) and close it.
    And then I try to close another dialog in my application.
    The destructor of that dialog has the DELETE FROM TMPRPT WHERE  etc... But actually the TMPRPT table is empty.
    But This Scenario in general, does not produce any error. Only after I open and close Crystal report, and when the TMPRPT table doesn't have any records, executing the above DELETE sql throws CDBException, Funciton Sequence Error.
    Is it because of the upgrade/mismatch of dlls? Can any one help how to work around this?
    Thanks.

    Hi Don,
    I would like to thank you for your helpful advice. your tips for odbc tracing really works.
    Just to simplify things, I have created a simple mfc dialog based application that opens a connection using CDatabase in the initdialog and closes the connection in the destructor(because that is how we do in our main large application). On the dialog i put a "Print" button and when i click it, I open a crystalreportform and fill the connectioninfo structure and then call SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument). on the Form_closed function, I close database connections  and close the report document.
    When I come back to mfc application I execute a Delete from table where 1 =0, basically any delete/update that return empty recordset and it throws function sequence error.
    BOOL CCrystalDemoDlgDlg::OnInitDialog()
         CDialog::OnInitDialog();
         ConnectDatabase() ;
         return TRUE;  // return TRUE  unless you set the focus to a control
    BOOL CCrystalDemoDlgDlg::ConnectDatabase()
         if ( m_Database.IsOpen() )
              m_Database.Close();
         // Process database open request.
         CString szConnection("DSN=CRYSTALTEST32;UID=DBA;PWD=picture");
                     !m_Database.OpenEx( szConnection, CDatabase::noOdbcDialog ) )
         return TRUE;
    BOOL CCrystalDemoDlgDlg::bExecuteSQL( CString SqlString )
                    if(m_Database.IsOpen())
         m_Database.ExecuteSQL( (LPCTSTR)SqlString );
         return TRUE;
    void CCrystalDemoDlgDlg::OnBnClickedBtnPrint()
         TRY
              bExecuteSQL(_T("DELETE FROM TMPRPT WHERE 1=0"));
              CrystalReportsForm ^ CRForm = gcnew CrystalReportsForm(gcnew System::String("ActvSumm1.rpt"));
              CRForm->ShowDialog();
              //CRForm->RunCrystalReports();
              delete CRForm;
              CRForm = nullptr;
              bExecuteSQL(_T("DELETE FROM TMPRPT WHERE 1=0"));
         CATCH(CDBException, e)
              AfxMessageBox( e->m_strError );
              return ;
         END_CATCH     
    the following is the code in crystalreports library
    namespace CR2008Library
        public partial class CrystalReportsForm : Form
            private ReportDocument _reportDocument;
            private string _reportFile = "C:\\Nomadic\\Report\\";
            public CrystalReportsForm(string reportFile)
                InitializeComponent();
                     _reportDocument = CreateReportDocument(reportFile);
            private ReportDocument CreateReportDocument(string reportFile)
                ReportDocument newDocument = new ReportDocument();
                _reportFile += reportFile;
                newDocument.Load(_reportFile);
                return newDocument;
            public void ConfigureCrystalReports()
                ConnectionInfo connectionInfo = new ConnectionInfo();
                connectionInfo.DatabaseName = "CRYSTALTEST";
                connectionInfo.UserID = "DBA";
                connectionInfo.Password = "picture";
                connectionInfo.ServerName = "CRYSTALTEST32";
                SetDBLogonForReport(connectionInfo, _reportDocument);
                crystalReportViewer.ReportSource = _reportDocument;
            private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
                Tables tables = reportDocument.Database.Tables;
                foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                    TableLogOnInfo tableLogonInfo = table.LogOnInfo;
                    tableLogonInfo.ConnectionInfo = connectionInfo;
                    table.ApplyLogOnInfo(tableLogonInfo);
            public void CrystalReportForm_Load(object sender, EventArgs e)
                ConfigureCrystalReports();
            private void CrystalReportsForm_FormClosed(object sender, FormClosedEventArgs e)
                DisposeCR();
            private void DisposeCR()
                // Clean up by closing and disposing of the ReportDocument object
                if (_reportDocument != null)
                    if (_reportDocument.Database.Tables.Count > 0)
                        Tables tables = _reportDocument.Database.Tables;
                        foreach (Table table in tables)
                            table.Dispose();
                    _reportDocument.Database.Dispose();
                    _reportDocument.Close();
                    _reportDocument.Dispose();
                _reportDocument = null;
    I have the log file which doesn't show any error in crystalreports library. I am giving some of the log file for your reference to see what's happening while exiting from crystal and executing the problem sql
    CrystalDemoDlg  16c8-e8c     EXIT  SQLFetch  with return code 0 (SQL_SUCCESS)
              HSTMT               00F41CC0
    CrystalDemoDlg  16c8-e8c     ENTER SQLFetch
              HSTMT               00F41CC0
    CrystalDemoDlg  16c8-e8c     EXIT  SQLFetch  with return code 100 (SQL_NO_DATA_FOUND)
              HSTMT               00F41CC0
    CrystalDemoDlg  16c8-e8c     ENTER SQLCloseCursor
              SQLHSTMT            00F41CC0
    CrystalDemoDlg  16c8-e8c     EXIT  SQLCloseCursor  with return code 0 (SQL_SUCCESS)
              SQLHSTMT            00F41CC0
    CrystalDemoDlg  16c8-e8c     ENTER SQLFreeHandle
              SQLSMALLINT                  3 <SQL_HANDLE_STMT>
              SQLHANDLE           00F41CC0
    CrystalDemoDlg  16c8-e8c     EXIT  SQLFreeHandle  with return code 0 (SQL_SUCCESS)
              SQLSMALLINT                  3 <SQL_HANDLE_STMT>
              SQLHANDLE           00F41CC0
    CrystalDemoDlg  16c8-e8c     ENTER SQLDisconnect
              HDBC                00F427A0
    CrystalDemoDlg  16c8-e8c     EXIT  SQLDisconnect  with return code 0 (SQL_SUCCESS)
              HDBC                00F427A0
    CrystalDemoDlg  16c8-e8c     ENTER SQLFreeHandle
              SQLSMALLINT                  2 <SQL_HANDLE_DBC>
              SQLHANDLE           00F427A0
    CrystalDemoDlg  16c8-e8c     EXIT  SQLFreeHandle  with return code 0 (SQL_SUCCESS)
              SQLSMALLINT                  2 <SQL_HANDLE_DBC>
              SQLHANDLE           00F427A0
    CrystalDemoDlg  16c8-e8c     ENTER SQLFreeHandle
              SQLSMALLINT                  1 <SQL_HANDLE_ENV>
              SQLHANDLE           00F42718
    CrystalDemoDlg  16c8-e8c     EXIT  SQLFreeHandle  with return code 0 (SQL_SUCCESS)
              SQLSMALLINT                  1 <SQL_HANDLE_ENV>
              SQLHANDLE           00F42718
    CrystalDemoDlg  16c8-a34     ENTER SQLAllocStmt
              HDBC                00F419A0
              HSTMT *             0012E2C4
    CrystalDemoDlg  16c8-a34     EXIT  SQLAllocStmt  with return code 0 (SQL_SUCCESS)
              HDBC                00F419A0
              HSTMT *             0x0012E2C4 ( 0x00f41cc0)
    CrystalDemoDlg  16c8-a34     ENTER SQLSetStmtOption
              HSTMT               00F41CC0
              UWORD                        0 <SQL_QUERY_TIMEOUT>
              SQLPOINTER          0x0000000F
    CrystalDemoDlg  16c8-a34     EXIT  SQLSetStmtOption  with return code 0 (SQL_SUCCESS)
              HSTMT               00F41CC0
              UWORD                        0 <SQL_QUERY_TIMEOUT>
              SQLPOINTER          0x0000000F (BADMEM)
    CrystalDemoDlg  16c8-a34     ENTER SQLExecDirectW
              HSTMT               00F41CC0
              WCHAR *             0x03A30458 [      -3] "DELETE FROM TMPRPT WHERE 1=0\ 0"
              SDWORD                    -3
    CrystalDemoDlg  16c8-a34     EXIT  SQLExecDirectW  with return code 100 (SQL_NO_DATA_FOUND)
              HSTMT               00F41CC0
              WCHAR *             0x03A30458 [      -3] "DELETE FROM TMPRPT WHERE 1=0\ 0"
              SDWORD                    -3
    CrystalDemoDlg  16c8-a34     ENTER SQLNumResultCols
              HSTMT               00F41CC0
              SWORD *             0x0012E2B8
    CrystalDemoDlg  16c8-a34     EXIT  SQLNumResultCols  with return code -1 (SQL_ERROR)
              HSTMT               00F41CC0
              SWORD *             0x0012E2B8
              DIAG [S1010] [Microsoft][ODBC Driver Manager] Function sequence error (0)
    CrystalDemoDlg  16c8-a34     ENTER SQLErrorW
              HENV                00F418D8
              HDBC                00F419A0
              HSTMT               00F41CC0
              WCHAR *             0x0012DE00 (NYI)
              SDWORD *            0x0012E224
              WCHAR *             0x0012DE20
              SWORD                      511
              SWORD *             0x0012DE14
    CrystalDemoDlg  16c8-a34     EXIT  SQLErrorW  with return code 0 (SQL_SUCCESS)
              HENV                00F418D8
              HDBC                00F419A0
              HSTMT               00F41CC0
              WCHAR *             0x0012DE00 (NYI)
              SDWORD *            0x0012E224 (0)
              WCHAR *             0x0012DE20 [      56] "[Microsoft][ODBC Driver Manager] Function sequence error"
              SWORD                      511
              SWORD *             0x0012DE14 (56)
    CrystalDemoDlg  16c8-a34     ENTER SQLErrorW
              HENV                00F418D8
              HDBC                00F419A0
              HSTMT               00F41CC0
              WCHAR *             0x0012DE00 (NYI)
              SDWORD *            0x0012E224
              WCHAR *             0x0012DE20
              SWORD                      511
              SWORD *             0x0012DE14
    I know that my post is too long, but i would like to give enough information for you to see what's happening. I use visual studio 2008 with crystal library 2008.
    Thanks,
    Lavanya.

  • Dynamic Menu error when saving to Crystal Reports Server R2 & Developer XI

    Hi All
    Product Version 11.5.9.1076
    In Crystal Reports XI developer I installed SP 4 the other day and when I save a report to the reporting server it seems to corrupt the dynamic menu when we open the report in the info view page the first selection in the cascading menu is OK but when I select items from the first menu it is just populating the second select box with what I selected in the first box
    I have it set to multiple
    If I run the report in the developer the menu selection work OK ?
    Also is any one else having a problem in the developer when selecting a date in using the calendar?
    The error is file://C:\Documents and Settings\simon hardstaff\Local Settings\Temp\prompting1.html
    Many thanks for any support given

    Just to update
    SP4 CR XI R2 seems to be changing some Date Parameters from Date to DateTime has any one else installed SP4 and using CR Server ?

  • LO 02010 / LO 26631 error while embedding a crystal report in a Dashboard

    Hi Experts,
    I am trying to embed a crystal report in a Dashboard Design using LiveOffice 4, and i am getting the below error.
    "An error occurred while opening the report. The report does not exist; you have insufficient rights to open the report; or you cannot make a connection to the BusinessObjects Web Service. (LO 02010)" and "Crystal Reports Java Format is not supported. (LO 26631)"
    I am logging in as an administrator and the report does exist in the CMC.
    Pls. Help
    Thanks
    Asiri

    Hi Amit,
    Thanks for replying.
    We did a upgrade from BOBJ 3.1 to 4.0 recently, and need to migrate the existing dashboards. DB connections to the reports have changed, hence the need to embed the migrated reports to the dashboard.
    Yes, I get this error when i try to embed a crystal report in dashboard. I do get the same error when trying to embed a WEBi report too. As you suggested, i tried inserting a sample crystal report, and that inserts like a charm.
    Pls. advice.
    thanks
    Asiri

  • Error when Opening a Crystal Report in a Web Application

    Hi All,
    How are things?
    We are trying to open a Crystal report in a Web Application based on a Web service on Appache Tomcat.
    The report is in the Test Environment poiting to a SQL 2005 Database.
    The report opens and runs fine in Crystal Reports and in Infoview.
    The Web application throws back a long error as shown below.
    Looks to be like a SDK Issue ( Not pretty sure )...
    Could anyone help me out on this?
    STACK TRACE: at BusinessObjects.DSWS.ReportEngine.ReportEngine.GetDocumentInformation(String documentReference, RetrieveMustFillInfo retrieveMustFillInfo, Action[] actions, Navigate navigate, RetrieveData retrieveData) at Service.GetReportWithParms(String rptName, String folderName, String parms, String user, String password, String output, String& strError) MESSAGE: Failed to retrieve binary view of the report. (Error: WRE 02527) CALL STACK TRACE: com.businessobjects.dsws.wsc.common.axis.WSExceptionFactory$ExportReportFailed at com.businessobjects.dsws.wsc.reportengine.Report.getBinaryDocument(Unknown Source) at com.businessobjects.dsws.wsc.reportengine.DocumentAgent.handleGetBinaryView(Unknown Source) at com.businessobjects.dsws.wsc.reportengine.DocumentAgent.handleRetrieveData(Unknown Source) at com.businessobjects.dsws.wsc.reportengine.DocumentAgent.handleActions(Unknown Source) at com.businessobjects.dsws.wsc.reportengine.CrystalReportEngineSoapImpl.getDocumentInformation(Unknown Source) at com.businessobjects.dsws.reportengine.ReportEngineSoapImpl.getDocumentInformation(Unknown Source) at com.businessobjects.dsws.reportengine.ReportEngineSoapSkeleton.getDocumentInformation(Unknown Source) at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:402) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:309) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at com.businessobjects.dsws.wsc.common.axis.FlashFilter.doFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Error in File XYZ.rpt: Failed to retrieve data from the database. Details: [Database Vendor Code: 408 ]---- Error code:-2147215357 Error code name:internal at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source) at com.crystaldecisions.sdk.occa.managedreports.ps.internal.f.a(Unknown Source) at com.crystaldecisions.sdk.occa.managedreports.ps.internal.f.export(Unknown Source) ... 49 more
    Thanks,
    Raj

    Moving post to .NET SAP Crystal Reports forum
    Hello Scott
    What browser are you using and what is the version of the browser?
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Error when running the Crystal Report 9.1 (visual studio 2003) in the deployed server

    Hello,
    1) I am suddenly getting an error message ‘Load Report failed’ in a production server (where the VS2003 application is deployed) when the Crystal Report is executed. This has happened maybe because of the Windows/Crystal Report Updates!
    I am able to see the same report perfectly fine in the development computer using VS 2003.
    I am using the 9.1 version which is part of the Visual Studio 2003.
    The event logs show 'Either the keycode library is not registered or it cannot be loaded ...EventID=10029'. See attached screen shot.
    Please help?
    2) Since I was getting a registration suggestion window  for using Crystal Reports, I registered twice using different email address and it said that it will send me the KeyCode for the Crystal report but after successful registration I never got any keycode but just an email acknowledging the Registration.
    I believe the KeyCode is required to use it in the server to execute/run a report.
    Can SAP representative email the keycode to my gmail account?
    My product key is: 
    Please help to resolve both my problems
    Thanks in advance,
    Sanjay Chudasama

    If I memory servers, you have to open the Crystal_Regwiz2003.msm in the .NET deployment project. One of the properties of the msm was Keycode (or similar). You entered the keycode here. To find your keycode; in VS2003 IDE, go to the Help | About screen. You will see one of the installed components as Crystal Reports and the keycode will be on the right of that. Copy the keycode from here, paste in the above.
    For more details see the article Crystal Reports and Visual Studio .NET - Application Deployment.
    - Ludek
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Share Your Knowledge in SCN Topic Spaces

  • Run-Time error '-2147417848 (80010108) in Crystal Report on SAP BW Query

    I have installed Crystal Report 2008 SP1 and the Business Objects Integration kit for 3.1 but when I try to create a report on top of an SAP BW query using the toolbar, after entering the logon parameters for SAP BW, I get a error message :
    Run-Time error '-2147417848 (80010108)
    Automation error
    The object invoked has disconnected from its clients.
    CR exits after this error message.
    I have tried uninstalling the Kit and CR, cleaning up the registry, and installing it again and still got this error message - It is the same for all my SAP BWs.
    Anyone ever had this?
    Thank you,
    R.

    Is this still an issue?

Maybe you are looking for

  • Undable to drop tablespace ORA-01561: failed to remove all objects in the

    hi, i am unable to drop table tablespace how can i do that?? please advise DROP TABLESPACE tbs_tp2 INCLUDING CONTENTS AND datafiles ERROR at line 1: ORA-01561: failed to remove all objects in the tablespace specified Thanks in advance siva chennai

  • I click on a link and it goes there in Firefox but it doesnt put the browser on top of what I am doing. How do i fix this?

    I click on a link and it goes there in Firefox but it doesn't put the browser on top of what I am doing. It used to do that, how can I make it go back to doing that?

  • Top-of-page in ALV  AND table

    hy folks, i read many topics about the top of page in alv but none answered to my problem, i have an alv_grid with top of page, but i need to put before the alv grid another table. is it possible to use CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'    

  • Lumia 800 forgot password

    Hi all, Recently upgraded to lumia 800.  Problem is i've set a password up and now forgot what it is.  Is there any way of ressetting it without my password.  I,ve had several goes and i'm now locked out for 64 minutes. Any help would be appreciated.

  • Batch splitting logic

    Hi I am required to add batch splitting logic in below code. Any one tell me how to do this PERFORM get_invoice_data.   PERFORM filter_invoice_data. FORM get_invoice_data.     SELECT k~vkorg k~vbeln k~fkart k~vtweg k~fkdat  "CHOYT CHG#1589121