Applying a custom dataset to the subreport fails

System.Runtime.InteropServices.COMException (0x80040203): The communication channel has not been created.
   at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault)
   at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type)
   at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(DataTable dataTable)
exception raises when I try to pass a custom Dataset to a subreport's table via Table.SetDataSource.
Does anybody knows what happens?
ps: CR for MS VisualStudio 2005

I use Visual Studio 2005 and Visual Basic, making a report web site with aspx
..NET. The code listed below is in a separate class supporting an aspx. Here
is the core of my code
I have report and subreport in my web page
At startup the report including its subreport shows up fine. If I need a
refresh, e.g. change to 75% size, go to another page or similar, the code is
run again but then fails on the statement
Report2.SetDataSource(SubreportDataValues)
and the exception message is "The communication channel has not been created."
It is a System.Runtime.InteropServices.COMException that occurred in
CrystalDecisions.CrystalReports.Engine.dll
If I "let it run", my web page shows up with a message saying:
This group section cannot be printed because its condition field is
nonexistent or invalid.
Format the section to choose another condition field. Error in File
C:\DOCUME1\JAKKI\LOCALS1\Temp\MainReport
{8E62F51C-012E-410F-BF4A-CBF9E9AB52D5}.rpt: Invalid group condition.
I believe this is a bi-effect of the real problem. The real problem, I
think, is that the communication between the Crystal subreport (i.e. report
engine) and my data is lost in the postback. (I insert "my own" data into the
two arraylists and store them in session variables for persistance. Changing
the order of SetDataSource (main report before subreport or vice versa) has
no effect.)
I guess the question is "How can I retain (or re-establish) the
"communication channel" (I don't know the details about what that is -
between what?) (for the subreport) across web page refresh (i.e. postback)"?
When I look at the web pages of Business Objects (the vendor of Crystal
Reports) it looks as this is a bug in Crystal Reports, but that a fix (patch)
can not be installed as long as I use Crystal Reports embedded in Microsoft
Visual Studio.
Is there any Microsoft or Business Objects professionals (or other) who can
tell me how to get around this problem? Advise a method to retain a subreport
in a main report across postbacks?
Please help me.

