Logon Failed Error in Crystal Reports

Hiii Experts, 
                We are facing one error while working on crystal reports 2008 and SAP Version 8.8-PL18 and SAP 8.81-PL 9
"Logon Failed"  Error comes  even when we add all connection details correctly in connection details window, sometimes it comes some time not.
          We face this error when,
1) When verifying the database in Crystal reports.
2)When we are saving any particular report in sap B1.
3)It comes when we try to set the database Location in Crystal Reports.
4)Also,when we are trying to view preview of report.
                This problem is too much time consuming and irregular. We are not able to find exact cause. Please, help  us.
Edited by: suhas.patil on Jan 24, 2012 3:54 PM

Hi Suhas,
when making a test, its always a good practice to test in the same PL, or in a Higher PL.
anyways, you need to update your Datasource, from your CR IDE goto Database -->> Set Datasource Location. then use either of the 2
1. OLE DB (ADO) - Driver (SQL Server Native Client 10.0)
2. SAP Business One
and update your datasource accordingly.
rergards,
Fidel

Similar Messages

  • Logon Failed when exporting crystal report to PDF

    Hi, I am Teguh
    i want to ask about error when export crystal report to pdf
    error message
    CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed
    [LogOnException: Logon failed.]
       .I(String , EngineExceptionErrorID ) +506
       .D(Int16 , Int32 ) +537
       .C(Int16 ) +10
       CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +577
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType) +141
       Falcon.CRTransferSlip.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\Falcon\CRTransferSlip.aspx.vb:77
       System.Web.UI.Control.OnLoad(EventArgs e) +67
       System.Web.UI.Control.LoadRecursive() +35
       System.Web.UI.Page.ProcessRequestMain() +750
    environment:
    OS : Windows server 2008 standard SP1
    IIS: Version 7.0
    SQL: Sql server 2000
    VS : Visual studio 2003
    i really confused with this error,
    please help me for this problem
    many thank's

    Hi Ludek
    Thank you for your response. I have installed SP3 and ProcMon and still the same result.
    I applied a filter on ProcMon to filter out items where the path contains 'export'.
    There are a few items where the result is 'NAME NOT FOUND' but I don't think it necessarly had anything to do with the barcode. These include items such as 'EXPORT\MailDestType','EXPORT\DisableExportLiveOfficeSupport'','EXPORT\ExportDirectory' to name a few.
    What drew my attention was the ACCESS DENIED result on specifically the EXPORT\PDF folders. The detail for these are  Desired Access : All access, however the very same entry appears a little futher on as a SUCCESS but this is detailed as Desired Access: Query Value.
    So in summary it looks something like this:
    User : Server\XXX
    Operation : RegOpenKey
    Path : HKU\.DEFAULT\Software\Business Objects\Suite 12.0\Crystal Reports\Export\Pdf
    Result : ACCESS DENIED
    Desired Access : All Access
    User : Server\XXX
    Operation : RegOpenKey
    Path : HKU\.DEFAULT\Software\Business Objects\Suite 12.0\Crystal Reports\Export\Pdf
    Result : SUCCESS
    Desired Access : Query Value
    There are a few other entries that follow this pattern that exists in other locations such as HKLM\Software...
    Could this 'ACCESS DENIED' be the problem? and If so how do I, and should I give user XXX this ALL Access its looking for.
    Regards
    Elroy

  • The Report Server Failed Error in Crystal Report

    Dear All,
    I converted one PLD to Crystal Report using the Crystal Converter tool in SAP B1 8.81 Pl00. However, when I try to preview the Crystal Report, I am getting an error "The Report Server Failed" and then SAP hangs.
    Any known solution for this?
    Thanks and regards,
    Bharath S

    Dear Bharath,
    Your PL is too low. Upgrade to the latest PL will solve this problem.
    Thanks,
    Gordon

  • Database Logon Failed in Drill Down reports

    I am developing reports on Crystal Reports XI R2, VS.NET 2005 , SQL Server 2000, C#.
    I am getting Database Logon Failed when I click on a drill down link in the report. It works if I click on the drill down link with in a minute. But if I wait for a minute and click on drill down, I am getting Database Logon Failed 
    Error in Crystal report viewer14
    Object reference not set to an instance of an object
    Any help would be greatly appreciated.
    Thanks,
    Sailu

    The above code should be written after the loading of report.
    For example-
    private void Page_Load(object sender, System.EventArgs e)
                   // Put user code to initialize the page here
                   if (!IsPostBack)
                        crReport.Load(Server.MapPath("CrystalReport1.rpt"));
                        ConnectionInfo crConn= new ConnectionInfo();
                        crConn.ServerName="D-3271-SQL";
                        crConn.DatabaseName="Northwind";
                        crConn.UserID="sa";
                        crConn.Password="sa";
                        Tables crTables=crReport.Database.Tables;
                        foreach(CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
                             TableLogOnInfo crLogoninfo=crTable.LogOnInfo;
                             crLogoninfo.ConnectionInfo =crConn;
                             crTable.ApplyLogOnInfo(crLogoninfo);
                   CrystalReportViewer1.ReportSource =crReport;
    I hope this help
    Regards
    Amit
    Edited by: Amit Singh on Aug 21, 2008 4:48 PM

  • Database logon failed error on IIS7

    I am getting a Database logon failed error on a report that is being called in ASP.NET form on IIS7. This error does not happen in my development environment but only on the webserver in IIS7. I can open the report and run it in Crystal Reports designer without any problem. Any help on this will be appreciated. The error message I get is below.
    Report File: LossRunByPolicyNoDates.rpt Report Path: C:\inetpub\wwwroot\adhoc_reports\LossRunByPolicyNoDates.rpt Export Path: C:\inetpub\wwwroot\adhoc_inbox\khogan\RSF500217-09.pdf CrystalDecisions.CrystalReports.Engine.LogOnException: Database logon failed. ---> System.Runtime.InteropServices.COMException (0x8004100F): Database logon failed. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) --- End of inner exception 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.FormatEngine.Export() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export() at adhoc.WebForm1.btnRun_Click(Object sender, EventArgs e) in C:\inetpub\wwwroot\adhoc\WebForm1.aspx.vb:line 443

    In addition to the information that Bhushan requested;
    What database?
    How are you connecting to it (ODBC, OLE DB, etc.)?
    I'd also highly recommend having a read of the following:
    What do I need to do to get the fastest issue resolution?
    With he info you provided, you are asking us to guess, which typically proves to be a very inefficient way of troubleshooting any issue...
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Crystal report logon Failed Error

    Dear All
    We have installed BOBJ Edge 3.1 Server at Windows Server.
    We insalled Crystal Report 2008 at one of our Laptop.  (Client).
    When we tried to create a sample report,
    we selected a existing universe from the BOBJ Server.  When we selected it ask me for the server connection details. It connected and showed me the existing unverses.
    I selected say eFashion - and picked some fields and Click OK.
    Then it givs logon failed error.
    Can some one explian me where i am missing
    REgards,
    Venkat

    Hi Venkat,
    If the Universe is based off an ODBC connection, then the same ODBC connection (with the same name) needs to be present on the client machine too.
    So, like Don suggested, the client machine would need the same DB client too.
    Open the Universe in the Universe Designer. Go to File > Parameters > Edit. This is where you see all the connection information of the Universe.
    -Abhilash

  • Logon Failed Error Thrown by Simple Web Report

    <p>I am getting the logon failed error when I try to access the web service hosting my report. The report displays information from a typed dataset that loads the XML from the local directory. The report runs fine from a windows console application where I must instantiate a dataset, read the XML, and bind to the report. The typed dataset is in the web service project and the XML file is in the base virtual directory and bin directories.</p><p>To create the web service, I followed an example from a .NET Programming book, but it did not include all of the steps above. Where do I tell the web service to instantiate the dataset and load the data?</p><p>Thanks. Greg <br /></p>

    Are you publishing a Crystal Report as a Web Service, i.e., a Web Service view of a Crystal Report, or creating a Web Service that exports a Crystal Report, i.e., export a RPT or PDF of a Crystal Report?
    I'm inferring that you have a ADO.NET class that consumes XML, then Crystal reports off that ADO.NET.
    I'm also assuming you're not using BusinessObjects Enterprise Web Services.
    I'd like to get further info as to where things are breaking down.
    Sincerely,
    Ted Ueda

  • Vista/Adobe 9/sql image Error in Crystal Report:Failed to Export the Report

    When I try to export my Crystal Report (v2008) from a Vista machine (using Crystal RDC export methods) as a PDF, I get the following error:
    Error in Crystal Report:  Failed to export the report.
    This only happens when a particular subreport (that contains a sql image) prints (based on an input parameter).  We have other subreports (within this same report) that print a sql image just fine.  But, when this subreport prints, the above error appears.
    I can run the same report on an XP machine without error.
    Exportmodeller.dll and crtsv.dll are both installed and registered to the
    C:\Program Files\Common Files\Business Objects\3.0\bin folder
    I have tried opening the report, removing the image, and then adding it back in again to the subreport.
    Still receive the same error.
    Any suggestions?

    >
    Don Williams wrote:
    > RDC is no longer shipped in CR 2008. You are using the embedded designer used within the Visual Studio .NET IDE and is not licensed for distribution.
    >
    > Upgrade to the .NET components and post your question to the .NET forums.
    >
    > Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.
    Don,
    Can you please clarify?
    Our VB6 app that uses Crystal XI RDC runtime components.  Our Crystal reports are edited in CR2008 SP1 developer edition (not through the VB.NET embedded report designer).  We have deployed the CRXIRelease 2 runtime components (via the merge module) to our client machines in order to execute the RDC.
    We can print/preview/export to excel, but the pdf creation is failing with this error.
    We are only using the RDC (which we know is no longer supported) because of huge issues with the Crystal for .NET methods we are having with our customers (I have an active case for this issue).  Therefore, we have to rollback our .NET product and revert to the RDC code. 
    Vista is failing to create a PDF for a report developed in the CR2008 SP1 developer edition when using the RDC.
    When you say  "Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.", what do you mean by "will not work in CR2008"?
    Thank you

  • Error deploying Crystal Report XI R2 to Enterprise - Failed to read paramet

    Error deploying Crystal Report XI R2 to Enterprise - Failed to read parameter object.
    I know this issue has been addressed several times and the solution recommended was to install Service Pack 2. I have done that. It started working for me too; however recently I got some error saying some UDF***.DLL is missing. I re-installed Crystal Reports XI R2 and Service Pack 2. Unfortunately though, this error is back. I have restarted the machine n number of times but keep on getting this error.
    My report file has dynamic parameters defined through command object (SQL Query). My understanding is that once I publish the report to BoE Enterprise, BO will create LOVs and BV's in the repository. Now that is not happening.
    has any one else had this issue before and resolved it?
    Thanks

    Hi,
    do you export your CR report in your BOBJ repository using an account with administrator rights?
    Regards,
    Stratos

  • Temporary error "A Crystal Reports job failed because a free license ..."

    Hi all,
    We coded with VS 2003 a .NET 1.1 application which using the Crystal Report 9 Redistribution package .NET ready to display reports from measured data from our device. The data is stored in a SQL Server 2000 MSDE. Crystal Report has his own DB connection to the SQL server to read the data to display the report.
    Our application runs well on approx. 100 distributed installations. But on six customers installation we get this error. Actual on two customers PCs using the same DB we get the error "A Crystal Reports job failed because a free license could not be obtained in the time allocated.". This error pop up every time, when the report is shown. Although the report get shown completely.
    I observed in the 'Windows Event Viewer => "System" log after the above-mentioned error following entry "Crystal Report job was delayed 2 (sec)." once for every time when the user requested a report.
    I restored an empty DB on customers PC and the error don't pop up anymore.
    All CR .NET assemblies have the version 9.2.3300.0. I tested also the "CrystalReportNET_keycodefix.zip", but it doesn't help. I had checked for hours all the issues about this error message on the internet. I tested the most fitting solutions, but not one fix the problem.
    I tested customers full DB on my Virtual Machine with same installation, but I don't get the error.
    Cheers
    Ronny

    Hi Ludek<br>
    <br>
    Thanks for your answer. I checked all the things you asked me to do on both system.<br>
    <br>
    Here are the results from my investigations:<br>
    <br>
    <b>1) The keycode.dll was not on the not working PC.</b><br>
    I copied it to the root of C: as on the working PC. I registered it with regsvr32.exe and tested the issue.<br>
    => The problem still exist.<br>
    <br>
    <br>
    <br>
    <b>2) I compared the keycode on both system:</b><br>
    HKLM\SOFTWARE\Crystal Decisions\9.0\Crystal Reports\Keycodes\CR Ent<br>
    <br>
    non working PC:<br>
    1 AAP50-GS00000-U7000RN 131203342 3979604006<br>
    The code is different in comparison to the working PC, because I carried out the 'CrystalReportNET_keycodefix.zip'. Before this I made an export of the above registry key. Afterwards I wasn't able to merge this export (backup) again with the registry. I assume due to the included carriage returns in the keycode.<br>
    <br>
    working PC<br>
    1 XXXXX <br>
    <br>
    <br>
    <br>
    <b>3) I used the Process Monitor and got following error during the error sequence:</b><br>
    <br>
    I list only some key entries from the hundreds of error entries. Please inform me, how I can provide you the full logger files.<br>
    <br>
    non working PC:<br>
    WriteFile         C:\...\Administrator.QCNIR002\Local Settings\temp\~cpe{AD83....}    Fast IO Disallowed<br>
    RegEnumKey HKCR\Drive\shellex\FolderExtensions                                                 NO MORE ENTRIES<br>
    RegOpenKey HKLM\Software\Crystal Decisions\9.0\Crystal Reports\Database      NAME NOT FOUND<br>
    RegOpenKey HKCU\Software\Crystal Decisions\9.0\Crystal Reports\Database      NAME NOT FOUND<br>
    RegOpenKey HKLM\Software\Policies\Microsoft\Windows NT\DnsClient                 NAME NOT FOUND<br>
    <br>
    But I observed beside the results: No more entries, Name not found, Fast IO Disallowed, Buffer overflow (RegQueryKey) and Range not locked (UnlockFileSingle of printer driver) no other errors.<br>
    <br>
    <br>
    working PC<br>
    Operation:      Path:                                                                                Result:<br>
    WriteFile         C:\...\Administrator\Local Settings\temp\~cpe{AD83....}                 Fast IO Disallowed<br>
    RegEnumKey HKCR\Drive\shellex\FolderExtensions                                            NO MORE ENTRIES<br>
    RegOpenKey HKLM\Software\Crystal Decisions\9.0\Crystal Reports\Database NAME NOT FOUND<br>
    RegOpenKey HKCU\Software\Crystal Decisions\9.0\Crystal Reports\Database NAME NOT FOUND<br>
    <br>
    <br>
    <br>
    <b>4) Service Packs</b><br>
    We could only compare the file size of the Merge Module we used with the one you provided me in the above link.<br>
    <br>
    <table border=0 cellpadding=0 cellspacing=0>
    <tr>
    <td>file name</td>
    <td>file size of used Merge Module</td>
    <td>file size of SP1 Merge Module</td>
    </tr>
    <tr>
    <td width=150>crnetruntime.msm</td>
    <td width=100>4'764'672 Byte</td>
    <td width=100>4'770'304 Byte</td>
    </tr>
    <tr>
    <td>license.msm</td>
    <td>578'048 Byte</td>
    <td>578'048 Byte</td>
    </tr>
    <tr>
    <td>reportengine.msm</td>
    <td>10'701'824 Byte</td>
    <td>10'905'088 Byte</td>
    </tr>
    </table>
    <br>
    But I tried to install SP7 on my PC and on customers PC, but I got following error after I accepted the license agreement in the setup.exe: titlebar of window 'Information', Msg: 'Failed to create Backup folder -110' and just a button 'OK'. I got into an infinit loop and I could only end the process: 'IKernel.exe'.<br>
    Remark: I get the same error with SP5 and SP6.<br>
    <br>
    <br>
    <br>
    <b>5) Modules - comparison of DLL's</b><br>
    <br>
    I cross checked all the DLL in Modules, which begin with CR and some other, because there were over 100 DLL's.<br>
    <br>
    <table x:str border=0 cellpadding=0 cellspacing=0 width=834 style='border-collapse:
    collapse;table-layout:fixed;width:626pt'>
    <col width=385 style='mso-width-source:userset;mso-width-alt:14080;width:289pt'>
    <col width=179 style='mso-width-source:userset;mso-width-alt:6546;width:134pt'>
    <col width=110 style='mso-width-source:userset;mso-width-alt:4022;width:83pt'>
    <col width=80 span=2 style='width:60pt'>
    <tr height=17 style='height:12.75pt'>
      <td height=17 width=385 style='height:12.75pt;width:289pt'>CRHEAPALLOC.DLL</td>
      <td width=179 style='width:134pt'>9.2.0.2</td>
      <td width=110 style='width:83pt'>9.2.0.2</td>
      <td width=80 style='width:60pt'></td>
      <td width=80 style='width:60pt'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRPE32.DLL</td>
      <td>9.2.3.1183</td>
      <td>9.2.3.1183</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRQE.DLL</td>
      <td>9.2.1.625</td>
      <td>9.2.1.625</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRTOWORDS_EN.DLL</td>
      <td>9.2.0.14</td>
      <td>9.2.0.14</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRYSTALDECISIONS.CRYSTALREPORTS.ENGINE.DLL</td>
      <td>9.3.9500.10</td>
      <td>9.3.9500.10</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRYSTALDECISIONS.REPORTAPPSERVER.CLIENTDOC.DLL</td>
      <td>9.2.3300.0</td>
      <td>9.2.3300.0</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRYSTALDECISIONS.REPORTSOURCE.DLL</td>
      <td>9.3.9500.7</td>
      <td>9.3.9500.7</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRYSTALDECISIONS.SHARED.DLL</td>
      <td>9.3.9500.10</td>
      <td>9.3.9500.10</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRYSTALDECISIONS.WINDOWS.FORMS.DLL</td>
      <td>9.3.9500.12</td>
      <td>9.3.9500.12</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRYSTALKEYCODELIB.DLL</td>
      <td>9.2.3300.0</td>
      <td>9.2.3300.0</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>keycode.dll</td>
      <td>9.0.0.281</td>
      <td>9.0.0.281</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>MSADCE.DLL</td>
      <td>2.81.1135.0</td>
      <td>2.81.1135.0</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>MSADCER.DLL</td>
      <td>2.81.1117.0</td>
      <td>2.81.1117.0</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>MSADO15.DLL</td>
      <td>2.81.1128.0</td>
      <td>2.81.1128.0</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>MSADRH15.DLL</td>
      <td>2.81.1117.0</td>
      <td>2.81.1117.0</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>MSCORLIB.DLL</td>
      <td class=xl26>01/15/09 22:31:34</td>
      <td class=xl26>7/7/08 13:39</td>
      <td class=xl24></td>
      <td class=xl25></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>sqlresld.dll</td>
      <td>2000.80.382.0</td>
      <td>2000.080.0382.00</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>crdb_ado.dll</td>
      <td>9.2.1.542</td>
      <td>9.2.1.542</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    </table>
    <br>
    Please specify the more detailed, if you mean the Crystal framework files or the .NET files. Could you give me please the location of the framework dlls and database client dlls like a folder name, so that I can check also all of them.<br>
    <br>
    I can provide you also the Module logger files, if you require them.<br>
    <br>
    <br>
    I would appreciate your further help very much.<br>
    <br>
    Cheers<br>
    <br>
    Ronny
    Edited by: Ronny S. on Jul 6, 2009 4:57 PM
    Edited by: Ronny S. on Jul 6, 2009 5:02 PM
    Edited by: Ronny S. on Jul 6, 2009 5:17 PM
    Edited by: Ronny S. on Jul 8, 2009 11:44 AM
    Edited by: David Hilton on Jul 15, 2009 11:04 AM
    Removed private keycode.

  • CRVS2010 Beta 2 - "Database Logon failed" Error, after Upgrade

    Hi,
    Generally: we are using the Crystal Reports in combination with a DataSet, that is filled during runtime and pushed to the report, using "SetDataSource". The Project is an ASP .NET 3.5 Project, published on our server.
    I upgraded my development-machine to CRVS2010 (installed both packages - the CRVS for VS 2010 and the runtime) last week and changed some fields in the Report. The DataSet was left unchanged. Everything is working well on my development-machine, but when I publish the Project to our server, I get an "Databse Logon failed" Error, when I want to create my Report. The CRVS2010 Beta 2 redist Runtime is installed on our server. Here is the code, we use:
    // create new Report
    var report = new Reports.repMyReport();
    // DataSource ds was filled correctly (we checked with export to XML
    report.SetDataSource(ds);
    // Set several Parameters to Report
    report.SetParameterValue("test", "test");
    // Export Report to PDF-Format and open in Browser
    report.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, false, "reportName.pdf");
    Response.End();
    The error I get is:
    Database logon failed.
    [COMException (0x8004100f): Database logon failed.]
       CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
       CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +260
    [LogOnException: Database logon failed.]
       CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) +325
       CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +315
       CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +650
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) +98
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName) +98
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName) +124
       SprintBoxWeb.BuchungDruck.Page_Load(Object sender, EventArgs e) in D:\Projects\sprnt_erp\SprintBoxWeb\BuchungDruck.aspx.cs:32
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    I already tried everything, found googling the web and/or searching this forum:
    e.g.: perform "verify Database" on all Reports and map the DataSet.xsd again to the Report
    Is that a known issue on the Beta and we should wait for the RC, or does anyone have an idea how to fix that one?
    This error is really annoying!
    Many thanks for your help.
    kind regards
    Reinhard

    Dear Ludek,
    Many thanks for your quick reply. Currently, I have to finish some other things. I will try your ideas next week and give you some feedback then, to keep you informed.
    best regards,
    Reinhard

  • Multi Value Parameter in SP  error in Crystal Report SAP B1 ?

    Hi Experts ,
    i am Getting an error in Crystal Report
    "Failed to retrieve data from the database.  Details:  42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '('. [Database vendor code: 120]" 
    I an executing the SP In Command  , I want to pass multi value parameter in SP
    When Pressing  ok
    than  On Ok Button  Error come
    So I have Some Question
    1> Why All parameter in Commend Are  Automatic getting  Compulsory  and How to Avoid It?
    2> How to Solve  this error ? this error is only coming with multivalued parameter ?
    i have many report in which i have to send the multi value parameter into query it self  so , Plz Help Me
    I am New to Crystal Report so it will be Kind Of you  if explain  with example .
    Thankks in Advance !!!
    Regards,
    Mayank Shah

    Hi Shachar,
    i will explain one because i think some thing is misunderstood
    please the images
    when all parameter record selected and no parameter record selected ... i want all record should display
    this blank report is problem
    Regards,
    Mayank Shah

  • Logon failed error when launching Web Intelligence from InfoView

    After changing the Web Intelligence preferences in BusinessObjects Enterprise XI 3.0 Java InfoView to launch the desktop or rich client option, I get a "logon failed" error message. However, when I launch Web Intelligence Rich Client from 'Start > Programs >...' directly, the same logon information is successful. The logon is set to use Enterprise authentication which is the same logon information used to launch InfoView and Web Intelligence.
    Why does the logon fail when I launch Web Intelligence from InfoView?
    Edited by: Ana on Mar 31, 2009 3:43 PM

    I deleted the report completely and rebuilt it from scratch, and also added names for the data table and data set generated within the project and finally, success!
    Jason, thanks so much for your help which got me moving on this again.

  • Logon fail error

    I created a Windows appliction using CR 2008 basic (VS2008). It connects to an SQL server 2008 computer using SQL server authentication. The application works fine in Vista and Windows Server 2008; it connects to the SQL server, generates the report and shows it fine. All this without asking me about username and password to logon to the database (as i provide the username and password in the code). However, when i use the application in Windows Server 2003 or Win XP, it gives a logon failed error and shows a prompt for entering username and passord to logon to the database. Even when i enter the correct password, it keeps giving logon error. I'd appreciate any help. Thanks.

    More than likely, this is a database client issue - either not installed, not installed correctly, or incorrect version. E.g.; it is not a code issue. Couple of ways of troubleshooting this:
    1) Download the Modules utility and compare the dlls loading on a working and non working machines. Modules is [here|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip]
    2) Download an eval of CR 2008, install it on one of the non working computers and try to run the report fromthe designer. Eval of CR 2008 can be downloaded from [here|http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx]
    Ludek

  • DAO Logon failed error

    In one of our clientu2019s machine they are getting a logon failed error u201CCannot open a database created with a previous version of your application.u201D Our report is connecting to multiple tables created in Access 97 password protected database using DAO native connection. In one of the reports that uses single table if I will create a recordset and pass it as the datasource it works fine. I cannot apply this to the other reports since it is using several tables and subreports with a link to the main table. I added a code to test the connectivity on each table after I set the location and password and it fails. Can you please help me figure out why the report cannot connect to each table and what causing this logon failed error?

    Ok so to clarify how was that report originally created, off the tables or off the dataset?
    Because using one or the other requires code to update the report itself if changing. Setting the report to a dataset doesn't require logon info. And at the same time setting a report based on a DS to a DB does require logging on.
    Next, can anyone, even the DBA who has full access, run that report? CR fully supports DB security, so if the user does not have access to the tables in the report then you will get an error.
    Don

Maybe you are looking for