Subreport Error

I have a report that is nothing more than a compilation of 6 subreports.  This report works perfectly locally in design mode (using VS 2008).  It was migrated to a report manager instance and worked perfectly.  It was migrated
to a second report manage instance on another server and now the first 2 subreports do not run.  I get the error "Error: Subreport could not be shown."  All six of the reports work when I execute them on their own.  All six reports
use the same subparameters (names and values) and all six reports use the same data source.  The ONLY difference I can see is that the server that it runs on is SQL Server 2008 R2 and the one that fails is SQL Server 2012 but that shouldn't make a difference.
 The 6 reports and 1 master report were copied from the report manager where they worked and uploaded to the one where they don't work.  They are exact duplicates! Does anyone have any idea what I should be looking for?

Hi RayMajewski,
According to your description, you created a master report with six subreports in SQL Server 2008 report server, when you copied the Report definition (.rdl) files and uploaded to SQL Server 2012 report server, you get the error:" Subreport could not
be shown", but the six subreports can work on their own.
Based on my search, Reports are not upgraded when we upload a report definition file directly to the report server or SharePoint site. Upgrading a report definition in SQL Server Data Tools is the only way to upgrade the .rdl file. In this case, please check
if the report definition is upgraded to the currently supported RDL schema by following steps:
Download master report and the two subreports which do not run.
Open the report .rdl file in an application such as SQL Server Data Tools (SSDT) in which you can view the xml.
The XML Report element specifies the schema namespace. For example, the following Report element specifies the namespace for Report Designer and the namespace for the report definition.
<Report xmlns:rd=http://schemas.microsoft.com/SQLServer/reporting/reportdesigner
xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition">
If the schema of master report and subreports is not the same, please open the reports in SSDT. When we open a report in SSDT, the report definition is upgraded to the currently supported RDL schema, so that the reports can be processed by the same version
of the report processor.
For detail information about Updating Reports, please refer to the following document:
http://msdn.microsoft.com/en-us/library/a1a10c67-7462-4562-9b07-a8822188a161(v=sql.110)
If you have any questions, please feel free to let me know.
Best Regards,
Wendy Fu

