Logon failed. Unable To Export Report.

Hi,
I am running visual studio 2010 ultimate edition with crystal reports for visual studio v 13.0.1.
I get the following exception when trying to export to PDF where my report has a sub report.
Logon failed.
Failed to export the report.
Error in File temp_04e1d62e-3f2c-4c44-a654-8aaa19d59ac4 {C0ABAF4C-E8A7-4633-A58F-DFAC3443AC58}.rpt:
Unable to connect: incorrect log on parameters.
Both the reports are bound to an .xsd file that in turn is hooked up to a stored procedure at design time (returned as a datatable object) which sets the appropriate datasource on the report object.
If I run each report seperately and export then I can successfully see the data inside the generated PDF document. However as soon as I add a sub report and try and export, bang I get this error.
I have been through your checklist and can confirm that your suggested settings do fit i.e Save data in report = false, case sensitivity on the db etc (this is proved by each report working when run seperately).
Any suggestions/solutions greatly appreciated
Thanks

yes saving it out seperately works and connectivity appears the same also?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CrystalDecisions.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using System.Data;
using System.Data.SqlClient;
using CrystalDecisions.Shared;
using System.IO;
namespace Flovate.CrystalReports
    public class ReportGeneration
        private static string InstructionReference { get; set; }
        public static void CreateInstructionReport()
            try
                InstructionReport report = LoadReport();
                SetReportAttributes(report);
                if (!Directory.Exists(Properties.Settings.Default.ExportReportLocation))
                    Directory.CreateDirectory(Properties.Settings.Default.ExportReportLocation);
                StringBuilder sb = new StringBuilder();
                sb.Append(Properties.Settings.Default.ExportReportLocation);
                sb.Append(InstructionReference);
                sb.Append(".pdf");
                report.ExportToDisk(ExportFormatType.PortableDocFormat, sb.ToString());
            catch (Exception ex)
                throw new Exception(ex.Message);
        public static void CreateInstructionExcessReport()
            InstructionApplicableExcessReport xsReport = LoadExcessReport();
            if (!Directory.Exists(Properties.Settings.Default.ExportReportLocation))
                Directory.CreateDirectory(Properties.Settings.Default.ExportReportLocation);
            StringBuilder sb = new StringBuilder();
            sb.Append(Properties.Settings.Default.ExportReportLocation);
            sb.Append("Excesses.pdf");
            xsReport.ExportToDisk(ExportFormatType.PortableDocFormat, sb.ToString());
        private static InstructionReport LoadReport()
            InstructionReport report = new InstructionReport();
            report.Load(Properties.Settings.Default.InstructionReportLocation);
            report.SetDataSource(GetInstructionData());
            //sub report
            InstructionApplicableExcessReport xsReport = new InstructionApplicableExcessReport();
            xsReport.Load(Properties.Settings.Default.InstructionExcessReportLocation);
            xsReport.SetDataSource(GetInstructionExcessData());
            return report;
        private static InstructionApplicableExcessReport LoadExcessReport()
            InstructionApplicableExcessReport xsReport = new InstructionApplicableExcessReport();
            xsReport.Load(Properties.Settings.Default.InstructionExcessReportLocation);
            xsReport.SetDataSource(GetInstructionExcessData());
            return xsReport;
        private static void SetReportAttributes(InstructionReport report)
            //these will come from the relevant connection
            TextObject textClientName = (TextObject)report.ReportDefinition.ReportObjects["TextClientName"];
            if (textClientName != null)
                textClientName.Text = Properties.Settings.Default.ClientName;
            TextObject textClientNamePayment = (TextObject)report.ReportDefinition.ReportObjects["TextClientNamePayment"];
            if (textClientNamePayment != null)
                textClientNamePayment.Text = Properties.Settings.Default.ClientNamePayment;
            TextObject textClientAddressDetails = (TextObject)report.ReportDefinition.ReportObjects["TextClientAddressDetails"];
            if (textClientAddressDetails != null)
                textClientAddressDetails.Text = Properties.Settings.Default.ClientAddressDetails;
            TextObject textTradingDetails = (TextObject)report.ReportDefinition.ReportObjects["TextTradingDetails"];
            if (textTradingDetails != null)
                textTradingDetails.Text = Properties.Settings.Default.ClientTradingDetails;
        private static DataTable GetInstructionData()
            DataTable data = new DataTable();
            try
                using (SqlConnection conn = OpenConnection())
                    using (SqlCommand cmd = new SqlCommand())
                        cmd.CommandType = CommandType.StoredProcedure;
                        cmd.CommandText = "spGetInstructionData2";
                        cmd.Connection = conn;
                        cmd.Parameters.Add("@InstructionGUID", SqlDbType.UniqueIdentifier).Value = new Guid("9B144C66-849E-4F03-B403-2D041E5AC420");
                        cmd.Parameters.Add("@InstructionTypeGUID", SqlDbType.UniqueIdentifier).Value = new Guid("9E9F21D8-E7BA-424C-8D18-360FDB177404");
                        cmd.Parameters.Add("@UpdateFlag", SqlDbType.Int).Value = 0;
                        cmd.Parameters.Add("@UserAccountGUID", SqlDbType.UniqueIdentifier).Value = new Guid("578BD5FC-B4EC-42E6-8423-3D68F3E77530");
                        using (SqlDataAdapter dataAdapter = new SqlDataAdapter())
                            dataAdapter.SelectCommand = cmd;
                            dataAdapter.Fill(data);
                            InstructionReference = data.Rows[0]["InstructionRef"].ToString();
            catch (Exception ex)
                throw new Exception(ex.Message);
            return data;
        private static DataTable GetInstructionExcessData()
            DataTable data = new DataTable();
            try
                using (SqlConnection conn = OpenConnection())
                    using (SqlCommand cmd = new SqlCommand())
                        cmd.CommandType = CommandType.StoredProcedure;
                        cmd.CommandText = "spGetInstructionApplicableExcessList";
                        cmd.Connection = conn;
                        cmd.Parameters.Add("@InstructionGUID", SqlDbType.UniqueIdentifier).Value = new Guid("9B144C66-849E-4F03-B403-2D041E5AC420");
                        using (SqlDataAdapter dataAdapter = new SqlDataAdapter())
                            dataAdapter.SelectCommand = cmd;
                            dataAdapter.Fill(data);
            catch (Exception ex)
                throw new Exception(ex.Message);
            return data;
        private static SqlConnection OpenConnection()
            string connectionString = @"Data Source=[SERVER];Initial Catalog=[DB];Persist Security Info=True;User ID=[UID];Password=[PWD];Connect Timeout=1200";
            SqlConnection conn = new SqlConnection(connectionString);
            conn.Open();
            return conn;

