Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


"Invalid group condition" Error opening Report in ASP.net

Posted on 2005-04-05
Medium Priority
Last Modified: 2012-06-27
I am trying to open a report in ASP.net. This report opens and runs fine using the Crystal Reports Program (Professional). It has two subreports that it uses. Main datasource for the report is a stored procedure (SQL Server). When I try to run it in my aspx page, I get the following error:

CrystalDecisions.CrystalReports.Engine.InvalidArgumentException: Error in File (filepath): Invalid group condition.

Here is the code I am using to load the report:

protected CrystalDecisions.Web.CrystalReportViewer crViewer;


ReportDocument rd = new ReportDocument();
rd.Load(Server.MapPath(Global.REPORTS_DIRECTORY + fileName));
crViewer.ReportSource = rd;

Any ideas what could be wrong (since it does run fine in the CR Program)?
Question by:jellis613
  • 3

Author Comment

ID: 13708928
I found this KB article on the CR website that seems to apply to my case:

I gather from this article that the only things for me to do are:
1) Get CR Advanced or Developer Editions
2) Develop the report completely within VS.net

Has anyone else had a similar problem? Any other solutions other than the ones above?
LVL 101

Expert Comment

ID: 13708985
I would tend to agree.

You also need to set the login information for the subreports.

This may help


Author Comment

ID: 13709060
I didnt see anything on that page about setting login information for subreports. In any event, I dont think that this is the problem here (I previously was experiencing an error with the login, and after I got my ServerName in the proper syntax, that error went away and was replaced by the Invalid Group error. If there was an error with the login for a subreport, I assume that it would have been thrown).

In the page you referenced, it says "If you are using a web application make sure that you do not specify or call the DataBind in your code as this will nullify the code above." I took the DataBind method out of my code - still doesnt work (same error as before).

Author Comment

ID: 13710302
The Crystal Reports KB article I cited above was correct - Installing CR Professional did the trick. I did not need to provide any login information for the subreports.

Accepted Solution

ee_ai_construct earned 0 total points
ID: 13711483
Question answered by asker or dialog deemed valuable.
Closed, 250 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question