Changing JDBC Datasource Configuration for Report with Sub reports at once

The Env  details are as follows
CR Developer
Version 14.0.2.364 RTM
We are using JDBC Connection Datasource for our CR2011 report which contains 30+ sub reports. Each of the sub report uses a JDBC Datasource to connect to Postgres database and Since the JDBC connection string changes on each environment we need to edit each sub report every time we switch environments.
Is there a easy way to accomplish this on all sub reports at one shot?
I am aware that if we use ODBC connection it would be easy since we can just change the DSN config and it will start working. But we are not using ODBC connection since We are seeing that our report (with too many sub reports) crashes when we use ODBC driver for Postgres.
Any help/suggestion would be appreciated.

Hello,
CR also has a fully support Java Reporting Engine. If you have Java developers available check out this forum:
SAP Crystal Reports, version for Eclipse
You can find more info and samples from here:
http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessIntelligence%28BusinessObjects%29+Home
And help.sap.com for the SDK reference material.
Don

Similar Messages

  • Scheduled report with sub-reports  (Encapsulating page failed).

    Hello Everyone
    I am fairly new to reporting and SAP.
    I do have a main schedule report containing 4 sub-reports in the sections and 1 sub-report in the page header.
    The report runs fine in the Infoview development folder, But whenever its deployed in system_testing folder, it doesn't open and gives the following error:
    "ERROR IN FILE XXX:Encapsulating page failed."
    I talked to DBA to change the permission for the user, but they don't agree. since its a scheduled report, user can only access the instance of the report, not to run it.
    How can I make sure that the sub-reports don't run when user opens the report.
    I appreciate any help in advance
    Thanks and regards
    MJ

    Hi All,
    We have been facing the "Encapsulating page failed " error sporadic in our Crystal reports. It is not happening always.
    We have tried with different user accounts, it did not help much. Also tried various suggestion from the following SAP Notes:
    1536964 - Encapsulating page failed - The error change to Database error when the preference is changes
    1211088 - Error message "Encapsulating Page Failed" - This is not the case with our reports, we still have some reports facing the same error without an subreports in it
    1543412 - Infoview warning: "Error in File xxx : Encapsulating page failed - tried implementing the recommendation , but no help
    1900672 - Error: Encapsulating page failed while viewing Crystal Reports based on stored procedures in BOXI 3.1  -- Our reports are not based on stored procedures.
    We have faced this error in many different version of BOXI 3.1 like SP4.1, SP7.1, SP7.2. But the behaviour is similar. We have a clustered machine with 2 BOE servers and 2 Tomcat servers.
    I have tried activating E2E tracing, but I really couldn't understand the reason for error from the logs. Our reports connect to datasource using webservices.
    some information from the error traces.
    Verkapseln der Seite nicht möglich.. Internal error: CrpeMgrPEEncapsulatePageEx
    I would like someone to help me troubleshoot the problem. I can share the logs if needed. Please direct me to the correct forum if this is outdated.
    Regards,
    Prarthana

  • Error exporting report with sub report and parameters

    Post Author: joncombe
    CA Forum: JAVA
    I am using the JRC to export to a PDF file a report that has a sub report within it. Both the main and subreport connect to an Oracle database via an Oracle ODBC connection and both share a single parameter, RUN_ID. I need to set a value for the parameter in both reports. If I don't do that I get this error:-com.crystaldecisions.reports.exportinterface.exceptions.ExportException: Some parameters are missing valuesI have the following code to update the parameters in both reports.                     ParameterField thisParameter1           = new ParameterField ( );                   ParameterField thisParameter2           = new ParameterField ( );                   Values thisValue1                       = new Values ( );                   Values thisValue2                       = new Values ( );                   ParameterFieldDiscreteValue thisParamDV1= new ParameterFieldDiscreteValue();                   ParameterFieldDiscreteValue thisParamDV2= new ParameterFieldDiscreteValue();                   thisParameter1.setReportName("");                   thisParameter2.setReportName("DQA_GER_Adressverification.rpt");                   thisParameter1.setName("RUN_ID");                   thisParameter2.setName("RUN_ID");                   thisParameter1.setType(FieldValueType.numberField);                   thisParameter2.setType(FieldValueType.numberField);                   thisParamDV1.setValue(254);                   thisParamDV2.setValue(254);                   thisValue1.add(thisParamDV1);                   thisValue2.add(thisParamDV2);                   thisParameter1.setCurrentValues(thisValue1);                   thisParameter2.setCurrentValues(thisValue2);                   parameterFields.add(thisParameter1);                   parameterFields.add(thisParameter2);                  ReportStateInfo repStateInfo = new ReportStateInfo();                  repStateInfo.setParameterFields(parameterFields);                  reqCont.setReportStateInfo(repStateInfo);  With this code in place I have found that if I run using the JRC supplied with Crystal Reports for Eclipse I get the following error:-ERROR - QueryEngine error: verify database failed.ERROR - Disk Exporter: no output file was created by an exporterERROR - PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); aborting exportjava.lang.IllegalArgumentException        at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)        at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)        at com.crystaldecisions.reports.a.e.if(Unknown Source)        at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)        at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)        at com.businessobjects.reports.sdk.b.b.int(Unknown Source)        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)        at crystalreportrunner.ReportExporter.exportReport(ReportExporter.java:174)        at crystalreportrunner.CrystalReportRunner.main(CrystalReportRunner.java:91)ERROR - Failed to export reportcom.crystaldecisions.reports.exporters.format.page.pdf.a.a: Unexpected exception thrown        at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)        at com.crystaldecisions.reports.a.e.if(Unknown Source)        at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)        at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)        at com.businessobjects.reports.sdk.b.b.int(Unknown Source)        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)        at crystalreportrunner.ReportExporter.exportReport(ReportExporter.java:174)        at crystalreportrunner.CrystalReportRunner.main(CrystalReportRunner.java:91)Caused by: java.lang.IllegalArgumentException        at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)        ... 17 moreERROR - JRCAgent1 detected an exception: An error occured while exporting the report        at com.businessobjects.reports.sdk.b.b.int(Unknown Source)        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)        at crystalreportrunner.ReportExporter.exportReport(ReportExporter.java:174)        at crystalreportrunner.CrystalReportRunner.main(CrystalReportRunner.java:91)Error exporting report : report. Error is ReportSDKException: An error occured while exporting the reportAn error occured while exporting the reportcom.businessobjects.reports.sdk.d.byte(Unknown Source)com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)com.crystaldecisions.sdk.occa.report.application.ReportSource.export(Unknown Source)com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source) With the JRC supplied with Crystal Reports XIR2 I get this error:- INFO - PdfExporter: serializing pdf document and cleaning upINFO - Disk Exporter: verifying export to destinationERROR - Disk Exporter: no output file was created by an exporterERROR - PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); aborting exportjava.lang.IllegalArgumentException        at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)        at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)        at com.crystaldecisions.reports.a.e.if(Unknown Source)        at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)        at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)        at com.businessobjects.reports.sdk.b.i.int(Unknown Source)        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)        at crystalreportrunner.ReportExporter.exportReport(ReportExporter.java:174)        at crystalreportrunner.CrystalReportRunner.main(CrystalReportRunner.java:91)INFO - Disk Exporter: finalizing export to destinationERROR - JRCAgent1 detected an exception: java.lang.NullPointerException        at oracle.jdbc.driver.T4C8Oall.getNumRows(T4C8Oall.java:870)        at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:811)        at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1037)        at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:830)        at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1132)        at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1687)        at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1653)        at com.crystaldecisions.reports.queryengine.driverImpl.o.ew(Unknown Source)        at com.crystaldecisions.reports.queryengine.driverImpl.o.if(Unknown Source)        at com.crystaldecisions.reports.queryengine.ao.d4(Unknown Source)        at com.crystaldecisions.reports.queryengine.ao.f(Unknown Source)        at com.crystaldecisions.reports.queryengine.ao.dP(Unknown Source)        at com.crystaldecisions.reports.queryengine.av.if(Unknown Source)        at com.crystaldecisions.reports.queryengine.ba.if(Unknown Source)        at com.crystaldecisions.reports.queryengine.ba.do(Unknown Source)        at com.crystaldecisions.reports.queryengine.ba.try(Unknown Source)        at com.crystaldecisions.reports.queryengine.ba.for(Unknown Source)        at com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)        at com.crystaldecisions.reports.dataengine.j.a(Unknown Source)        at com.crystaldecisions.reports.dataengine.j.a(Unknown Source)        at com.crystaldecisions.reports.dataengine.a9.if(Unknown Source)        at com.crystaldecisions.reports.dataengine.a9.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.g(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.i.g(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.ca.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.a9.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.e.m.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.e.m.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.e.p.k(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.e.p.null(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.e.p.k(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.e.p.az(Unknown Source)        at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)        at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)        at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)        at com.businessobjects.reports.sdk.b.i.int(Unknown Source)        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)        at crystalreportrunner.ReportExporter.exportReport(ReportExporter.java:174)        at crystalreportrunner.CrystalReportRunner.main(CrystalReportRunner.java:91)I believe the error is that the SQL query in the main report is being updated with the RUN_ID but the SQL in the sub-report is not. I am not sure why the update to set the RUN_ID in the second SQL query fails, but it seems to me the JRC is not detecting it as a missing parameter and is passing the SQL including {?RUN_ID} to Oracle, causing the JDBC driver to fail with this NullPointerException. I think this because further up in the log I see this:-INFO - Executing query: SELECT v.* FROM v_ger_main vwhere v.run_id = 254INFO - Verifying databaseINFO - Executing query: SELECT h.* FROM v_ger_av_ls_tagging hwhere h.run_id = {?RUN_ID}ERROR - QueryEngine error: verify database failed.Both connections are from the same database, but the first has the updated value (254) whilst the second query still seems to have the parameter and so fails to verify.Can someone suggest how I can fix this problem or if I have missed something that is required?Thanks.Jon.

    Post Author: Ted Ueda
    CA Forum: JAVA
    What happens if, instead of passing in parameter field values, you pass the report source object to the viewer (ReportViewerBean for stand-alone or CrystalReportViewer for web)?  The viewer should introspect the report for the parameter fields and bring up a parameter field entry dialog box.  Does such a dialog box come up?  Is only the main report parameter field queried for, or both main and subreport paramter fields?  When you enter correct values for the field, does the report display?
    Hopefully, the above should narrow down the issue.
    By the way, JRC doesn't support ODBC connections, only Java based connectivity such as JDBC, JavaBeans and XML.  If you have a report with ODBC, then it looks for a JNDI connection with the same name.
    Sincerely,
    Ted Ueda

  • Report with sub-reports have to put ODBC credential several times

    I designed a report with several sub-reports in Crystal XI, which all have same  ODBC connection, when other developers got the .rpt file, they open the designer to run this report from their local PC, it will prompt them to put their user name and password for the ODBC SEVERAL TIMES. We all have the same ODBC connection set up, after they put the user name and password several times, the report works, but itu2019s so annoying.
    Is there a way to avoid putting ODBC user name and password in Crystal Designer? Or put once at main report and pass to all subreports?

    Hi,
    According to my understanding if we are using an odbc connection and the username and password for the database is same for the entire user, then you can just create an ODBC connection string in crystal report. Where in you will manually specify the dsn to be used, username and password will also be stored in that connection string.
    So next time you run a crystal report, it would take the username and password for this connection string.
    Thanks,
    kuldeep

  • Report with Sub Reports?

    I'm not sure how to do this report (or even to pull the data for that matter)  Here are my basic tables:
    <Rental>
       Rental ID, MemberID, DateOut, DateIn, Notes
    <Rental_Movies>
       Rental ID, TitleID
    <Rental_Music>
       Rental ID, TitleID
    <Movies>
       ID, Title
    <Music>
       ID, Title
    <Members>
       ID, Last, First, ...
    Note: some fields are left off for Brevity.
    I want the report to look something like:
    RentalID   Last, First    DateOut    DateIn
         Notes
       List each movie matching RentalID
        Movie_Title
       List each music matching RentalID
        Music_Title
    I can get it close, but it interleaves the Music with the Movies which I dont want.  I am currently pulling all the data through left joins,
    Thanks
    Peter

    ok this is working along well with the sub reports.  I now need to add one more item in the report footer.  Basically a summery...So the report should look like:
    Rental ID Last, First, Date, Notes
    1 Carlson, Peter 1/1/2009
        The Mummy
         The Mummy Returns
    2 Smith, John 1/3/2009
       The Mummy Returns
        Bubba plays the trombone
    Summary:
       The Mummy: 1                     The Mummy Returns: 2                 Bubba plays..: 1
    The summary is linked to the data.  The inidividual movie / music records are not date stamped.  The Rental record is.  The basic query would be select Movies.Title, count(Moviews.Title) from Movies, Rental_Movies where Rental_Movies.ID=Movies.ID and Rental.Movies.Rental_ID in (Select id from Rental where date > 1/1/2009)
    However the dataset is passed in whole to the report and a filter is used on the main table to eliminate the Rental Records.
    Any ideas are welcome here!
    Peter

  • Doesn't play songs, "itunes is not configured for use with mac-formatted"??

    Hi, new ipod shuffle. Seems to charge fine, all indicator lights function as expected. Everything looks fine in itunes. But it doesn't play songs. I have the most recent versions of itunes and the ipod software. Re-set, updated, and restored, nothing works. Even restored using the restore utility. Re-started computer. Checked for volume control. Won't play songs. Tried different file types. Songs play fine from itunes library and from the device's library within itunes. Tried different headphones. Hooked it up to computer speakers. Turning volume all the way up on device and speakers, heard some very faint rhythmic static, so my guess is the jack socket (or whatever you call it) is just messed up, but it seems weird that it can transfer power and data to the device but doesn't work for sound...
    The only other issues that have come up is that the drive disappears in explorer once it syncs with itunes. Other people who've noticed this seem to have completely different problems so I don't think it's related.
    Also, I have MacDrive on my computer. And when it starts up with the ipod plugged in, MacDrive offers the message "Itunes is not configured for use with Mac-formatted ipods." It offers to automatically reconfigure itunes so it can read mac-formatted ipods. Since I've restored the device, I don't see why formatting should be an issue so I say "no."
    Should I try letting macdrive do its format thing? Should I try formatting the ipod disk on the My Computer menu? Or should I just email apple and tell them the jack's busted?
    Thanks for any thoughts!

    Well, I have had my iPod for about 3 years, it is a 4th generation non-video 40 GB. One day it just stopped working, and now it does not play any songs. when I turn it on it makes this odd whirring sounds that computers make when they try really hard to do something. I cannot charge it, and it is not recognized by iTunes. Also when I turn it on, I get the apple.com/ipod/support (or whatever it is) screen. Needless to say, my warranty is expired, and so I cannot do anything for it except get a new battery, or buy a new one. Is there any way to fix this problem, or anyone out there who is experiencing the same thing?
    I'm having the exact same problem with my wife's iPod. However it will play about 3 seconds of a song and go onto the next song.
    If there is anyone out there that can help please do!
      Windows XP  

  • Crystal Report Viewer - Sub Reports

    Hi Everyone,
                        I'm working with Crystal Reports(V13.0.7) Windows form viewer in VS2012(VB.Net). I have a sub report which is causing problems. I have set the link to the Main report parameter and Sub report. I have a total of 43 parameters getting passed(Main and Sub Reports including). While setting the ReportSource in code, I find that there are 43 parameter fields passed. But i constantly get an error "The parameter is incorrect". An important thing to note is that- Whenever i debug the code, the report gets displayed but it is not so when in release mode. Can anyone help me in this regard. I'm totally frustrated and its been weeks and i haven't solved the issue yet. I have attached the files below (FrmViewer - Used to add and set report source for Main and sub reports) and (Display-AR-REPORT( ) - for passing main report and sub report parameters). The AR.Rpt report

    Hi Sastry,
                   Firstly, thanks for replying to my post. I have checked all the parameters passed, did some changes(Had extra 0's after decimal point), but still no change. The same old Error. As i have mentioned before, Whenever i debug the code, the report gets displayed but it is not so when in release mode. The file (Original Report.png)image is a Perfect report. The report file (MyReport.png)shown below is my report.

  • CPI-C calling a report with long report name

    Hi there,
    we are communicating to a SAP System with CPI-C.
    My question:
    How can I call a report with CPI-C which has a name with more than 8 characters?
    (I am using SAP_CMLOGON2 of CPI-C SDK for C++)
    I want to use namespaces and 8 Characters are too short for this.
    Any Ideas?
    Thx,
    Andi

    Hi Scott,
    According to your description, you want to call the report which contains subreports in asp.net.
    Based on my research, when we call the report which contains subreports in asp.net, we should attach a handler to the SubReportProcessing event of the report. For more information, please refer to the similar thread: Running
    Reports SubReports and parameters from Asp.net. Besides, you could also refer to this
    article to render the main report and sub report in ReportViewer control.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Deadlock with thread issues while generating reports with Crystal Report XI

    We are facing deadlock with thread issues while generating report with Crystal Report XI
    Version Number is 11.0 and the database used is Oracle
    In the log file on line number 74350  by 2008/12/16 13:35:54 there is a dead lock with Thread: u20184u2019 is waiting to acquire lock for 'com.crystaldecisions.reports.queryengine.av@15214b9' which is held by the Thread: '0'.
    And  a dead lock with Thread: u20180u2019 is waiting to acquire lock for 'com.crystaldecisions.reports.queryengine.av@15214b9' which is held by the Thread: '4'.
    Exactly after 10 minutes we can see the thread 4 and 0 are declared as STUCK by 2008/12/16  13:45:54 .
    Is this an existing issue with Crystal Report?
    Is there some solution for this problem?
    THE LOG FILE INFORMATION IS GIVEN BELOW
    [deadlocked thread] [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)':
    Thread '[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'' is waiting to acquire lock 'com.crystaldecisions.reports.queryengine.av@15214b9' that is held by thread '[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)''
    Stack trace:
         com.crystaldecisions.reports.queryengine.av.V(Unknown Source)
         com.crystaldecisions.reports.queryengine.av.do(Unknown Source)
         com.crystaldecisions.reports.queryengine.as.if(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.datainterface.j.c(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.cy.b(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.cy.long(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.a(Unknown Source)
         com.crystaldecisions.reports.common.ab.a(Unknown Source)
         com.crystaldecisions.reports.common.ab.if(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.if(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
         com.crystaldecisions.reports.reportengineinterface.a.a(Unknown Source)
         com.crystaldecisions.reports.reportengineinterface.a.a.b.a(Unknown Source)
         com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
         com.sysarris.aris.crystalreports.RepServlet.generateReport(RepServlet.java:65)
         com.sysarris.aris.crystalreports.RepServlet.doPost(RepServlet.java:40)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
         weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
         weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
         weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
         weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
         weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
         weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    [deadlocked thread] [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)':
    Thread '[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'' is waiting to acquire lock 'com.crystaldecisions.reports.queryengine.av@12e0415' that is held by thread '[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)''
    Stack trace:
         com.crystaldecisions.reports.queryengine.av.V(Unknown Source)
         com.crystaldecisions.reports.queryengine.av.do(Unknown Source)
         com.crystaldecisions.reports.queryengine.as.if(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.datainterface.j.c(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.cy.b(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.cy.long(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.a(Unknown Source)
         com.crystaldecisions.reports.common.ab.a(Unknown Source)
         com.crystaldecisions.reports.common.ab.if(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.if(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
         com.crystaldecisions.reports.reportengineinterface.a.a(Unknown Source)
         com.crystaldecisions.reports.reportengineinterface.a.a.b.a(Unknown Source)
         com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
         com.sysarris.aris.crystalreports.RepServlet.generateReport(RepServlet.java:65)
         com.sysarris.aris.crystalreports.RepServlet.doPost(RepServlet.java:40)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
         weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
         weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
         weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
         weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
         weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
         weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    Can you please suggest any work around for this?

    I'm not referring to Servlet threading issues.
    I'll clarify.
    You have two threads, both entering ReportClientDocument.open(...) method.
    Thread 4 is waiting to acquire 'com.crystaldecisions.reports.queryengine.av@15214b9'
    Thread 0 is waiting to acquire ''com.crystaldecisions.reports.queryengine.av@12e0415'
    So I'm thinking ??? are they the same objects?
    My specific question concerning the ReportClientDocument is that both are calling open - i.e., trying to open a new report.  You wouldn't be trying to open different reports using the same ReportClientDocument - so was wondering if you've cached the RCD and trying to open two different reports at the same time on the same instance via different threads.
    You'd normally tie a ReportClientDocument instance to a HTTP Session, to ensure each user gets their own copy.
    Sincerely,
    Ted Ueda

  • How to pass the value from sub report to sub report

    how i want get one value from sub report to sub report..
    can i do this one...
    how can get the value.
    i know main report to sub report
    i tried that way but
    value is  0.00 is comming
    Any reasons.

    Hi Try this.
    Create a formula like this in subreport1 (from the report where you want to pass your value)
    Whileprintingrecrods;
    Shared Numbervar x :={subreport1Value};
    Then go to 2nd sub report and Create a formula like this
    Whileprintingrecrods;
    Shared Numbervar x ;
    Note :Your sub report1 should execute before sub report2 .That means sub report1 should be in the above section of sub report2

  • Passing values from main report to sub-reports

    - How do we pass values from main report to sub-report?

    Look at this link which shows how to pass values from a subreport to a main report.
    http://www.datamanagementgroup.com/resources/trainerstalk/trainerstalk_howto_share_subreport_data_with_main_report.asp
    You can use the same method to pass values from main report to a subreport.
    1) Create a formula @mainFormula in the main report, as given in item 1 of link.
    2) Place this formulla in a suppressed report footer section above the target subreport.
    3) In the subreport, create a formula @subFormula that declares the same variable name, as given in item 3 of link.
    4) Place @subFormula column in the subreport where you want to display it.

  • DataDirect Connect JDBC for Sybase with 9i Reports

    Hi,
    I am trying to use DataDirect JDBC Driver for sybase with Oracle 9i Reports. I had included YMUtil.jar,YMBase.jar,YMsybase.jar and oc4j.jar in REPORTS_CLASSPATH registry and added entry in jdbc-pds config file as
    <driver name = "iAS-Sybase"
    subProtocol = "sybase"
    connectString = "mainProtocol:subProtocol://databaseName"
    class = "com.oracle.ias.jdbc.sybase.SybaseDriver"
    connection = "oracle.reports.plugin.datasource.jdbcpds.JDBCConnectionHandling"
    loginTimeout = "0">
    <property name="SelectMethod" value="direct"/>
    </driver>
    With a JDBC query option, when I try to connect the database How should I specify
    the database name, server name, port ??
    I specified in the "Database column" of connect dialog box as
    <ip address>:<port number>:<database name>, it throws an error saying
    "ERR 62002 : Failed to connect to the datasource".
    Let me know, should I specify the database detail
    Thanks & Regards
    Anand

    Hello,
    1: Download the latest Driver from : http://www.datadirect-technologies.com/download/downloadindex.asp.
    2: Add following entry in config file :
    <driver name = "sybase-merant"
    subProtocol = "merant:sybase"
    connectString = "mainProtocol:subProtocol://databaseName"
    class = "com.merant.datadirect.jdbc.sybase.SybaseDriver"
    connection =
    "oracle.reports.plugin.datasource.jdbcpds.JDBCConnectionHandling"
    loginTimeout = "0">
    </driver>
    Connection information :scott/tiger@sybase2:4000
    UserName : scott
    Password : tiger
    Database : sybase2:4000
    HostName : sybase2
    Port : 4000
    With Regrds
    Sachin

  • Change the DataSource (SQL Server) before view a report

    I have wrote a application that´s use CR2008. in my developer machine (the same machine where the reports are created) it works fine
    I have install my application on a test machine. But when i open the report then allway come up a window to input the database credentials. Importing thing: All fileds are correct filled, only the Database field is writeprotect and empty (???)
    I using follwing code
    ''' <summary>
        ''' Kapselt das Anzeigen eines CrystalReports-Bericht
        ''' </summary>
        ''' <param name="rptFileName">Pfad und Dateiname des Berichts, der angezeigt werden soll</param>
        ''' <param name="ConnStr">Datenbank-Verbindung, die innerhalb des Berichts ersetzt werden soll</param>
        ''' <returns>Wird der Wert TRUE zurückgegeben, dann war das anzeigen Erfolgreich. Bei dem Rückgabewert
        ''' FALSE trat ein nicht abgearbeiteter Fehler auf</returns>
        ''' <remarks></remarks>
        Public Function ShowRPTFile(ByVal rptFileName As String, Optional ByVal ConnStr As String = "") As Boolean
            Dim cryRpt As New ReportDocument
            Dim crtableLogoninfos As New TableLogOnInfos
            Dim crtableLogoninfo As New TableLogOnInfo
            Dim crConnectionInfo As New ConnectionInfo
            Dim crSubReportObject As SubreportObject
            Dim crSubRepDoc As New ReportDocument
            Dim CrTables As Tables
            Dim CrTable As Table
            Dim SQLServer As New MyApp.Interface.MSSQLSMO.MSSQLServer
            Dim sCounter As Integer ' Sektionen
            Dim iCounter As Integer ' Objekte
            Dim tCounter As Integer ' Tabellen
            Try
                cryRpt.Load(rptFileName)
                ' Ersetzen des internen Connection-Strings für alle Tabellen
                If ConnStr <> "" Then
                    MyApp.FX.Interface.Database.SplitConnectionString(SQLServer, ConnStr)
                    With crConnectionInfo
                        .ServerName = SQLServer.Server
                        .DatabaseName = SQLServer.Database
                        If SQLServer.Login IsNot Nothing Then
                            .UserID = SQLServer.Login
                            .Password = SQLServer.Password
                            .IntegratedSecurity = False
                        Else
                            .IntegratedSecurity = True
                        End If
                    End With
                    CrTables = cryRpt.Database.Tables
                    For Each CrTable In CrTables
                        crtableLogoninfo = CrTable.LogOnInfo
                        crtableLogoninfo.ConnectionInfo = crConnectionInfo
                        CrTable.ApplyLogOnInfo(crtableLogoninfo)
                        ' If your DatabaseName is changing at runtime, specify
                        ' the table location. For example, when you are reporting()
                        ' off of a Northwind database on SQL server
                        ' you should have the following line of code:
                        CrTable.Location = crConnectionInfo.DatabaseName + ".dbo." + CrTable.Location.Substring(CrTable.Location.LastIndexOf(".") + 1)
                    Next
                    ' Loop through each section on the report then look
                    ' through each object in the section
                    ' if the object is a subreport, then apply logon info
                    ' on each table of that sub report
                    For sCounter = 0 To cryRpt.ReportDefinition.Sections.Count - 1
                        For iCounter = 0 To _
                            cryRpt.ReportDefinition.Sections(sCounter).ReportObjects.Count - 1
                            With cryRpt.ReportDefinition.Sections(sCounter)
                                If .ReportObjects(iCounter).Kind = _
                                CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
                                    crSubReportObject = CType(.ReportObjects(iCounter), SubreportObject)
                                    crSubRepDoc = crSubReportObject.OpenSubreport(crSubReportObject.SubreportName)
                                    For tCounter = 0 To crSubRepDoc.Database.Tables.Count - 1
                                        crSubRepDoc.Database.Tables(tCounter).ApplyLogOnInfo(crtableLogoninfo)
                                    Next
                                End If
                            End With
                        Next
                    Next
                End If
                ' Zum Schluß wird der bericht dann nur noch angezeigt
                With Me
                    'Re setting control
                    .ReportSource = Nothing
                    'Set the current report object to report
                    .ReportSource = cryRpt
                End With
                Return True
            Catch ex As Exception
                Return False
            End Try
        End Function
    Edited by: MKolowicz on Oct 22, 2010 8:41 AM

    See the article [Troubleshooting Guide to Database Connectivity Issues with Crystal Reports in Visual Studio .NET Applications|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0225775-88c4-2c10-bd80-8298769293de].
    Also, search these forums and use the search box at the top right of this page. You will get results for KBases, wikis, blogs, articles and more...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Check report with sub

    i have a check wher the check details are in a sub report.
    the detail line items can only print 10 records per page, if it  exceeds 10 records the remaining records must be printed on a second page.
    since this is in the sub report i created an array to pass the record count to the main.
    how do i tellthe report to print a new page when the records in the sub are 25 but each page can only display 10, so in total i would have 3 pages
    do i loop through the array, howdo i do that.

    The only way that I can think of to do this is a bit convoluted, but here it goes:
    The main report needs to be driven by an SQL Command that returns the check id (whatever is used to determine the details that need to go on the remittance advice/check stub).  The check id would need to be returned once for each check (multiple of 10 details) that need to print.  Roughly speaking, something like (MS SQL):
    select checkid, count(*) as NumDtls
    into #temp
    from payables, payable_details
    where payables.date between {?start} and {?end}
    and payables.id = payable_details.id
    group by checkid
    select *
    into #temp2
    from #temp
    insert into #temp2
    select * from temp where NumDtls > 10
    insert into #temp2
    select * from temp where NumDtls > 20
    insert into #temp2
    select * from temp where NumDtls > 30
    /* repeat to a maximum number of details expected - times 10 :-)  I'd probably put it in a loop... */
    select * from #temp2 order by checkid
    In the main report, print the negotiable check data if
    {command.checkid} &lt;&gt; previous({command.checkid})
    (Suppress if =...)  Otherwise, print "*** VOID ***" all over the check portion.
    For the stub, use a subreport based on the payable_details table.  In the Page (or Report) Header in the subreport, put (basic syntax):
    shared lastId as number
    shared firstRec as number
    shared lastRec as number
    if {?pm-checkid} &lt;&gt; lastId then
      firstRec = 1
      lastRec = 10
      lastId = {?pm-checkid}
    else
      firstRec = firstRec + 10
      lastRec = lastRec + 10
    end if
    formula = ''
    Then suppress the detail lines in the subreport if (basic syntax)
    shared firstRec as number
    shared lastRec as number
    formula = ((recordnumber < firstRec) or (recordnumber > lastRec))
    I think that will generally solve your problem...
    HTH,
    Carl

  • MM Configuration for integration with SAP SNC

    Hi,
    I need to make MM configuration required to support PO collaboration and SMI process integrating with SAP SNC.
    ANy kind of information would be very much helpdull
    Thanks
    Vikas

    Hi Vikas,
    MM configuration for PO collaboration is depend upon the your requirements. e.g. You want to upload the confirmations send by the supplier from SNC web UI to your R/3 system you have to use confirmation control key while creating PO in R/3 and make corresponding supplier confirmation control either optional or mandatory in SNC configuration. Default provided by SAP is optional.
    Remember supplier can create confirmations only if ther either optional or mandatory.
    Regards
    Pravin

Maybe you are looking for

  • Adobe Air Install Error

    When trying to install Abode Air onto my Windows XP Pro computer...I keep getting the same error everytime: "An error occurred while installing Adobe AIR. Installation may not be allowed by your administrator. Please contact your administrator." Erro

  • Mail 5.3 crash after Time Machine migration

    All, I'm facing a problem with Mail 5.3 while trying to recover my email db from Time Machine after an update of MacOS. Here the following steps I made to perform this update: Update my iMac from SL to Lion 10.7.1 using the clean install way. Install

  • Save as/Export area problem

    Hi to all! When i save a file as "Flattened PNG" , the Export area is not working. FW (10.0.3.11, MacOS X 10.5.7)  saves the complete image and not just the cropped area. But when i choose another file format (jpg) it saves just the expected area. Is

  • TimeStampDiff function ROUNDing the result. How can we avoid this?

    Hi, I am using the following timestamp function: TIMESTAMPDIFF(SQL_TSI_HOUR, "SF_CS_CS_Fact"."Crtddt_Dt", "SF_Emlmssg_Sum_CS"."Initl Resp Tm") I notice that the result set is rounded off to the whole no. This is happening because OBIEE autimatically

  • HT1051 Unable to order Calendar from UK laptop to deliver in Ireland whilst in Ireland

    Problem solved from other posts- now, how can I delete this??