Similar Messages

  • Subreport content is lost when applying a custom dataset

    <p>Hello everybody, </p><p>Linked subreport shows data properly in Report Designer preview mode. But if I apply a custom dataset to the subreport in runtime (the query text is exactly the same, though), the subreport becomes empty. What&#39;s the problem could be there? </p><p>Thanks in advance, Alexey</p>

    <p>Maybe the linking is breaking when you attach the dataset at runtime.  Does it work for a regular un-linked subreport? </p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

  • Content of the subreport is lost when applying a custom dataset

    <p>Subreport displays correct data when I make a preview in Report Designer.</p><p> </p><p>When I substitute subreport&#39;s dataset by a custom one (exactly the same query, though) in runtime, the subreport becomes empty. </p><p> </p><p>What&#39;s the problem could be there?<br /></p>

    More than likely, the problem is that the dataset is not matching the data types that the report is expecting. I suspect if you export the report to rpt file format, you will see that all the fields are stripped out - when you open that exported report in the designer. A cool way to check this out is to write out the dataset to XML as:
    myDataset.WriteXml(xmlPath, XmlWriteMode.WriteSchema)
    Do the above just before you set the dataset to the report. Then open the report in the CR designer and use the ADO .NET XML driver (Database menu -> Set datasource location) to point at the xml you just created. If you get filed mapping dialog, that will tell you where the report is confused as to which field is which.
    Ludek

  • No response when binding dataset to the subreport

    Hi,
    Environment:
    OS : Windows 7
    Crystal report for VS2010 (13.0.2)
    Visual Studio 2010 ( using WPF)
    How to bind the loaded dataset to the sub report. I tired in my code the following:
    try{
    rpt.OpenSubreport("SubreportName").SetDataSource(ds);
    Catch(Exception ex)
      MessageBox.WPFMessageBox.Show("error message " + ex.Message);
    While debugging dataset ds is having recordset loaded. When I bind using the above code snippet, no response or some getting error as "load report failed."
    Please help me ASAP.
    Thanks & Regards,
    Mani G.S.

    Hello,
    You can't simply open the subreport....
    Here's code on how to:
    public Form1()
         // Required for Windows Form Designer support
         InitializeComponent();
         // TODO: Add any constructor code after InitializeComponent call
         //Create an instance of the strongly-typed MAIN report object
         crReportDocument = new MainReport();
         //Get all the sections in the report
         crSections = crReportDocument.ReportDefinition.Sections;
         //Loop through each section of the report
         SubNames = "";
         foreach(Section crSection in crSections)
              //Get all the report objects from each section
              crReportObjects = crSection.ReportObjects;
              //Loop through each report object
              foreach(ReportObject crReportObject in crReportObjects)
                   //Check to see if the report object is a subreport
                   if (crReportObject.Kind == ReportObjectKind.SubreportObject)
                        //Found the subreport 
                        //Get the actual subreport object
                        crSubreportObject = (SubreportObject)crReportObject;
                        //Get the subreport as a regular report object 
                        //OpenSubreport returns the subreport object as a report
                        crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName);
                        //Display the name of the subreport
                        if (SubNames.Length > 0) SubNames += ", ";
                        SubNames = crSubreportDocument.Name;
                   }//Go to the next report object
         }//Go to the next section
         MessageBox.Show("Subreport Names: " + SubNames);
         //Set the viewer to the report object to be previewed
         crystalReportViewer1.ReportSource = crReportDocument;
    Don

  • Data retrieval failed for the subreport

    Hi All,
    I m getting this error whn i try to bind a sub report within a report,
    Data retrieval failed for the subreport, 'Subreport2', located at: E:\Anil\Sample.rdlc. Please check the log files for more information.
    Thanks,
    Anil Kumar Dhiman

    Hi Anil,
    This is a know issue which you can see in the link:https://connect.microsoft.com/SQLServer/feedback/details/648560/subreport-with-shared-dataset-throws-error
    This issue occurs only on Business Integrated Development Studio (BIDS) and use a shared dataset in subreport. And it is fixed in SQL Server Reporting Services 2012. So you can avoid this issue by changing the shared dataset to embedded dataset or deploy the
    shared dataset to Report Server and view report on Report Manage.
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • When trying to update my CC apps, the update fails. I get this error: Update Failed. There was an error installing this update. Please try again later or connect customer support. This is currently happening for InDesign, Photoshop and Bridge. I had this

    When trying to update my CC apps, the update fails. I get this error: Update Failed. There was an error installing this update. Please try again later or connect customer support. This is currently happening for InDesign, Photoshop and Bridge. I had this problem previous and was able to fix by doing a complete wipe of my computer and reinstalling CC. However, I should not have to wipe my computer clean everytime I need to do a CC update. HELP!

    Hi,
    Please download the updates directly from the link below:
    WIN: All Adobe CC 2014 Updates: The Direct Download Links for Windows | ProDesignTools
    MAC: All Adobe CC 2014 Updates: The Direct Download Links for Mac OS | ProDesignTools
    Regards,
    Sheena

  • Custom CSS-Applying selected background for all the cols in the report

    Hi,
    I am trying to set a particular background for all the columns in the report(not for all the projects,so that I can avoid option of manually setting background color for complete report.For this I thought custom CSS is best option.So edited custom.css(C:\OBI11g_Middleware\Oracle_BI1\bifoundation\web\app\res\s_blafp\b_mozilla_4) file with below code and went to the Answers-> Criteria->Choose Column->style-> check "Use Custom CSS Class"->MyCell
    Code used in custom.css
    .MyCell { background-color: #00ff00; font-style:italic; font-weight: bold;}
    Somehow I dont see the background color applied to any of the columns in report.Can anyone had successful attempt of this Custom CSS.Thanks in Advance.

    I am trying both the solutions.
    User 979493,
    I started manually writing the code instead of pasting and almost worked.In the mentioned below paths I dont have custom.css file,so I created one and manually entered below code.But does it work for only that particular column and not for all the columns.Is it supposed to work for all the columns or just that column.
    For example: I have 2 cols in the report,I used "Use Custom CSS Class" -> MyCell for the first column and when I ran results it shows background color for only col1 and not for col2.I thought this feature will apply background color for all the columns in the report.Please correct me if I am wrong.
    custom.css file content:
    .MyCell{background-color: #00ff00;font-style:italic;font-weight:bold;}

  • Apply custom style to the first tab of af|panelTab component

    Hi,
    Could anyone please advice me how to apply custom style to the first and last tabs of af|panelTab component.
    For eg- If I have 6 tabs and I want tab1 and tab6 to be in Red and rest of the tabs in blue, what should I add. Please advice.
    Regards
    Jeffry Roy
    Edited by: Jeffry on Mar 8, 2011 4:45 AM

    Hi Rishit,
    Please let me know if you have applied Fix pacK3 for Xcelsius.
    I have seen this issue in FP2, which got fixed in FP3. The workaround you can try is including a blank cell.
    Thanks,
    Amit.

  • Operation failed when trying to Save a Custom Function to the Repository

    When attempting to save a Custom Function to the Repository in Crystal Reports XI R2, I get the following error message:
    "Operation failed: You do not have edit right on: "Default folder for custom functions".
    Where is the default folder for custom functions and how do I grant it the "Edit" right?
    Thanks,
    Jim

    Hi Jim,
    To give rights to a user or a group to save custom function in the Repository:
    1. Open the Business View Manager
    2. Logon to your BusinessObjects Enterprise as the Administrator
    3. In the "Repository Explorer",  right click on the "Custom Functions" folder, and in the contextual menu, select "Edit Rights"
    4. In the "Edit Rights" window, add the user or group that you want to give the right to save a custom function to the repository, and set the "Edit" right to "Granted". Finally, click on the "OK" button to accept the change.
    The user will then be able to save a Custom Function to the Repository in Crystal Reports XI R2.
    Also, note that it is important that the "Everyone" group "Edit" right isn't set to "Denied" as every user is part of the "Everyone" group.
    If the group "Everyone" is set to denied, it will take precedence to the user rights, so nobody will be able to save custom function. So ensure the "Everyone" group right is either set to "Inherited" or "Granted".

  • Access Exchange Service From SharePoint 2013 Custom Web part getting The request failed with HTTP status 401: Unauthorized.

    I want to Fill a drop down with Outlook Meeting of Current log-in user in SharePoint 2013 web part for default credentials I am using the following code
     ExchangeServiceBinding binding = new ExchangeServiceBinding();
                ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true;
                binding.RequestServerVersionValue = new RequestServerVersion();
                binding.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2010_SP2;
                binding.PreAuthenticate = true;
                binding.UseDefaultCredentials = true;
                binding.Credentials = CredentialCache.DefaultCredentials ; 
                string server = "https://*********/ews/Exchange.asmx";
                binding.Url = server;
    I Am Getting the Error "The request failed with HTTP status 401: Unauthorized."
    but when I Replace  the line  
    binding.Credentials = CredentialCache.DefaultCredentials ; 
    with 
     binding.Credentials = new NetworkCredential(userName, password, domain);
    Its run fine.  Is there any way I could able to use default credential.
      

    Hi,
    As this question is more relate to Exchange development, I suggest you post it to the corresponding forum, you will get more help and confirmed answers from there.
    http://social.msdn.microsoft.com/Forums/office/en-US/home?category=exchangeserver
    Best regards
    Patrick Liang
    TechNet Community Support

  • Windows 10 SDK 10.0.10069 : The installer failed. User cancelled installation. Error code: -2147023294

    I get this error when installing VS 2015 Community RC.  I'm installing on Windows 10 build 10074.  I tried uninstalling VS and tried performing the steps from other known issues... Change > Custom > Select feature > Update.
    I also get the other errors as well...
    Emulators for Windows Mobile 10.0.10069 : The installer failed. User cancelled installation. Error code: -2147023294
    Emulators for Windows Mobile 10.0.10069 : The installer failed. User cancelled installation. Error code: -2147023294

    Same issue here, on a Surface Pro 3.
    I've tried all I can think of, including a full reinstall of the OS (10074). Basically it always fails with the errors below.
    Launching VS I do have the UAP templates installed, but not the emulators. I can create a new Windows Universal app no problem, however it shows up as a Windows 8.1 type in the properties pane. Missing lots of references so obviously nothing builds.
    Tried installing the tools separately (the ones linked by Paul Chapman in a separate thread). These installed fine, and gave me the emulators (at least in the drop down, haven't been able to verify they work as nothing else works). Proceeded to "repair"
    the VS install after this and at that point the install completed without errors, however nothing still works inside VS. Then proceeded to "modify" and remove any Universal app stuff, rebooted and reinstalled, only to get the same error again and
    back at square one.
    Tried, as far as I can remember, fresh installs from both the ISO and webinstaller (as there was some talk about the ISO containing older code and missing some tools).
    Spent a week trying to get a Win10 rig up now, to no avail. Previous builds (with CTP6) would give me a UAP mobile install error, which seemed linked to Hyper-V not working, however Hyper-V was working just fine...
    Oh, and obviously - No, I did not cancel the install myself.
    Here are some relevant lines from the install log,
    [060C:0CF0][2015-04-30T14:20:08]i000: MUX:  Source confirmed
    [060C:1994][2015-04-30T14:20:14]i000: MUX:  Finished connecting secondary installer pipe
    [060C:14D4][2015-04-30T14:20:19]i000: MUX:  Updating secondary installer progress display name: Windows 10 SDK 10.0.10069
    [060C:14D4][2015-04-30T14:20:25]i000: MUX:  Updating secondary installer progress display name: Tools for Windows 10 Universal Apps (Windows SDK 10.0.10069)
    [060C:044C][2015-04-30T14:28:13]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Windows 10 SDK 10.0.10069 : The installer failed. User cancelled installation. Error code: -2147023294
    [0288:0054][2015-04-30T14:28:48]e000: Error 0x80048646: Process returned error: 0x80048646
    [0288:0054][2015-04-30T14:28:48]e000: Error 0x80048646: Failed to execute EXE package.
    [060C:044C][2015-04-30T14:28:48]e000: Error 0x80048646: Failed to configure per-machine EXE package.
    [060C:044C][2015-04-30T14:28:48]i000: MUX:  Installation size in bytes for package: VSSecondaryInstaller_box MaxAppDrive: 0  MaxSysDrive: 2063301632  AppDrive: 0  SysDrive: 2060471296
    [060C:044C][2015-04-30T14:28:48]i000: MUX:  ExecutePackageComplete for secondary installer
    [060C:044C][2015-04-30T14:28:48]i000: MUX:  Disconnecting secondary installer pipe
    [060C:044C][2015-04-30T14:28:48]i000: MUX:  Return Code:0x80048646 Msi Messages:Windows 10 SDK 10.0.10069 : The installer failed. User cancelled installation. Error code: -2147023294 Result Detail:0 Restart:None
    [060C:044C][2015-04-30T14:28:48]i000: MUX:  Set Result: Return Code=-2147187130 (0x80048646), Error Message=Windows 10 SDK 10.0.10069 : The installer failed. User cancelled installation. Error code: -2147023294, Result Detail=, Vital=False, Package
    Action=Install, Package Id=VSSecondaryInstaller_box
    [060C:044C][2015-04-30T14:28:48]i000: Setting string variable 'BundleResult' to value '0'
    [060C:044C][2015-04-30T14:28:48]w350: Applied non-vital package: VSSecondaryInstaller_box, encountered error: 0x80048646. Continuing...
    Think I'll go buy a Mac...

  • Is there a recommended limit on the number of custom sections and the cells per table so that there are no performance issues with the UI?

    Is there a recommended limit on the number of custom sections and the cells per table so that there are no performance issues with the UI?

    Thanks Kelly,
    The answers would be the following:
    1200 cells per custom section (NEW COUNT), and up to 30 custom sections per spec.
    Assuming all will be populated, and this would apply to all final material specs in the system which could be ~25% of all material specs.
    The cells will be numeric, free text, drop downs, and some calculated numeric.
    Are we reaching the limits for UI performance?
    Thanks

  • How can i view and apply new custom patterns without going to preset manager? i had this facility but have now lost it

    how can i view and apply new custom patterns without going to preset manager? i had this facility but have now lost it.  i design patterns but am fairly new to photoshop. i used to be able to click on the drop down menu in patterns in the 'fill' box but cannot now do this.  have i inadvertently clicked on something to turn this facility off?  i now have to go to 'preset manager' and manually move my new design to the first box and click 'done' so that i can use it.

    Which version of photoshop are you using?
    After you define a custom pattern it should be added to the bottom of whatever patterns are already loaded.
    For example, if you define a custom pattern and then go to Edit>Fill>Pattern, the newly defined pattern should have been added to the existing loaded patterns.

  • Custom Login using the Pluggable Identity Management Framework

    Hi all,
    We are trying to establish 2 ways into our application:
    1. via a login form
    2. seamless login from an external application
    To achieve this we are trying to build our own custom authentication using the pluggable IDM framework.
    Basically if a secure page is requested, we want to check the header/cookie/request (don't mind which) for a key which is provided by the external application. If present, the key is validated against a web service provided by the external app, the identity is asserted and the user is entered seamlessly into the application. If the header/cookie/request does not contain a key the user is to be redirected to a login page, where they can input username and password which will be validated against our database.
    We've created a Token Collector and Token Asserter class, we've modified our custom Login Module to retrieve the identity created by the Token Asserter but we haven't worked out how to get the alternate login page working for users which don't come through the external application.
    Has anybody built anything similar? From the documentation it appears we should be able to achieve our goal using the pluggable IDM, but we're going around in circles a bit at the moment.
    Any help/sample code would be greatly appreciated.
    thanks.

    Can you tell why the page is not working? I mean, any errors ? What happens when you try to open the protected resource?
    Here is an example of the code, I removed some part of the code specific to the bussines so if you have doubts just let me know
    token collector
    import java.io.IOException;
    import java.io.UnsupportedEncodingException;
    import java.net.URLEncoder;
    import java.util.Hashtable;
    import java.util.List;
    import java.util.Map;
    import java.util.Properties;
    import javax.servlet.http.Cookie;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import oracle.security.jazn.collector.CollectorException;
    import oracle.security.jazn.collector.TokenCollector;
    import oracle.security.jazn.sso.SSOTokenFormatException;
    import oracle.security.jazn.token.IdentityToken;
    import oracle.security.jazn.token.TokenNotFoundException;
    public class MyTokenCollector implements TokenCollector
    private Properties _properties;
    public void fail(HttpServletRequest request,
    HttpServletResponse response, int reason)
    throws CollectorException
    String loginURL = _properties.getProperty("custom.sso.url.login");
    String urlParam = _properties.getProperty("custom.sso.url.param");
    String idParam = _properties.getProperty("custom.sso.id.param");               
    Log.Info("Token collection failed (" + reason + ")");
    StringBuffer requestURL = request.getRequestURL();
    String queryString = request.getQueryString();
    requestURL = requestURL.append("?").append(queryString);
    StringBuffer sb = new StringBuffer();
    try
    sb = sb.append(urlParam).append("=");
    String encodedStr =
    URLEncoder.encode(requestURL.toString(), "UTF-8");
    sb = sb.append(encodedStr);
    sb = sb.append("#").append(request.getServerName()).append("#").append(request.getServerPort());
    String redirectQueryString = sb.toString();
    String rurl = loginURL + "?" + redirectQueryString;
    response.sendRedirect(response.encodeRedirectURL(rurl));
    catch (UnsupportedEncodingException uee)
    SSOTokenFormatException stfe =
    new SSOTokenFormatException(uee, 4);
    Log.Error(stfe.getMessage());
    throw new CollectorException(stfe);
    catch (IOException ioe)
    Log.Error("IOException occured: " + ioe);
    throw new CollectorException(ioe);
    public IdentityToken getToken(String tokenType,
    HttpServletRequest request,
    List tokenNames, Properties properties)
    throws TokenNotFoundException, CollectorException
    _properties = properties;
    String valor = null;
    Log.Info("URL: "+request.getRequestURI());
    if ( tokenType. equalsIgnoreCase("HTTP_COOKIE"))
    valor = procesarCookie(request, tokenNames);
    }else if (tokenType.equalsIgnoreCase("HTTP_HEADER"))
    valor = procesarHeader(request, tokenNames);
    }else
    throw new CollectorException("token type not supported");
    MyIdentityToken token = new MyIdentityToken(valor);
    token.setTokenType(tokenType);
    token.setPropiedades(properties);
    return token;
    private String procesarCookie(HttpServletRequest request, List tokenNames)
    throws TokenNotFoundException
    if (1 != tokenNames.size())
    //Only one cookie can be handled
    String error = "Invalid number of cookies check jazn.xml";
    throw new TokenNotFoundException(error);
    Map cookies = new Hashtable();
    Cookie allCookies[] = request.getCookies();
    if (allCookies != null)
    String cookieName = (String) tokenNames.get(0);
    Log.Info( "Searching for cookie: " + cookieName);
    Cookie cookie;
    for(int i = 0; i < allCookies.length; i++)
    cookie = allCookies;
    if (cookie.getName().equals(cookieName))
    return cookie.getValue();
    String error = "Rquired cookie not found";
    Log.Error(error);
    throw new TokenNotFoundException(error);
    }else
    String error = "No cookie on request";
    throw new TokenNotFoundException(error);
    private String procesarHeader(HttpServletRequest request, List tokenNames)
    throws TokenNotFoundException
    String nombreHeader = (String) tokenNames.get(0);
    String header = request.getHeader(nombreHeader);
    if (header != null)
    return header;
    }else
    String error = "Request doesn't have the requierd header";
    throw new TokenNotFoundException(error);
    Token Asserter Example
    import java.util.Properties;
    import javax.security.auth.Subject;
    import oracle.security.jazn.asserter.AsserterException;
    import oracle.security.jazn.asserter.TokenAsserter;
    import oracle.security.jazn.callback.IdentityCallbackHandler;
    import oracle.security.jazn.callback.IdentityCallbackHandlerImpl;
    import oracle.security.jazn.token.IdentityToken;
    public class MyTokenAsserter
    implements TokenAsserter
    public void finalize()
    throws Throwable
    public IdentityCallbackHandler assertIdentity(String tokenType,
    IdentityToken token,
    Properties properties)
    throws AsserterException
    InversuraIdentityToken idToken = (InversuraIdentityToken) token;
    String valorToken = idToken.getValorToken();
    InversuraToken invToken;
    try {
    invToken = new InversuraToken(valorToken);
    if (verificarVigencia(invToken))
    IdentityCallbackHandlerImpl idcb = new IdentityCallbackHandlerImpl(invToken.getLogin());
    idcb.setAuthenticationType("InversuraSSO");
    idcb.setIdentityAsserted(true);
    MyPrincipal ppal = new MyPrincipal(invToken.getLogin());
    Subject subj = new Subject();
    subj.getPrincipals().add(ppal);
    idcb.setSubject(subj);
    return idcb;
    throw new AsserterException("Token expired");
    }catch (Exception e)
    String error = e.getMessage();
    throw new AsserterException(error, e);
    public boolean verificarVigencia(InversuraToken token)
    return token.estaVigente();

  • Custom Branding Using the AJAX Framework L-Shape APIs

    Hello folks,
    i want to do this Tutorial (How To Apply Custom Branding Using the AJAX Framework L-Shape APIs) but i'm missing the source code.
    Can anyone of you provide me with the necessary files?!
    It was once located in Sap Code-Exchange (https://code.sdn.sap.com/svn/sap-portal-ajax-framework)
    Thanks in advance.
    Greetings,

    I downloaded in May 2014 two EARs with a custom AFP from SAP:
    com.customer.afp.fromscratch.ear
    com.customer.sdesign.ear
    I also have the images shown in the pdf....
    If interested, send me an email (see profile).
    Kai

Maybe you are looking for