« Adding Textboxes to a Microsoft Dynamics CRM Form | Main | Increase CRM SQL Server Timeout Settings »
July 28, 2008
TrackBack
TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e54fb34b6f883300e553db11a58834
Listed below are links to weblogs that reference Resolving "Error: Subreport Could Not Be Displayed" in Microsoft Dynamics CRM 4.0:
Comments
Verify your Comment
Previewing your Comment
This is only a preview. Your comment has not yet been posted.
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.

My problem with this-
I edited the account overview sub-report in Visual Studio and saved it as a different name, and uploaded it into CRM. But, it won't let me select a parent account-the magnifying glass is grayed out.
Any ideas what I'm doing wrong?
Posted by: Tracy | July 29, 2008 at 12:19 PM
Make sure that your newly renamed subreport is referenced in the parent report, delete the parent and the sub-report from crm, upload the parent report again, then upload and link the sub-report.
Sometimes when you edit reports in CRM and upload a new rdl, they retain the old settings. I don’t know why, but sometimes the settings stick. Typically deleting these reports and recreating them fixes any of these problems.
Posted by: Joel Lindstrom | July 29, 2008 at 12:24 PM
So, if I understand it, the only way for the subreport to be shown is linking subreport to parent report. However, CRM existing reports include subreports that are not uploaded. How does that work then? What I need to do is uploading a report which includes a subreport without uploading the subreport itself. Is this possible? We need to do this in order to prevent customers from using the subreport as standalone.
Thanks in advance
Posted by: maria | March 15, 2009 at 12:17 PM
Hi Maria,
That’s a great question.
Actually, all of the subreports used by the standard CRM reports are published through CRM; however, they are not revealed through the “Available reports” view. For example, if you change your view of reports to “All Reports, including sub-reports,” you will see the sub-reports used in the standard CRM reports, such as the “Account Distribution Detail” subreport, which is a subreport to the Account Distribution Report.
The way that you make a subreport not available from the “Available Reports” view is to make sure that when you upload the report you don’t select anything in the “Display in” lookup under the categorization section of the report information form.
Once you do that, your subreport will not be easily located by most users. There are a couple of other things that you can do to make it hard to find or unusable unless run as part of the master report.
For example, you can give your subreport a different name that your users won’t realize is the subreport.
Also, using the “hidden” property on the report, you could make your parameter on the subreport accept null values, then using the hidden property of the report, have it hide the contents if the parameter is null.
I will do a follow up post and include more details.
Thanks for reading the blog
Posted by: Joel Lindstrom | March 16, 2009 at 09:46 AM
Posted an answer to Maria's question here:
http://blog.customereffective.com/blog/2009/03/preventing-users-from-executing-subreports.html
Posted by: Joel Lindstrom | March 31, 2009 at 02:26 PM
It looks like it isn't possible to have a sub-report used by multiple reports... Is that true? For example, I had created a standard coversheet that I thought could be used by many reports. It looks like I can only choose one report at a time to be used as its parent report, and any others get the "Error: Subreport..." message. Is there a better way to accomplish what I was try to do?
Posted by: Kenny Della Valle | July 17, 2009 at 06:01 PM
Hi Kenny,
You are probably right that you cannot have a CRM uploaded subreport associated with multiple parents; however, there is another way to do it--if you have a subreport that needs to be called from links on multiple reports, upload it directly to the report server, then use the jump to URL action rather than the jump to report action, and specify the url of the report on the report server. If you need to pass parameters, you can still do this by appending them to the url.
Of course, if your cover subreport is embedded in the report, then you probably won't be able to do it, because you don't have an option (at least in SRS 2005) to display a web site in a report.
In that case you are probably best copying your subreport for each report, or including that in the layout of the report.
Posted by: Joel Lindstrom | July 24, 2009 at 12:31 PM
What needs to be done if a subreport runs fine for the system administrator role but gives an error "Subreport could not be shown" for the sales person role in crm?
Posted by: karan | September 24, 2009 at 05:06 PM