Crystal Reports Help

This is for any Crystal Reports guru’s out there.

I’m creating a report based off of a sql query. If I use the report expert, select my stored procedure, when I select fields, they are all there, however, I want to group by a certain field named “CRName” but it’s not a choice for a field to group by and I can’t figure out why since it’s just a string field.

For a little more background, I already have a report based off this sql query, but we wanted to test a slightly different report so we created a new sql query in a test database that adds a location parameter. The old query works fine, but as soon as I set location to the new stored procedure, it no longer lets me group by that field. Actually, when I set location it tells me that CRName is an unmapped field and wants me to map it to something, but there aren’t any valid choices on the right hand side (even if I remove type match). Again, the queries are the same except the second one adds a location parameter.

Anyone have any idea’s because I’ve looked everywhere I can think of for an answer and just can’t figure out what it’s doing.

What version of Crystal are you running? MS-SQL Server?

Assuming the field still exists in the new stored procedure, the first thing I would try is the Database->Verify Database function.

Check your stored procedure again - are you sure there isn’t anything funky that would cause the CRName field to not be returned in your query? Did its name change maybe?

It’s worth noting that my experiences with Crystal Support via email have been very good. I would contact them if the problem persists (assuming you have a licensed copyof the software).

Crystal 8.5, SQL 7. Database is up to date and I went line by line down the query verifying it with the old query.

I think I am going to type out an email to them to see if they can provide any insight. However, if anyone has had a similar problem, please chime in.

Figured it out. Can’t group on a memo field without a formula.