?
Solved

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

Posted on 2005-04-05
5
Medium Priority
?
1,423 Views
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;

// CODE

ReportDocument rd = new ReportDocument();
rd.Load(Server.MapPath(Global.REPORTS_DIRECTORY + fileName));
rd.SetDatabaseLogon(username,password,server,initialDB);      
// SET REPORT PARAMETERS
crViewer.ReportSource = rd;
crViewer.DataBind();

Any ideas what could be wrong (since it does run fine in the CR Program)?
0
Comment
Question by:jellis613
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 2

Author Comment

by:jellis613
ID: 13708928
I found this KB article on the CR website that seems to apply to my case:
http://support.businessobjects.com/library/kbase/articles/c2014164.asp

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?
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 13708985
I would tend to agree.

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

This may help
http://support.businessobjects.com/library/kbase/articles/c2010371.asp

mlmcc
0
 
LVL 2

Author Comment

by:jellis613
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).
0
 
LVL 2

Author Comment

by:jellis613
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.
0
 

Accepted Solution

by:
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
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

777 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