Subreport issue

Post Author: vitalya
CA Forum: General
Hello all,
I have report, which contains 2 subreports. But in the report toolbar in the dropdown list I see only Main Report option.
What is a problem?
Thanks

Post Author: V361
CA Forum: General
What version of CR are you using ?

Similar Messages

  • SubReports Issues in SSRS 2005 Reports Upgrade to 2012

    Hi there!
    We are planning to upgrade our SSRS 2005 reports to SSRS 2012. As I heard there will are some upgrade compatibility issues, I read the below MSDN article and found that the Reports that include subreports may fail in upgrade. Below
    is the article.
    Upgrading a Report with Subreports:
    When a report contains subreports,
    one of four possible states can occur during upgrade:
    The main report and all subreports can be successfully upgraded. They are processed by the SQL Server 2012 Reporting Services (SSRS) report processor.
    The main report and all subreports cannot be upgraded. They are processed by the SQL Server 2005 Reporting Services report processor.
    The main report can be upgraded but one or more subreports cannot be upgraded. The main report is processed by the SQL Server 2012 Reporting Services (SSRS) report processor, but the rendered report shows the message "Error: Subreport
    could not be processed" in the location where the subreport that could not be upgraded would appear.
    The main report cannot be upgraded but one or more subreports can be upgraded. The main report is processed by the SQL Server 2012 Reporting Services (SSRS) report processor, but the rendered report shows the message "Error: Subreport
    could not be processed" in the location where the subreport would appear.
    If you see the error "Error: Subreport could not be processed",
    you must change the definition of the main report or the subreport so that the reports can be processed by the same version of the report processor.
    Can some one please tell me what does the above line mean? What does it mean by the phrase
    change the definition of main report? Does it mean I need to set any property in the main report?
    Please help! Thanks in advance.
    Ammy

    Hi Ammy,
    When you open an .rdl file in Report Designer in SQL Server Data Tools (SSDT), if the report was created for a previous namespace, Report Designer automatically creates a backup file and upgrades the report to the current namespace. This is the only way
    you can upgrade a report definition file. A report with subreports must be processed by the same version of the Reporting Services report processor. When upgrading reports to the current version of the report definition schema, the main report and the subreports
    may or may not be updated at the same time. If the version is not compatible between a report and its subreports, the following message is displayed: "Subreport could not be processed."
    If we want to change the definition of the report, we can open an .rdl file in Report Designer in SQL Server Data Tools (SSDT).  Then the namespace of the report will upgrade to the current namespace. For more information about Identify the Report Schema
    Version, please see the following document:
    http://msdn.microsoft.com/en-us/library/cc627465(v=sql.110).aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Report Builder Subreport issue.

    Recently, I've taken my church's fundraising database
    (Access) and moved it to a hosted server. I've written CF code to
    maintain all the tables and used Report Builder to create reports
    (such as Bid Sheets, Labels, Thank You Letters). BTW, Report
    Builder and cfreport ROCKS! However, I'm now trying to complete the
    Thank You Letters to our contributors and I've run into a bit of a
    snag....
    The letter starts out with a couple of paragraphs thanking
    them for their contribution(s). I then print a list of all the
    items they donated, followed by a couple of paragraphs summarizing
    and re-thanking them.
    The list of items is a Subreport linked to the main query.
    This works great by listing all their items. However, if the list
    contains more than 3 or 4 items, it covers up part, if not all, of
    the concluding paragraphs. I've gone in and change the positioning
    of the concluding paragraphs to "Float" but when I process the
    letter, CF hangs up and I finally get a JRun error. Then I have to
    ask the hosting service to restart CF. The hosting service is
    Godaddy.com and they are currently running CF 7.
    Any ideas how I can solve this problem?
    Regards,
    Robert

    To get extra pages just create some bogus groups on a field
    that is unique. You can then turn on the setting to Add a Page
    Break and completely hide the band, it'll work as your page break.
    To see the binding panel, click on the subreport and look for
    Subreport Parameters in the Properties Inspector, clicking on the
    "..." will bring up the binding panel.

  • OIA subreport Issue :

    Hi,
    I have an OIA Custom Report that also includes subreport. I designed them on IReport and it runs fine there.
    However I import them on OIA and I get the error "Report Definition could not be found in Database". I have made a reference to the .jasper file of the child report in the Main report and placed the .jasper file in the Reports folder of the OIA.
    The master report has a reference to the child report as shown below :
    <subreport isUsingCache="true">
                             <reportElement
                                  mode="Opaque"
                                  x="0"
                                  y="140"
                                  width="554"
                                  height="22"
                                  backcolor="#FF9933"
                                  key="subreport-3"/>
                             <subreportParameter name="USERNAME">
                                  <subreportParameterExpression><![CDATA[$F{USERNAME}]]></subreportParameterExpression>
                             </subreportParameter>
                             <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
                             <subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "subreport1.jasper"]]></subreportExpression>
                        </subreport>
    Could anyone help and let me knwo what else I need to do ? The subreport.jasper is actually the one created while I run it on iReport and both iReport jars and OIA jars are the same, 2.5.0.
    Edited by: 810367 on Jan 24, 2012 2:40 PM

    Closed

  • Linking SubReport Issue

    I have a field in the main report that I want to use to link to a subreport and only display the informaton that meets that fields value. I have the subreport set up and when I go to create the link it can link with either the ?PM-MISC.RUNNUMBER or Select data or subreport based on field. When I just use the first I get all the data (many different run numbers, not just the matched number form the main report.) When I check the second one I get nothing. .
    Any ideas?
    Jim

    Hi..
    Where you are inserting this sub report ?  Try to create a group on the field which you are linking to sub report.  Place sub report on group footer.
    Link sub report with ?P M to sub report field.
    Thanks,
    Sastry

  • Can I have a subreport within a subreport?

    hi -- I've found lots of information -- that's several years old -- indicating that Crystal does not support subreports within subreports. Is this still the case? (I'm running CR11.) From my experiments it looks like this is still true... but I want to make sure I'm not missing anything.
    If not possible, does anyone have any slick solutions?  I have some ideas, but they'll require a fair amount of redesign.
    Thanks,
    Carol

    hi Carl -- Well, when each of these reports were built, we were pulling data from 3 different Oracle tables:
    One table holds the title of the report; it returns a single row based on a report_id defined in the report. This subreport is in
    the report header.
    One view holds the main data to be displayed (monthly measurements taken at reservoirs); this data comprises the main report -- it's not a subreport.
    One view holds annotations for the data -- there could be multiple rows of annotations for a single report id. This subreport is in the report footer. 
    We actually no longer need to query a DB table for annotations; they're all manually entered into a text area in the subreport. And I can see how I can just include the report title table in the tables accessed by the main report -- it should be easy to get the join correct to display the title and the reservoir data details.
    The subreport within subreport issues comes up because we now need to combine all of about 60 reports (like those I describe above) into a single report -- for the purpose of simplifying the generation of a large, published report. Unfortunately we didn't know about this requirement from the start...
    So, I think I have a solution -- it just requires the redesign of about 60 reports. Yuck! I'm also not sure what sort of formatting (spacing/pagination) issues I might run into using text areas vs. subreports. I have a feeling it might be trickier to get it looking good, but hopefully I'm wrong.
    If you have other / better ideas, please let me know.  And I would like to get your take on how I could handle combining all 60 of these reports if I did still have to query an annotation table that might return multiple rows for the report -- I might have a similar situation in the future.
    Thanks so much,
    Carol

  • ReportDocument hangs sometimes in Load() [CRPE.InitCrpe()]

    Hi
    We have the issue, that crystal report doesn't work anymore after a while and uses all the CPU time. It happens sporadically after a few hours. We are running on Win Server 2008 R2 with Crystal Report 2008 SP3. It is an ASP .NET application.
    I attached WinDbg and made a dump. The dump shows, that the Crystal hangs in ReportDocument.Load(). See Stack Trace below (only managed side. The stack for the native side is too long for this post)
    Has anybody experienced this too? Could it be a problem, that there are two ASP .NET applications running on the same server and both use Crystal?
    .NET stack trace:
    0f8eed68 775a00ed [NDirectMethodFrameStandalone: 0f8eed68] CrystalDecisions.CrystalReports.Engine.CRPE.PEOpenEngineEx(CrystalDecisions.CrystalReports.Engine.PEEngineOptions ByRef)
    0f8eed78 11da8e04 CrystalDecisions.CrystalReports.Engine.CRPE.InitCrpe()
    0f8eedc4 11da86b4 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
    0f8eee04 11da819e CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(System.String, CrystalDecisions.Shared.OpenReportMethod, Int16)
    0f8eee44 11da7d85 CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(System.String)

    Then you'll have to run Fiddler or ProcessMonitor or possibly debugDiag and capture IIS crash and/or memory dumps.
    Fix Pack 3.5 was just released, it will take a few days before it becomes available, you could try applying that update to see if it resolves the issue.
    If it's always the same reports causing the problem you could start be removing various parts of the report until it stops crashing. May point to a specific section or subreport issue etc. At this point there is not enough info to to indicate the root cause of the problem.
    Thank you
    Don

  • Issues once subreport is added to main report.

    Another question from a new Crystal Reports Developer. I have been battling this one for multiple days. I have built two seperate reports through Crystal Reports that pull their data through an ODBC connection from Remedy ITSM. One report is pulling data through the table AST_AssetPeople. It is pulling the following fields: Asset_ID and Full_Name. The other report is pulling data from the AST_ComputerSystem table showing the following: Name, Category, Type, Item, Model_Number, Serial_Number. I am using the AssetPeople report as the main and the ComputerSystem report as the subreport. When I pull the ComputerSystems report into the AssetPeople report as a subreport, my CR lags very badly. I let CR attempt to pull the data for about 2 hours before I left work the other day and ended up having to leave it overnight. When I came back to work the following day it had finally completed and I was able to view all pages of data. This is with the subreport being added to the details section of my main report. I had sent it to someone else at work that has Crystal Reports on their PC and they were able to run it just fine and it only took a few minutes to get all pages of the data back and viewable. That lead me to think that it was my PC, but when I went over to the other persons PC and logged in with my profile, I had the same problem that I had on my PC. This leads me to believe that it is an issue with the settings. The other person is out for the next week so I cannot verify that my settings match his, so I was wondering if anyone on here might have an idea what may be causing the issues that I am having. Both reports run just fine on their own, as do all my other reports that are simple reports from one table. It is just when I try to pull in a subreport that I have this issue. Any help would be greatly appreciated.

    I have gone in and checked the box next to Perform Grouping on Server. The check box next to Use Index or Servers for Speed was already checked. The Links for the subreport are set up as follows.
    For subreport: Supported vs. Unsupported (This one comes from the ComputerSystem table)
    Container Report fields to link to: AST_AssetPeople.Asset_ID
    AS_AssetPeople.Asset_ID field link-
    Subreport parameter field to use: ?Pm-AST_AssetPeople.Asset_ID_
    Select data in subreport based on field: AST_ComputerSystem.Asset_ID_
    Asset ID is the only field that I found that the two tables have in common. I believe that I have the links set up correctly, but I could be wrong.
    Either way, I am still having the same problems.

  • Subreport preview issue differences between VS 2008 and VS 2012

    I have a report that contains a subreport which source is a report already deployed on the report server.  In VS 2008, when you do a preview the data in the main report displays fine and you get an error on the subreport.  In VS 2012, when you
    try and do a preview, the entire report displays a processing error.  Why do the VS versions behave differently when it comes to displaying any of the data?  Is there something I can do in VS 2012 to have my main data display?

    Hi DBAlicious,
    I already taken a sample test in my visual studio 2008 and visual studio 2012 environment, the result is that the main report displays fine and an error displays on the subreport when we preview the main report. The only difference is that subreport always
    displays “Error: Subreport could not be shown” in VS 2008, while the subreport displays error message based on the specific exact error in VS 2012. But we can see the detail error message from Error List Window in those two versions.
    In your scenario, I think the reason is that there are some errors in the main report, so the entire report displays a processing error. We can directly preview the main report without the subreport to test the main report. Or use the same project in those
    two versions to test the issue again.
    If there are any other questions, please feel free to let me know.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Manual Subreport Variable Counter Issue on Following Page

    I have a subreport that has a manual counter in it which counts records if certain criteria is met.  I designed the sbrpt field values to display inline with the respective lines in the main report.  I accomplished this by placing the sbrpt in the group footer section directly above the main report group footer section and setting the "underlay following sections" format.
    Like this...
    Grp Footer 2a - Subreport record (underlay format set)
    Grp Footer 2b - Mainreport record
    The subreport counter works fine until the first record appears on the next page.  Then it seems to count twice, e.g. Page 1 counts 3 records; the very next record at the top of page 2 counts as 5 instead of 4.   This issue only occurs when the first record at the top of the next page contains data that fits the criteria. 
    Any ideas out there?  I'd be glad to offer more detail if necessary.
    Thanks,
    GP Michal

    Thanks, Zack.
    I've already thought of that and am trying to resolve the issue based on that concept.  There is a complication, though.  The subreport field values may show more than one record per upper group so I really have to keep the underlay format.
    Grp H1
      Grp H2
        Detail (supressed)
      Grp F2 - 1st occurence
         Record 1                        Counter =1
         Record 2                        Counter = 2
      Grp F2 - 2nd occurence
         Record 1                         Counter = 3
      Grp F2 - 3rd occurence (etc....)
    Grp F1
    So...the only way I can think to pas the counter varible to the main report is if I pass a sum of the count per Grp 2.  Does that make sense?
    Gary

  • Delphi Crystal 10 vcl subreport link issue (on second run)

    Post Author: mkozma
    CA Forum: Other
    I have a Delphi application (Delphi 7 using Crystal 10 VCL) that calls a subreport based on a link.
    The report (and subreport) work fine for a particular id the first time but if I rerun the report a second time, the subreport does not appear.
    If I change to another id the subreport works but if I rerun it for that id or the one that failed previously, it does not display.
    The only way to get it to work is to close the application and restart it, then it works for the first time only.
    I have tried adding the closejob and closeengine functions and verified that the parameter going to the subreport is correct without success.
    I have the latest build of Crystal Reports 10 (10.0.5.1506).
    If anyone has seen this before or can point me in the right direction to solving this issue, it would be much appreciated.
    Martin

    Lindell - your response was very helpful.  I was able to create a SQL Command on the subreport and change the subreport links on the main report to use the paramters in the SQL Command.  The report is now very fast - even when there are lots of detail records on the main report.  It is properly executing the query and not reading all 2M records into memory for each subreport.
    I'm still totally confused as to why Crystal was misbehaving so poorly and changing how the subreport queried the database when the only change was the fields used for record selection on the main report.  It really looks like a bug to me, but maybe someone can still enlighten me.
    thanks again so much.  We are in Parallel testing for a production rollout - and the users are MUCH happier now!  (which of course makes me much happier!)
    Susan
    PS I was not aware of the SQL Command - had never used it before.  Took me a little while to figure it out and how to do the linking - but it is very powerful.  Thanks again.

  • Crystal Report / Subreport - Performance Issue

    I am having problems with a Crystal Report / Subreport with performance. I am using Crystal Version 11, directly in Crystal Developer.  There are no other programs involved.  I am linking to a SQL Server database using ODBC.
    I have narrowed the problem down to this:
    The main report has 4 tables.  See diagram using the following link.   http://screencast.com/t/TA9YYlwwl7
    The subreport has 1 table, this table has > 2 Million records in it.
    The main report links to the subreport with one field:
    Main report field SAMPLE.PATIENT = subreport field Z_RESULT_HISTORY.PHIN
    When I set the subreport linking within Crystal   it automatically generates the following in the record selection for the subreport:
    {Z_RESULT_HISTORY.PHIN} = {?Pm-SAMPLE.PATIENT}
    The problem is that the report execution time is dependent on the field that I am using for the record selection in the main report.
    Case I   works lightening fast:
    There are 16 records returned on the Main Report   each one of these has about 1-5 records returned on the subreport.
    {SAMPLE.PATIENT} = "MOUSEMICKEY"  and {SAMPLE.SAMPLE_NUMBER} < 200
    Case II   brutally slow   there are 51 records in the main report that qualify   with a few records each in the subreport.  By  brutally slow    I mean a few minutes:
    {BATCH.NAME} = "HEP_ARCH-20090420-1"
    In this case, I can see in the bottom right of the Crystal Preview window, that it is reading through all 2M records in the Z_RESULT_HISTORY table
    Case III   brutally slow - a couple minutes
    {BATCH_OBJECTS.OBJECT_ID} = 111
    This returns 1 record on the main report and 0 records on the subreport.  Yet I can see it reading through ALL 2 Million records before the report is displayed.
    What I can t understand is why the field used for record selection on the MAIN report is affecting the speed of the execution of the subreport.  I need the main report to be selected by BATCH.NAME   yet I can t figure out what I can change to make the report run fast.  When I record select the main report by SAMPLE.PATIENT, I do NOT see the subreport reading all 2M reocrds - the report preview is returned in less than 1 second.
    Any help would be much appreciated.

    Lindell - your response was very helpful.  I was able to create a SQL Command on the subreport and change the subreport links on the main report to use the paramters in the SQL Command.  The report is now very fast - even when there are lots of detail records on the main report.  It is properly executing the query and not reading all 2M records into memory for each subreport.
    I'm still totally confused as to why Crystal was misbehaving so poorly and changing how the subreport queried the database when the only change was the fields used for record selection on the main report.  It really looks like a bug to me, but maybe someone can still enlighten me.
    thanks again so much.  We are in Parallel testing for a production rollout - and the users are MUCH happier now!  (which of course makes me much happier!)
    Susan
    PS I was not aware of the SQL Command - had never used it before.  Took me a little while to figure it out and how to do the linking - but it is very powerful.  Thanks again.

  • Crystal Reports 8.5 Subreport Linking issue

    Post Author: Evans
    CA Forum: General
    Product: Crystal Reports 8.5
    Version: 8.5.0.217 and 8.5.3.975  (tried both)
    Patches: Service Pack 3
    OS: Win XP pro
    Database: SQL 2k
    I have a report with 3 sub-reports.  The main report has no data source, all the data is coming from the 3 sub-reports.  The main report asks for 4 parameters and these are passed to the sub-reports.  That part is going ok. 
    The issue is that I also need to pass in a static value for the last parameter of each of the sub reports.  Each of the sub reports is pulling data from the same stored procedure where the last parameter is a flag to tell the stored procedure which portion of the data it needs.  I created 3 formulas with the values of 1.00, 2.00, and 3.00 and I was passing these to the sub-reports.  The issue Iu2019m running into is that CR isnu2019t attempting to run the stored procedure if I link in those formula values.  Itu2019s not that CR is trying to run the stored procedure and failing, itu2019s not even trying.  If I set up a parameter and link it then it runs, or if I donu2019t link anything to the last parameter of the sub-report it will run (in both cases it will prompt the user for the last parameter).  Because of the simplicity of what Iu2019m trying to do it feels like Iu2019m running into a bug.  Any help would be appreciated.

    Post Author: Evans
    CA Forum: General
    Originally the stored procedure had the last parameter as an integer.  I tried everything with the formulas, CDBL(1.00)  ToNumber(1.00)  1.00  1  hoping it just wasn't recognizing that the value needed to be a number but nothing worked.  I changed the stored procedure to require a VARCHAR for the last parameter, updated the report and it worked for me. 

  • Spacing issue when importing subreport

    Hi All,
    I'm trying to build a .NET web application that generates the report at the runtime and dilvered via the CrystalReportViewer web control. I have created a 'Main' report to serve as the container and also a number of component reports that to be imported as subreports based on user input.
    A new section is generated for each sub resport and added into the 'Details' section of the main report at runtime.
    It all work fine and well except that there are large amount of empty space exsits on the end of some report pages. I have noticed this happens when the first 'Section' of the next page has a bigger 'Height' than the residue space. It appears that CrystalReportViewer do not want to break up the 'long' section to across 2 pages. Is it possible to modify this behavior and display sections 'continuously' ?
    I'm using the CR4VS2010 release.
    Many thanks.
    Edited by: troytancn on Jan 12, 2011 7:02 AM

    Thanks Ludek.
    All sections in each subreport has 'Keep Together' unchecked and there is no empty space at the bottom of any subreports.
    I've also tried to variate runtime input so the generated report display subreport in different order. It appears that the space gap only related to the space left at the bottom and the height of the next 'subreport' that displayed on the following page.
    Is there a 'Keep Together' attribute, or similar, for imported subreport object? The class type of the subreport is SubreportClientDocument .

  • Shared DateVar in Subreport and datediff calculation in Main Report?

    Hello experts,
    I am using CRXI sp2.  I have a report that contains two subreports for different dates in the same date field that are identified by a Service Code.  The subreports have been placed in the same group footer 1a to be displayed and the calculation resides in the main report group footer 1b.  The shared variables are as follows:
    whileprintingrecords;
    shared datevar Codedate5473;
    Codedate5473:={@Codedate5473};
    and
    whileprintingrecords;
    shared Datevar Codedate5623;
    Codedate5623:={@Codedate5623}
    The main report has the following calculation is in group footer 1a.
    Whileprintingrecords;
    Shared numbervar daysbetween;
    if (isnull({@Shared 5623})or isnull({@Shared 5473})) then 0
    else daysbetween:= datediff("d",{@Shared 5623},{@Shared 5473})
    This returns negative numbers as well as calculations where one of the shared variables is null.
    I reset the calculation in the report header as well.
    Thanks for your help in advance.
    Kevin

    Hi Kevin,
    I can reproduce your issue, As per my knowledge the crystal will make some issues in null value computation as well as  shared variable  computation
    In your report i can see , you tried to access values from subreport to main report through shared variable. that will make problem. we can access values from main report to subreport without any issue using shared..dont ask me the reason..i am not the right person to say that... lol.
    The another wrong thing  i was found in your formula is , you are not resetting the shared variable any where.. so once the date field is null, the shared variable returning the previous value.
    So this is the solution for you..
    1,You have to add one more subreport for displaying your result., Lets say 'Sub report3'
    and create a formula, like.(Same which you have write before for the result)
    shared datevar Codedate5473;
    shared Datevar Codedate5623;
    numbervar daysbetween;
    WhilePrintingRecords;
    daysbetween:= datediff("d",Codedate5473,Codedate5623);
    daysbetween;
    2, Re- write your first two formulas like this
    For Subreport1,
    WhilePrintingRecords;
    shared dateVar Codedate5473;
    if isnull({Codedate5473}) then
    Codedate5473:=date(0,0,0)
    else
    Codedate5473:=date({Codedate5473});
    For subreport2
    WhilePrintingRecords;
    shared dateVar Codedate5623;
    if isnull({Codedate5623}) then
    Codedate5623:=date(0,0,0)
    else
    Codedate5623:=date({Codedate5623});
    Hope this will works for you,
    Cheers,
    Salah.
    Edited by: salahudheen muhammed on Aug 7, 2009 1:05 PM

Maybe you are looking for

  • OB52 AND OB08 transactions not working in QAS

    Hi All, My client is upgrading from 4.7 to ECC 6.0 Due to not modifiable status two transaction could't be done in the new QUALITY System. This is IMG activity under the following. 1. OB52 :- Open and Close Posting periods (FA -> FA Global Setting ->

  • Is there some time setting in sql*plus or Oracle9i

    Hi guys, I just run the following simple query in sql*plus in oracle 9i: select * from pers ; The table is around 190k rows. But it always stops running after 28-30minutes. No error message displayed and the whole sql*plus just hang on there.... The

  • Bursting : printing using LPD protocol?

    Hi everyone, I am having trouble sending my .pdf output to a printer and wondered if anyone has used LPD protocol instead of IPP. I am on 5.6.3 and read that it may be supported on this version. If anyone is using this, an example from your control f

  • Trying to decide between iphoto & aperture

    Hi gang... I give up. I'm a new D-SLR user, shooting the majority of my pictures in NEF, so I have more info to fix my shooting errors in the computer. I'm comfortable with iPhoto as an organizational tool, posting to iWeb, iMovie etc.. but I like wh

  • New to RSS; need help with it

    Hello all! I have a .asp based shopping cart e-commerce web site I edit in Dreamweaver mx 2004. What is the easiest way to set up an RSS feed so I can get it up on places like feedburner to try to garner more traffic?