Similar Messages

  • CR: Subreport error data source Universe...

    Dear All,
    I'm working on SAP Crystal Reports for Enterprise 4.0 SP 6 Patch 2 and my data source for the analysis is an Universe. I've created my main report and designed a query in the main query for "National Sales" and I have Calendar Year and Division as my prompts for this query. For the next level I want to show sales in different regions and for this I've inserted a subreport and designed my query accordingly with two prompts Calendar Year and Division. During, the query design I had to link the Main report with Subreport and I did with available objects and then I did Parameters linking. This is for the first, time that I'm linking main report with sup-report. When I went to chart to link the Data I faced the following error:
    1. Have I missed something while linking two reports?
    2. In both reports/queries I've same prompts and I try to link them, have I linked them correctly? How to link main report to sub-report?
    3. How to get rid of the above error?
    4. How can I achieve following requirement, National Sale then Regional Sales and then selected Region's Zones Sales and then Selected Zone's Customers sales?
    I will appreciate your help a lot.
    Many Thanks!!!
    Tariq Ashraf

    Post Author: Russell
    CA Forum: Crystal Reports
    I am experiencing the same issue, did you ever get a resolution to this problem?  Thanks, Russell...

  • Error: "Subreport cannot be show".

    I have a main Report (RDL) with 2 subreports. Sometimes the subreport fails (the reason is not important) but the main report is still rendered, with below text message.
    Error: Subreport could not be shown
    Is it possible to bubble the subreport error such that the generation of the main report fails or throws an exception. We are using ReportExecutionService API to render the report.

    Hello,
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here
    Alisa Tang
    TechNet Community Support

  • Set value for subreport on load or current-to prevent dispalying "#Error"

    I've got a Work Orders Report which I use to Print Production Copies for Operators.  This report uses a subreport to pass information about Purchase Orders to the Report and then I use "=[Reports]![WORK ORDERS REPORT]![AssociaterQuery subreport]![SIZE]"
    to display the information in text boxes on my main report.  The problem is that sometimes customers supply their own raw material and there is no Purchase Order record, this causes "#Error" to be displayed in my text boxes, which can be confusing.
     I've got a "Customer Supplied Checkbox" to denote that the customer is supplying their own material.  So I'm trying to use an OnLoad event to set these values to an empty string, but I can't quite get it correct.  This is what I've
    been trying so far, where am I going wrong?  
    js
    Private Sub Report_Load()
    If Me.CustSupplied Is true Then
    [Reports]![WORK ORDERS REPORT]![AssociaterQuery subreport]![Size] = ""
    End If
    End Sub

    I've got a Work Orders Report which I use to Print Production Copies for Operators.  This report uses a subreport to pass information about Purchase Orders to the Report and then I use "=[Reports]![WORK ORDERS REPORT]![AssociaterQuery subreport]![SIZE]"
    to display the information in text boxes on my main report.  The problem is that sometimes customers supply their own raw material and there is no Purchase Order record, this causes "#Error" to be displayed in my text boxes, which can be confusing.
     I've got a "Customer Supplied Checkbox" to denote that the customer is supplying their own material.  So I'm trying to use an OnLoad event to set these values to an empty string, but I can't quite get it correct.  This is what I've
    been trying so far, where am I going wrong?  
    js
    Private Sub Report_Load()
    If Me.CustSupplied Is true Then
    [Reports]![WORK ORDERS REPORT]![AssociaterQuery subreport]![Size] = ""
    End If
    End Sub
    Hi jswan,
    If you say:   "=[Reports]![WORK ORDERS REPORT]![AssociaterQuery subreport]![SIZE]" to display the information in text boxes on my main report
    then the text box GETS the information form the control SIZE.
    In your case you can better use:
    Private Sub Report_Load()
    If Me.CustSupplied Is true Then
    <text box> = ""
    Else
    <text box> = [Reports]![WORK ORDERS REPORT]![AssociaterQuery subreport]![Size]
    End If
    End Sub
    Substitute for <text box> the real name of the text box.
    Imb.

  • Error when embedding a formula field in a text box in a subreport

    I am rewriting an application that merges data from a .net application into a Crystal Report template and displays it in the application.  In VS2003, I have had no problems with the reports as they are written.  In VS2010, I get an unusual error on some reports with subreports. 
    In one report I have multiple subreports.  In those subreports, I have formula fields.  If I take one of those formula fields and embed it into a Text Box and attempt to generate the report through the application, I get the following error:
    This field name is not known.
    Details: errorKind
    Error in File Confirm {20564DCB-5CA4-4832-8931-DF1CC6C54784}.rpt:
    Error in formula  optionStrike:
    '{Command.OPTIONSTRIKETIME}'
    This field name is not known.
    Details: errorKind
    If I take the very same field out of the text box and put it directly on the report, the report will generate without error.
    In the case above, OPTIONSTRIKETIME is a string field.  This rules out any conversion errors from a date/number/etc to string for the text box.
    Has anyone else encountered this error?  If so, what can be done to avoid it?

    Hello,
    Thank you for the info.
    Which driver are you using for the dataset?
    If you are using ADO.Plus add this to your App.Config file:
    <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
    </startup>
    Thank you
    Don

  • Crystal report Subreport linking error

    Hi, I have a issue with linking subreport to main report in crystal report. I created a main report with BEx query as source and this query had fiscal year/period as variable. I have a another subreport with different BEx query and this query also had fiscal year/period variable.
    I linked main report fiscal year/period parameter to subreport fiscal year/period parameter.I can run the report and see the data, however In the parameter selection screen I have two prompts with fiscal year/paeriod variable. How can I make this report to prompt fiscal year/period once?
    I treid to link main report field and subreport parameter, in this case it is prompting only once but I am getting below error.
    [Mon May 23 11:30:08 2011]     5120     5628     ERROR: .\crdb_bwmdx_execution.cpp [478]: l_bapiSelectData failed with return code RFC_RC = 0 Exception:  BAPI Error: BAPI Error #:0
    For characteristic 0FISCYEAR, enter value in a permitted format
    [Mon May 23 11:30:08 2011]     5120     5628     Caught DbError #1 with Message 'BAPI Error #:0
    For characteristic 0FISCYEAR, enter value in a permitted format'
    [Mon May 23 11:30:08 2011]     5120     5628     Caught DbError #1 with Message 'BAPI Error #:0
    For characteristic 0FISCYEAR, enter value in a permitted format'
    Please advice.
    Thanks
    Sasi

    Hi Sasi
    i had the same issue with main report - subreport linking over Bex Variables. So far i realised a workaround by
    giving the value to the subreport variable in the obviously requested format.
    I had to provide the value with leading zeros (internal Numc format).
    In my case I had a compounded value. By running the rep from CR local I have to give the value as usual like "ED/20080" but when running on infoview the subrep variable demands this format "ED0000020080".
    Veeeeery special, but it works.
    Obviously, when running this thing on infoview the variable in the subrep demands the internal fomat.
    But me to, I'm very interested in an explanation of this behavior and by when it's solved. We have BOE XI 3.1 Sp 3 FB 3.
    Ingo, can you help?
    regards alex

  • Adding a Subreport to existing report and getting this error, "Unable to connect: incorrect log on parameters"

    I have taken on an existing vb.net project done in Visual Studio 2008 with crystal reports version Crystal Report XI.
    The reports on their own work very well. Problem is I need to add information to my report which is a 'many-to-one' situation where for each Project Id that I am displaying I need to display several attached documents and the report I am working on is for several Project Id's.
    I figured this would be a perfect situation for a SubReport. I created a separate report which calls a stored procedure to get all of the Attached Documents for a specific Project Id. I thought if I were to add this new SubReport to the Original Report and link the Project Id's, easy-peazy, I would be done.
    This is not the case. I have vb code that loads the Original Report with a stored procedure and when this code runs with the setup I described above it fails when it is creating the final report with the following error:
    Logon failed. Details: crdb_adoplus : Object reference not set to an instance of an object. Error in File C:\~\ProjectDescriptionReport {6BA19F79-2A12-4826-B1F6-456EF799963B}.rpt: Unable to connect: incorrect log on parameters.
    I have no specific connections in my vb code for the reports. If I do not add the subreport to the main report, it loads correctly, so I know the error is caused by the subreport.
    This is the code that creates the original report (sorry for dumping the code here, i just thought it would be easier to see all the code) :
    Public Function LoadReport(ByVal inProjectNum As Integer, ByVal strProjectName As String) As DataTable ', ByVal inFiscalYear As Integer, ByVal inCompany As String) As DataTable
            Dim cnn As SqlConnection = Nothing
            Dim cmd As Data.SqlClient.SqlCommand
            Dim obj As New clsDataClass
            Dim dataAdapter As SqlClient.SqlDataAdapter
            Try
                LoadReport = New DataTable("DescriptionReport")
                cmd = New SqlCommand()      
                cnn = obj.Create_Connection()
                With cmd
                    .CommandType = Data.CommandType.StoredProcedure
                    .Connection = cnn
                    .CommandTimeout = "60"
                    .CommandText = "usp_GetProjectGroupSpecsCR"              
                    .Parameters.AddWithValue("@ProjectNumber", inProjectNum)
                    .Parameters.AddWithValue("@ProjectName", strProjectName)
                End With
                dataAdapter = New System.Data.SqlClient.SqlDataAdapter
                dataAdapter.SelectCommand = cmd
                dataAdapter.Fill(LoadReport)
                Dim oRpt As New ReportDocument()
                oRpt.Load(Server.MapPath("ProjectDescriptionReport.rpt"))
                oRpt.Refresh()
                oRpt.SetDataSource(LoadReport)
                'oRpt.OpenSubreport("AttachmentsReport").SetDataSource(LAR)
                oRpt.SetParameterValue("inProjectNum", inProjectNum)
                oRpt.SetParameterValue("strProjectName", strProjectName)
                oRpt.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, True, "Projects_DescriptionReport") 'inCompany & "ProjectsReport_Description" & inFiscalYear) <-- Line where the error occures.
    What I need to know is what is the proper way to add a subreport to a vb.net application?
    From the ways I have tried it is clearly not working and I am out of ideas. I am fairly new to Crystal Reports and this way of coding it.
    Any help for this would be greatly appreciated, I've been stuck on this for a while and am finally reaching out to the Crystal Report Specialists.
    Thank you in advance,
    Bryan

    Hi Bryan,
    You may want to check the Connection properties also. I think the MS Data.SqlClient.SqlCommand is using the MDAC driver, or could be modified.
    If you are connecting to SQL Server 2008 or above you should be using the SQL Native 10 or 11 Client.
    As Dell suggests have a look at the samples and if you can use a DSN ( 32 bit or 64 bit ODBC Admin )
    Also search for "CRlogger", you'll find how to enable CR's database logging component and may help show you what part is failing.
    Don

  • Subreport Parameter error

    Hi there,
    I get the following error when running a crystal report in SAP.
    "Cannot find parameter field Pm-OITM.ItemCode in subreport Backlog"
    The funny thing is that when I preview this report in Crystal it works fine, and the Backlog Subreport even pulls the correct figures.
    Any help or ideas?
    Thanks
    Best Regards
    Dario

    Hi Dario,
    Even I had faced the same problem for one of my report from BO info view.
    All I did was to "Verify Database" from "Database" tab and report worked for me.
    Make sure you do this for main report as well as all sub reports.
    Hope this helps.
    Thanks,
    - Raghavendra

  • Invalid subreport name Error code:-2147483086

    The setup used in this particular environment is to run reports via Crystal reports server 2008. We call the servers via the rassdk_java_dg_12_en and the setup works just fine BUT in one particular case.
    The report that fails have a main report with a datasource to SQL. The report does have about 20 - 25 subreports mostly based on the same datasource. There are however 6 subreports that uses ttx files as datasources.
    The report works fine when there is no data for the ttx subreports, but whenever a "change datasource" is tried to the ttx subreports the error "Invalid subreport name Error code:-2147483086" pops up.
    We have done noumerous tests on the pojo approach in other reports so the technic and code works just fine - it most be some special case in the report.
    Before we start to try to rebuild the report we will give you a chance to help us out. The report sucker is big and complex so a rebuild is not wanted...
    Here is the particular code involved
    private static void passPOJO(ReportClientDocument clientDoc,
                ReportPojoHolder pojoHolder, String reportName)
                    throws ReportSDKException,ClassNotFoundException {
            //Its a pojo data source, but it's nothing in it
            if (pojoHolder.getPojos().size() == 0) {
                return;
            String reportTable = pojoHolder.getTableName();
            Object pojo = pojoHolder.getPojos().iterator().next();
            POJOResultSetFactory factory = new POJOResultSetFactory(pojo.getClass());
            POJOResultSet resultSet = (POJOResultSet)factory.createResultSet(pojoHolder.getPojos());
            if(reportName == null || reportName.equals("")) {
                clientDoc.getDatabaseController().setDataSource(resultSet, reportTable, reportTable);
            else {
                System.err.println("Setting data in " + reportName );
    //Here comes the error
                clientDoc.getSubreportController().getSubreport(reportName).
                    getDatabaseController().setDataSource(resultSet, reportTable, reportTable);
    Here is the stacktrace:
    table: srptMainCustomerList;1, subrapport: AddressField
    table: srptusrinf;1, subrapport: AdvisorName
    table: srptusrinf;1, pojo: Beta
    table: srptusrinf;1, pojo: JensensAlpha
    table: srptusrinf;1, pojo: PerformanceChart
    Setting data in PerformanceChart
    2009-02-06 09:05:31,720 ERROR (CrystalReportServlet:doGet()) - [Username=Patrik Andrén, UserID=n249060, CustId=005563741684, Cstid=37385] - (Creation of report: customer_report.rpt failed on: [ReportAppServer: CCA1CS0569. Datasource: cca1cd0046qa1|omega] com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException:
    Fel i filen customer_report {CDCDCEC2-050C-4405-865C-6031D4BFF2DE}.rpt:
    Ogiltigt underrapportnamn.---- Error code:-2147483086 Error code name:failed, ) - [applicationId=omega, omegaUserId=omega.userid, credentials=IT, groupName=IT, sessionId=yLkhJLtYpLlDQ5Jf5S2GkzhPfSZJBg2zZkT4LfQ0L1bJg2v20pz2!-2033571304!1233906968432, requestId=06968853:167:000], exception-stack=
    com.nordea.omega.report.exceptions.ReportGenerationFailedException: Creation of report: customer_report.rpt failed on: [ReportAppServer: CCA1CS0569. Datasource: cca1cd0046qa1|omega] com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException:
    Fel i filen customer_report {CDCDCEC2-050C-4405-865C-6031D4BFF2DE}.rpt:
    Ogiltigt underrapportnamn.---- Error code:-2147483086 Error code name:failed,
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.bl.do(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.do(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.verifyDatabase(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.bl.byte(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ao.onDataSourceChanged(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setDataSource(Unknown Source)
         at com.nordea.crystalreports.ReportHelper.passPOJO(ReportHelper.java:814)
         at com.nordea.crystalreports.ReportHelper.changeDataSource(ReportHelper.java:124)
         at com.nordea.crystalreports.ReportGenerator.generate(ReportGenerator.java:115)
         at com.nordea.crystalreports.ReportGenerator.generate(ReportGenerator.java:62)
         at com.nordea.omega.report.servlet.CrystalReportServlet.doGet(CrystalReportServlet.java:116)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServi

    I have been able to wrestle this down after a lot of frustrating work. The error had nothing to do with pojos at all. The error was simple a store procedure that did not reply nothing.
    In the preparation of the subreport that did consist of the pojo data source. The report(server?) did send a "pre call" to the store procedure with NULL as parameters. The reply was unfortunately an "empty" reply. When we changed the reply to an empty result set it went pass the data sources.
    The error message given on this was "Invalid subreport name"! Not very helpful at all.
    I have used this new version for about 3 weeks now in a "proof of concept" work controlling if we would be able to upgrade from crystal 9/Harmoni to Crystal 2008/Crystal Report Server 2008. The answer will be yes. It will work. And with a minimum of report changes which is very nice.
    What have struck me the most during this work is a few proposals to improvements.
    1. Put the versions on jars and sdk's so it's obvious what's used. I spent a few days with an old version of a sdk believing that it was a newer than I already had. It should not be neccessary to go through a manifest file inside a jar in order to find out what the version is. Put it on the file names!
    2. Give proper error messages back when something goes wrong. If a parameter value is missing. Send back the parameter that's missed/misses a value for Gods sake. The programmer catching the error most know what's missed hence the message. Would save the user's of the API very much time.
    I spent about 5 - 10 days trying to find out what was wrong with my sub report name (This thread). It had nothing to do with the subreport name. It had to do with missing data from a called store procedure!
    3. The documentation can be a bit tricky to find. I saw that you have given away a eclipse plugin in order to gather the documentation inside the IDE. That's a good approach.
    If the error messages will be enhanced and more accurate it's a pretty handy api to work with. And the handling of unmanaged reports is a wet dream compared to usage of the Harmoni API. That's a real nightmare. The server seems to be very stable and just runs.
    I like this forum, fast replies when one is stuck is extremely helpful!
    /Patrik

  • Passing values to subreport in SSRS throwing an error - Data Retrieval failed for the report, please check the log for more details.

    Hi,
    I have the subreport calling from the main report. The subreport is based on MDX query agianst the SSAS cube. some dimensions in cube has values 0 and 1.
    when I try to pass '0' to the sub report as the parameter value, it gives an error "Data Retrieval failed for the report, please check the log for more details".
    Actually I am using table for storing these parameter values. In the main report I am calling this table (dataset) and passing these values to subreport.
    so I have given like [0],[1] and this works fine. when I give only either [0] or [1] then it is throwing an error.
    Could you please advise on this.
    Appreciate all and any help.
    Thanks,
    Divya

    Hi Divya,
    Based on the current description, I understand that there is no issue if you pass two values from main report to subreport, while the issue occurs when passing one value to subreport.
    To narrow down the issue, I want to confirm whether the subreport can run if there is only [0] or [1] in the subreport. If so, it indicates the query statements exist error in the subreport. If it’s not the case, this shows the issue occurs during passing
    values from main report to subreport. To make further analysis, please post the details of query statements of the subreport to the forum.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Changing database server on a report with subreports = formula error

    Good morning,
    I currently have several reports that print out, and were developed attached to our development database. However, I need to be able to dynamically change the server that the report uses according to the server configured in our application. Each of these reports contains one or more subreports, which point to the same server and database as the main report. All reports, both the main and subreports, are based on manual SQL commands.
    I'm running into some significant issues. So significant, in fact, that we were forced to deploy our application with reports that had been switched to our production environment in the designer in order to get them functional. This is, obviously, not an acceptable or long-term solution.
    I've gone round and round a couple of times I get different results with different methods of changing this information. I'll outline them below. First, my current code:
    ConnectionInfo connectionInfo = new ConnectionInfo();
                    TableLogOnInfo logOnInfo = new TableLogOnInfo();
                    Console.WriteLine("Report \"{0}\"", report.Name);
                    foreach (Table table in report.Database.Tables)
                        logOnInfo = table.LogOnInfo;
                        connectionInfo = new ConnectionInfo(logOnInfo.ConnectionInfo);
                        connectionInfo.ServerName = "panthers-dev";
                        connectionInfo.DatabaseName = "Prosys";
                        logOnInfo.ConnectionInfo = connectionInfo;
                        //table.Location = "Prosys.dbo." + table.Location.Substring(table.Location.LastIndexOf(".") + 1);
                        table.ApplyLogOnInfo(logOnInfo);
                        table.LogOnInfo.ConnectionInfo = connectionInfo;
                        Console.WriteLine("\t\"{0}\": \"{1}\", \"{2}\", \"{3}\", {4}", table.Name, table.LogOnInfo.ConnectionInfo.ServerName, table.LogOnInfo.ConnectionInfo.DatabaseName, table.Location, table.TestConnectivity());
                    foreach (Section section in report.ReportDefinition.Sections)
                        foreach (ReportObject ro in section.ReportObjects)
                            if (ro.Kind == ReportObjectKind.SubreportObject)
                                SubreportObject sro = (SubreportObject)ro;
                                ReportDocument subreport = report.OpenSubreport(sro.SubreportName);
                                Console.WriteLine("\tSubreport \"{0}\"", subreport.Name);
                                foreach (Table table in subreport.Database.Tables)
                                    logOnInfo = table.LogOnInfo;
                                    connectionInfo = new ConnectionInfo(logOnInfo.ConnectionInfo);
                                    connectionInfo.ServerName = "panthers-dev";
                                    connectionInfo.DatabaseName = "Prosys";
                                    logOnInfo.ConnectionInfo = connectionInfo;
                                    //table.Location = "Prosys.dbo." + table.Location.Substring(table.Location.LastIndexOf(".") + 1);
                                    table.ApplyLogOnInfo(logOnInfo);
                                    table.LogOnInfo.ConnectionInfo = connectionInfo;
                                    Console.WriteLine("\t\t\"{0}\": \"{1}\", \"{2}\", \"{3}\", {4}", table.Name, table.LogOnInfo.ConnectionInfo.ServerName, table.LogOnInfo.ConnectionInfo.DatabaseName, table.Location, table.TestConnectivity());
    Using this approach, my console output prints what I expect and want to see: the correct server and database information, and True for TestConnectivity for all reports and subreports. The two reports I have that have no subreports print out correctly, with data from the proper server. However, all of the reports with subreports fail with formula errors. If this procedure is not run, they work just fine on either server.
    I had to place the assignment of table.LogOnInfo.ConnectionInfo = connectionInfo after the call to ApplyLogOnInfo, as that function did not behave as expected. If I perform the assignment first (or not at all), then calling ApplyLogOnInfo on the outer report's table did NOT affect the values of its ConnectionInfo object, but it DID affect the values of the ConnectionInfo object's of its subreports!
    In any event, if anyone could post a code sample of changing database connection information on a report containing subreports, I would appreciate it.
    Any help is greatly appreciated and anxiously awaited!

    Hi Adam,
    Code for changing database connection information on a report containing subreports :
    private ReportDocument northwindCustomersReport;
        private void ConfigureCrystalReports()
            northwindCustomersReport = new ReportDocument();
            string reportPath = Server.MapPath("NorthwindCustomers.rpt");
            northwindCustomersReport.Load(reportPath);
            ConnectionInfo connectionInfo = new ConnectionInfo();
            connectionInfo.ServerName = "localhost";
            connectionInfo.DatabaseName = "Northwind";
            connectionInfo.IntegratedSecurity = false;
            SetDBLogonForReport(connectionInfo, northwindCustomersReport);
            SetDBLogonForSubreports(connectionInfo, northwindCustomersReport);
            crystalReportViewer.ReportSource = northwindCustomersReport;
        private void Page_Init(object sender, EventArgs e)
            ConfigureCrystalReports();
        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);
        private void SetDBLogonForSubreports(ConnectionInfo connectionInfo, ReportDocument reportDocument)
            Sections sections = reportDocument.ReportDefinition.Sections;
            foreach (Section section in sections)
                ReportObjects reportObjects = section.ReportObjects;
                foreach (ReportObject reportObject in reportObjects)
                    if (reportObject.Kind == ReportObjectKind.SubreportObject)
                        SubreportObject subreportObject = (SubreportObject)reportObject;
                        ReportDocument subReportDocument = subreportObject.OpenSubreport(subreportObject.SubreportName);
                        SetDBLogonForReport(connectionInfo, subReportDocument);
    Hope this helps!!
    Regards,
    Shweta

  • Login error with report viewer when opening Crystal report with subreport

    Hi
    I have a problem with a login error (database vendor code 18456) when I try to open a crystal report to view it.
    The report uses data from an external payroll database but I'm running it via our Accounts system (it's a convenient front end for users to run the report from). This works fine for another report that doesn't have any subreports. However when I run the Crystal report that has subreports, the report generation process works but when the crystal reports viewer tries to open the report I get the login error. It doesn't seem to be passing the login details for the payroll database down to the subreport.
    I'm using Crystal Reports version 11.0.0.1282. The Accounts system is Technology One. Tech One have provided a report template that has several formulas designed to allow Tech One to play nicely with Crystal. One of these formulas allows me to enter the nickname of the external database that the report needs to use. The external database's connection details are fully specified in the Tech One configuration section (server console). So in this case the report says use database U1 & the server console identifies U1 as being the payroll database, specifies the connection path  & has the username & password required to logon to the payroll database/server.
    The report is running ok & retrieving data, but for some reason the viewer is erroring. If anyone has any ideas for how I can get the login details used to run the main report to flow through to the subreport it would be much appreciated.
    Thanks
    Sue

    I understand your  frustration. We can do a few things. But really, it should be Technology One contacting us. To use an analogy (which you are free to share with Technology One). They built a car and sealed the hood. You bought the car, but he engine does not quite run as it should. You bring the car to the mechanic and all he can do is look at the car as he can not even open the hood.
    In any case, here is what I would do if I could open the hood (e.g.; if I was dealing with Technology One):
    1) Look up database vendor code 18456. This is simply the error our print engine is receiving from the database client and it simply passes it through relatively unhandled. This you should be able to do your self or ask Technology One to tell you what that means.
    2) Break out the subreport and see if it runs on it's own in the application (if this is a permissions issue - which I doubt -  it should come up here too). Unfortunately, this is for Technology One to do...
    3) Run the report (with the subreport) in the CR designer. Does it work there? If this is a win app and it works, we again eliminated permission issues. And we also confirmed that the report is good. Again, Technology One should do this for you.
    BTW.; CR 11.0 is out of support - not sure if you or Technology One are aware of this...
    4) Can the developer duplicate the issue on his development computer?
    Now, there are couple of instances where you say something like; "the report works and gets data, but the viewer errors out":
    +The report is running ok & retrieving data, but for some reason the viewer is erroring.
    However when I run the Crystal report that has subreports, the report generation process works but when the crystal reports viewer tries to open the report I get the login error.  +
    How do you know the report is retrieving data? From the error I would say the report never connects, thus the error / request for a logon...
    So, the short of all of this is; get Technology One to contact us. They can do it over the forums or obtain a phone case here;
    http://store.businessobjects.com/store/bobjamer/en_US/pd/productID.98078100
    Now, here is a warning. As CR 11.0 is out of support Technology One will have to upgrade to CR 11.5, before that can create a phone case, which for them and you brings up another bunch of issues...
    If you do not get any joy from the support person at you are talking to at Technology One, get him to escalate the issue. They are the ones that should be talking to us...
    Ludek

  • BOXI R2 SP2: Error in Infoview when accessing report that has subreport in it.

    I have subreport imbedded in a Crystal Report.  When published to BOEXI R2 SP2.  We've just upgraded to service pack 2, and now it seems subreports that are linked to main report no longer work.
    I'm getting error:
    Error in File D:\Apps\Business Objects\BusinessObjects Enterprise 11.5\Data\procSched\TESTGAUBERT.reportjobserver\~tmp11244ee481d01f4.rpt: Error in formula . '{Items.ItemType} = {?ItemType}' This field name is not known. Details: errorKind
    It works fine in Crystal Reports.

    Hi,
    Try to refresh those joins on which the prompt inserted, save and export the universe to repository and in WebI use the prompt.
    Cheers,
    Suresh Aluri.

  • Getting a Not Supported error box when trying to link a subreport to the..

    I am trying to build a subreport off of my main report. I am trying to link my subreport stored procedure to my main reports stored procedure. All of the paremeters on the sub report SP are of the same data type of the fields I am linking my parameters to in the main report SP. After I set it all up and go to preview it I get a "Not Supported" error box that pops up. Then I click ok and all i have is a blank white page. Does anyone know what is not supported? This happens when trying to build this report in crystal 2008. I even tried building this same report in crystal 10 and it works perfect. I don't know what I am doing wrong in the crystal 2008 environment. Please help

    Thanks Bill.  This fix resolved my issue.
    I would award some points, but I guess as I didn't post the original question there is no facility to do this.  Shame.
    Appreciate it, Brendon.
    Edited by: Brendon McEvoy on Apr 23, 2009 1:39 AM

  • Linked Button error in a subReport with Crystal Reports

    Hi expert,
    I have a designed a subreport with Crystal Report, and I have add the Sap Linked button (OLE Object), to allow the user to click on the linked button and open the relativa Sap Document (Invoice, Delivery, etc etc).
    In the hypetetx linked property, I have write the link
    'http://$b1$/link=OINV&key=1'
    In this way all is ok, but In my query I have the name of the table and the DocEntry, so I try this way:
    'http://$b1$/link='&{Comando.Table}&'&key='&{Comando.DocEntry}
    If I try to open the document, I retrieve the error: You are not permitted to perform this action. Authorisation Path: Help.
    I don't understand if the problem is the authorization (i am manager, superuser) or if I had write in a wrong mode the hypertext link. (maybe the Apex?)
    Anybody can help me?
    Regards
    Marco

    Hi Marco,
    if {Comando.DocEntry} field is string type try this code:
    'http://$b1$/link?table='& {Comando.Table} &'&key='& ToText(ToNumber({Comando.DocEntry}),0,'','')
    else if DocEntry field is number type try this code:
    'http://$b1$/link?table='& {Comando.Table} &'&key='& ToText({Comando.DocEntry},0,'','')
    Regards,
    Domenico
    Edited by: Domenico Lovino on Feb 23, 2012 10:04 AM

Maybe you are looking for

  • Why is my MackBook Pro suddenly crashing all the time?

    Hello, After upgrading to OS X 10.9.2 yesterday, my MacBook Pro (15-inch, early 2011 model) has crashed many (>10) times. Specs: Processor  2,2 GHz Intel Core i7 Memory  8 GB 1333 MHz DDR3 Graphics  Intel HD Graphics 3000 512 MB Software  OS X 10.9.2

  • Error in Configuration of RWB

    Hi When i selected the Configuration in RWB i am getting the following Error No ports that send to the Integration Server could be found for the following ALE logical systems:<br>DEV500: Function module "SXI_READ_ALEPORTS" not found., error key: RFC_

  • BPM Monitoring of IDOCs

    Hello all, I have a scenario with 100 IDOCs and I map the IDOCs in ccBPM. But if somehow a mapping process for one of the IDOCs in ccBPM goes wrong you get an error (a red flag) for all of the other 99 IDOCs. My question is then how can we monitor wh

  • Skype Voicemail Not Picking Up

    When people call my Skype number and I am not here to answer, it just rings and rings and never goes to Voicemail.    I have tried a number of things - logging out, logging in, turning off voicemail, turning on voicemail, turning off call forwarding,

  • KANBAN-Inbound deliveries

    Hello, Could you please help me? We are using the KANBAN functionality for replenishment of raw materials from our suppliers. We are using Summarized JIT calls. Our scheduling agreement type is LP. We are looking at the possibility of implementing th