Similar Messages

  • 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

  • Unable to export reports to PDF in BI portal.

    Hello All,
    I am facing problem when trying to export reports to PDF in BI portal. It gives the error message "Error while generating the PDF".
    ADS BI export library is enabled in R/3 as suggested in SNOTE 1836587 and 944221.
    I have replicated the issue in the development portal, the export to PDF functionality is working fine for few user ID's. i checked the authorisation trace for the user ID's facing the issue, but no error was found in the trace.
    This is the detailed error message. Please suggest on this.
    Log ID:
    C0000A0C0502004A0000000300002023
    Initial cause
    Message: PDFDocument Processor failed to process GetColumnDataRequest Due to
    the following Reason
    can't parse argument number urn: AdobeDocumentServicesWsd/AdobeDocumentServicesVi/document
    Stack trace:
    com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: PDFDocument
    Processor failed to process GetColumnDataRequest Due to the following Reason
    can't parse argument number
    urn:AdobeDocumentServicesWsd/AdobeDocumentServicesVi/document
    at
    com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:55)
    at com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentColumnDataContext.execute(PDFDocumentColumnDataContext.java:70)
    at
    com.sap.tc.adobe.pdfdocument.sapinternal.impl.PDFColumnDataContextImpl.execute(PDFColumnDataContextImpl.java:22)
    at
    com.sap.ip.bi.export.xfa.impl.Document.writeWidthsAsXmlToStream(Document.java:362)
    at
    com.sap.ip.bi.export.xfa.widthcalc.WidthCalculator.<init>(WidthCalculator.java:55)
    at com.sap.ip.bi.export.xfa.impl.SizeCalculator.calc(SizeCalculator.java:103)
    at
    com.sap.ip.bi.export.impl.ExportController.calculateAndSetSizes(ExportController.java:158)
    at
    com.sap.ip.bi.export.impl.ExportController.doExportPrep(ExportController.java:503)
    at
    com.sap.ip.bi.export.impl.ExportController.convert(ExportController.java:336)
    at
    com.sap.ip.bi.export.controller.ExportResult.createExport(ExportResult.java:68)
    at
    com.sap.ip.bi.webapplications.pageexport.impl.PageExportRenderingRootNode.createPDF(PageExportRenderingRootNode.java:556)
    at
    com.sap.ip.bi.webapplications.pageexport.impl.PageExportRenderingRootNode.doExport(PageExportRenderingRootNode.java:142)
    at com.sap.ip.bi.webapplications.pageexport.impl.PageExportRenderingRootNode.processRendering(PageExportRenderingRootNode.java:389)
    at
    com.sap.ip.bi.webapplications.pageexport.impl.PageExportRenderingRootNode.processSnippetRendering(PageExportRenderingRootNode.java:274)
    at
    com.sap.ip.bi.webapplications.runtime.impl.page.Page.buildRenderingTree(Page.java:1329)
    at
    com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRenderingRootNode(Page.java:4938)
    at com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRendering(Page.java:4904)
    at
    com.sap.ip.bi.webapplications.runtime.impl.page.Page.doProcessRequest(Page.java:2803)
    at
    com.sap.ip.bi.webapplications.runtime.impl.page.Page._processRequest(Page.java:744)
    at com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRequest(Page.java:4960)
    at
    com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRequest(Page.java:4953)
    at
    com.sap.ip.bi.webapplications.runtime.impl.controller.Controller.doProcessRequest(Controller.java:1234)
    at com.sap.ip.bi.webapplications.runtime.impl.controller.Controller._processRequest(Controller.java:1083)
    at
    com.sap.ip.bi.webapplications.runtime.impl.controller.Controller.processRequest(Controller.java:1049)
    at com.sap.ip.bi.webapplications.runtime.impl.controller.Controller.processRequest(Controller.java:72)
    at
    com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._handleRequest(BIRuntimeService.java:462)
    at
    com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:365)
    at
    com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:26)
    at
    com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:213)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:129)
    at
    com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:270)
    at
    com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)
    at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:229)
    at
    com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
    at
    com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
    at
    com.sap.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:206)
    at com.sap.portal.prt.pom.PortalNode.service(PortalNode.java:588)
    at
    com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:233)
    at
    com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
    at
    com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
    at com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:520)
    at
    com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:201)
    at
    com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at
    com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:202)
    at
    com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:103)
    at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
    at
    com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.portal.prt.dispatcher.CustomHeaderFilter.doFilter(CustomHeaderFilter.java:58)
    at
    com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at
    com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at
    com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:432)
    at
    com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
    at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
    at
    com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    at
    com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    at
    com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    at
    com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
    at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
    at
    com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
    at
    com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by: java.lang.IllegalArgumentException: can't parse argument number urn:AdobeDocumentServicesWsd/AdobeDocumentServicesVi/document
    at java.text.MessageFormat.makeFormat(MessageFormat.java:1339)
    at java.text.MessageFormat.applyPattern(MessageFormat.java:458)
    at java.text.MessageFormat.<init>(MessageFormat.java:350)
    at java.text.MessageFormat.format(MessageFormat.java:811)
    at
    com.sap.tc.adobe.pdfobject.base.core.PDFObjectRuntimeException$DummyLocalizableTextFormatter.<init>(PDFObjectRuntimeException.java:43)
    at com.sap.tc.adobe.pdfobject.base.core.PDFObjectRuntimeException.<init>(PDFObjectRuntimeException.java:26)
    at
    com.sap.tc.adobe.pdfobject.base.core.PDFObjectDII.invoke(PDFObjectDII.java:393)
    at
    com.sap.tc.adobe.pdfobject.base.core.PDFObjectDII.doSoapCall(PDFObjectDII.java:91)
    at com.sap.tc.adobe.pdfobject.base.core.PDFObject.execute(PDFObject.java:194)
    at
    com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentColumnDataHandler.handle(PDFDocumentColumnDataHandler.java:93)
    at
    com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:52)
    ... 89 more
    [email protected]

    Hi Gaurav,
    Check if the URL in the ConfigPort_Document SOA destination is correct. Also, check if the os_libs directory under the /usr/sap/SID/JXX/j2ee directory. If it does, then stop the SAP system, rename the os_libs directory, and restart the system.
    Try generating a PDF report.
    Cheers!
    Hemanth

  • 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

  • Unable to export report to excel file from SAP

      Hi all,
    I have a problem to download data from a report. The XL gets downloaded in a different format than my colleague.
    We are using the same XL version but two weeks back the SAP GUI 730 got reinstalled to my machine and since then the problem
    started.
    Can you please confirm is there is any particular user settings for this?
    I have login in any different working ( SAP Export ) machine with my login ID and Password and try to export the report to excel file from SAP, and I have same issue . Same we have requested another user to login in my machine with their ID and Password and check the same, They have tried and its working for then in my machine.
    see screenshots attached.
    Thanks.

    Execute report>
    Right click anywhere in the report output and select Spreadsheet.
    A pop up box will appear, select which export option you would like to use and click green check.
    NOTE: If you don't see this option then goto Settings>Switch List then try above said.
    Thanks,
    Kumar

  • Unable to Export report from InfoView

    Hello, I have a remote user who is trying to export a report from InfoView to an Excel file and when she does she gets the following error..
    Your request was refused because you do not have the right 'Right To Download' on report 'frs://Input/a_005/014/000/3589/83453a9daf64d2.rpt'. Please ask your system administrator to grant you this right.
    I suspect it may be a problem with the activex plugin but i'm not sure.  Does anyone know where I can find the plugin so I can ask her to reinstall or does anyone know how to fix this problem?

    Hi Rod,
    You might want to check the users rights in the CMC first.
    There are a couple of rights which might be denied to the user
    'Download files associated with the report'
    'Export the report's data'
    To check these you will need to look at the user security for the folder in which the report is located. The rights are assigned under content, Crystal Reports.
    Regards
    Alan

  • Unable to export report to a legasy file in a particular format

    Hi All,
    I use to export a report to MS Excel. Hence, I had selected it as a default format. However, when I try to export the same report in some other format now then the system is not showing me that option.
    The reason is that, when we select "ShiftCtrlF7" system pop up a window where we can select the options. There are three radio buttons, first two for a particular format and the last one provides us with all the available options. Below that radio button, there is a check box, which allows the selectes format to be a default format.
    Once we check that box to make a particular format a default, then on the subsequent export the system does not prompt that selection window but directly pop-up the save window.
    Now I want to uncheck that checkbox so that I can select other file formats also but not able to do it as the system is not poping-up that selection window.
    Any help on this would be highly appreciated.
    Regards,
    Saurabh

    Hi,
    There are 2 options for you:
    1. Simply right-click in the ALV list somewhere (on a data line)
        The last option in the popup menu is "Spreadsheet" - click , and you'll find the
        file format selection window
    2. Administer this functinality for your user.
        execute program: SALV_BS_ADMIN_MAINTAIN via SE38
        and delete the settings for your userid.
    BR,
    Barna

  • Crystal report database logon failed through ODBC in report

    Please see viewpage.cs in type = "FPR"  in my web application
    https://sourceforge.net/projects/aspchequesprint/
    is it my program code problem ?
    i edited as following also not work, when i update with crystal report 2008 sp1 it said version is too low
                    TableLogOnInfo crTableLogonInfo = new TableLogOnInfo();
                    for (int i = 0; i < objRpt.Database.Tables.Count - 1; i++)
                        crTableLogonInfo.ConnectionInfo.ServerName = "Cheque";
                        crTableLogonInfo.ConnectionInfo.DatabaseName = database_name;
                        crTableLogonInfo.ConnectionInfo.UserID = "sa";
                        crTableLogonInfo.ConnectionInfo.Password = "fa920711";
                        objRpt.Database.Tables<i>.ApplyLogOnInfo(logOnInfo);
                    TableLogOnInfos crTableLogonInfos = new TableLogOnInfos();
                    crTableLogonInfos.Add(crTableLogonInfo);
                    CrystalReportViewer1.LogOnInfo = crTableLogonInfos;

    can not load database info after edit the code in above link
    i use p2sodbc.dll it said can not load database info,
    error at objRpt.ReportClientDocument.DatabaseController.SetTableLocation(boTables[0], boTable);
    is the code correct?
    public partial class _Default : System.Web.UI.Page
            private ReportDocument objRpt = null;
            protected void Page_Unload(object sender, EventArgs e)
                if (this.objRpt != null)
                    this.objRpt.Close();
                    this.objRpt.Dispose();
            protected void Page_Load(object sender, EventArgs e)
                CrystalReportViewer1.HasToggleGroupTreeButton = false;
                CrystalReportViewer1.HasToggleParameterPanelButton = false;
                CrystalReportViewer1.HasPrintButton = true;
                CrystalReportViewer1.HasDrilldownTabs = false;
                CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
                CrystalReportViewer1.PrintMode = CrystalDecisions.Web.PrintMode.ActiveX;
                string database_name = "Cheque_Test";
                string odbc_name = "Cheque";
                string db_username = "martinhylee";
                string db_password = "fa920711";
                objRpt = new ReportDocument();
                string reportPath = @"C:\michael\access_test\Cheque\Ada\Reports\Report1_85.rpt";
                objRpt.Load(reportPath, OpenReportMethod.OpenReportByTempCopy);
                //'Create a new Stored Procedure Table to replace the reports current table.
                CrystalDecisions.ReportAppServer.DataDefModel.Procedure boTable = new CrystalDecisions.ReportAppServer.DataDefModel.Procedure();
                //'boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
                PropertyBag boMainPropertyBag = new PropertyBag();
                //'boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
                //'In the main property bag (boMainPropertyBag)
                PropertyBag boInnerPropertyBag = new PropertyBag();
                //'Set the attributes for the boInnerPropertyBag
                boInnerPropertyBag.Add("Connect Timeout", "15");
                //boInnerPropertyBag.Add("Data Source", "MyDataSource");
                boInnerPropertyBag.Add("Data Source", odbc_name);
                boInnerPropertyBag.Add("DataTypeCompatibility", "0");
                boInnerPropertyBag.Add("General Timeout", "0");
                //boInnerPropertyBag.Add("Initial Catalog", "MyCatalog");
                boInnerPropertyBag.Add("Initial Catalog", database_name);
                boInnerPropertyBag.Add("Integrated Security", "False");
                boInnerPropertyBag.Add("Locale Identifier", "1033");
                boInnerPropertyBag.Add("MARS Connection", "0");
                boInnerPropertyBag.Add("OLE DB Services", "-5");
                boInnerPropertyBag.Add("Provider", "SQLNCLI");
                boInnerPropertyBag.Add("Tag with column collation when possible", "0");
                boInnerPropertyBag.Add("Trust Server Certificate", "0");
                boInnerPropertyBag.Add("Use Encryption for Data", "0");
                //'Set the attributes for the boMainPropertyBag
                //boMainPropertyBag.Add("Database DLL", "crdb_ado.dll");
                boMainPropertyBag.Add("Database DLL", "p2sodbc.dll");
                boMainPropertyBag.Add("QE_DatabaseName", "VEPILOT");
                boMainPropertyBag.Add("QE_DatabaseType", "OLE DB (ADO)");
                //'Add the QE_LogonProperties we set in the boInnerPropertyBag Object
                boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag);
                boMainPropertyBag.Add("QE_ServerDescription", "MyServer");
                boMainPropertyBag.Add("QE_SQLDB", "True");
                boMainPropertyBag.Add("SSO Enabled", "False");
    Edited by: Don Williams on Jul 12, 2011 8:47 AM

  • 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

  • Logon failed. Details: mscorlib (Crystal report error during print &export)

    Hi,
    I'm encountering the problem that the crystal report is working fine in the staging server I developed.
    However, after I transported to live server the report having problems when printing and exporting.
    Below is the error message prompts to me.
    Logon failed. Details: mscorlib : Could not find file 'C:\Inetpub\wwwroot\rptPrintSummaryConfineSpace.xml'. Error in File C:\WINDOWS\TEMP\rptPrintSummaryConfineSpace {2D72226E-816A-4D9B-BF93-C9077001F09C}.rpt: Unable to connect: incorrect log on parameters.
    I hit this error when I click OK button on export or print option page.
    My temp folder at windows is given full permission for IIS_WPG and ASPUSER.
    Please help to resolve my problem thank you very much.

    What version of Crystal Reports?
    What CR Service Pack are you on?
    What is the database?
    How are you connecting to the databse (ODBC, OLE DB, etc.)?
    - Ludek

  • 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

  • Crystal export to pdf  windows app: logon fails  -- works at other sites

    There must be hundreds of these errors each seems different. 
    I have a program installed on 4 different networks running vb.2008 windows app with the bundled CR.     It works on Vista 64 and windows xp machines.  Uses sql express 2008   The following works on all of them but one  (all installed with same setup disk):  crystal viewer opens with a report. A button is pressed and the report is automatically exported to a folder.  However in this one case all machines at one site fail (vista & xp)  As I mentioned, this  export functionality works on 3 other sites including development site and the reports all come up on all sites.  It is just the export to pdf on all machines on one site. Plus all reports work fine at all sites.  It is just the export to pdf at the one site.   Hee is the error.
    Crystaldecisions.crystalreports.engine.logonexception: logon failed.
    details: mscorlib: could not find file 'c:\windows\temp\inv.xsd'
    error in file c:\document.......
    unable to connect: incorrect log on parameters---> system.runtiem.interopservices.comexception(0x8004100DF) Logon failed.
    Unable to connect: incorrect log on parameters.
    at crystaldecisions.reportappserver.controllers.reportsourceclass.export(exportoptions pexportoptions,requestcontext prequest context)
    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.reportsource.eromreportsourcebase.export(exportrequestcontext reqcontext)
    at crystal.crystalreports.engine.formatengine.export()
    at crystaldecisions.crystalreports.engine.reportdocument.export()
    at fioes.frmcrmenulaserreport.exportcompletion()
    The same person set up all 4 networks for whats thats worth.

    reports work fine on all the machines and never had an error. In fact, report is up in  CR viewer when user presses button to export. Error is  on the crrpt.export command
    by the way, actually what happens when the cr.export is executed?  Maybe that may help me.
    Edited by: suzanne haig on Jun 18, 2009 9:27 PM
    One issue that I noticed  is that when there are report parameters defined they need to be in the same   block as the export object setup.  I in fact do have parameters that are given their value from  a dataset.  This is done in the form that shows the crystal viewer, but they are not  in the same procedure  as the export creation and the dataset for the parameters  is not declared on the form level.  However, the report object is declared on the form level as is the datset with the report data, so any property added to it, should be visible throuout the form including where the export occurs.
    However, this would not explain why the same situation works in another location and not just on the developer machine.  I also notice that the error message says it cannot find the xsd file, but it is in the proper location (other wise the report would not be viewable or printable)
    How does the export work, does it create an entire new instance of the report?   perhaps knowing what goes on behind the scenes would help me figure out what to do.
    Edited by: suzanne haig on Jun 18, 2009 11:17 PM

  • Database Logon Failed after first report

    I have a Windows Server 2003 x86 server running IIS6 and ASP.NET. On this server, I have two different web forms set up to export Crystal Reports to PDF.
    My problem is that only one of these reports can run. For example, I open report 1 and can then reopen (generate PDF of) report1 as many times as I want. I cannot open report 2 - I get a "Database Logon Failed" error message. If I restart the server, I can generate a PDF of report 2 successfully and as many times as I want but report 1 will get a "Database Logon Failed" error message.
    Has anyone seen this behavior before? My code is very concise and manually closes the report document (and forces the garbage collection to run) once the PDF has been generated. However, for some reason, the report is staying in memory and is trying to run again even though it has been closed. It is driving me crazy.
    Thanks in advance for any assistance you can offer.

    Let's get the server confusion out of the way.
    A "server" runtime install is an msi file called CrystalReports11_5_NET_2005.msi.
    The msi is in a download called Crystal Reports XI Release 2 - FP x.x .NET Server Install (where x.x refers to SP or FP version (e.g.; Crystal Reports XI Release 2 - FP 5.6 .NET Server Install)
    So, this gives you an easy way of installing the CR runtime on a server (e.g.. Win 2003 server). No CR server (RAS) implication here. To install the runtime, all you have to do is run the msi, provide the keycode when prompted and the runtime is installed. You should see the directory C:\Program Files\Business Objects\Common\3.5\bin created. No pretty interface, etc. If you want a pretty interface, you create your own setup project or msi using the CR msm files.
    Hopefully this clears up the "server" confusion.
    To the actual issue on hand.
    You say this works with older "Crystal Reports viewers" installed on a WIN 2003 64 bit server. My question is; does this CR XI r2 based app work anywhere? Your dev box? Staging server?
    Ludek

  • 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

  • The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError) Log on failed. Ensure the user name and password are correct. (rsLogonFailed) Logon failure: unknown user name or bad

    The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)
    Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
    Logon failure: unknown user name or bad password 
    am using Windows integrated security,version of my sql server 2008R2
    I have go throgh the different articuls, they have given different answers,
    So any one give me the  exact soluction for this problem,
    Using service account then i will get the soluction or what?
    pls help me out it is urgent based.
    Regards
    Thanks!

    Hi Ychinnari,
    I have tested on my local environment and can reproduce the issue, as
    Vaishu00547 mentioned that the issue can be caused by the Execution Account you have configured in the Reporting Services Configuration Manager is not correct, Please update the Username and Password and restart the reporting services.
    Please also find more details information about when to use the execution account, if possible,please also not specify this account:
    This account is used under special circumstances when other sources of credentials are not available:
    When the report server connects to a data source that does not require credentials. Examples of data sources that might not require credentials include XML documents and some client-side database applications.
    When the report server connects to another server to retrieve external image files or other resources that are referenced in a report.
    Execution Account (SSRS Native Mode)
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

Maybe you are looking for