Solved

Crystal Reports Stored Procedure Prompts Twice Runs Twice

Posted on 2009-04-07
2
1,784 Views
Last Modified: 2012-08-14
I am working on some legacy Crystal Reports and was not around when they were created (they could have been created in Crystal Reports XI SP1 but we currently develop in Crystal Reports SP5 so these could have been initially created by SP1-SP5).

I have added some code to each of the Oracle Stored Procedures to audit every time they run to enable me to get stats on usage and time taken.  Some of the reports are calling the same Stored Procedure twice (about 8 reports do this out of 50 I am working with and there appears to be no difference in the type of reports they are and none have sub-reports).  I know this because there are two distinct entries in my audit table, one starting immediately after the other.  When I run the reports , I get two 'Enter Values' prompts for the parameters, one after the other, prompting for the same parameters.  It is almost as if it is verifying the data source before actually running the Stored Procedure but is actually carrying out the Stored Procedure run both times and returning records both times.  The number of records is correct ultimately so it is not combining info, just doing a second call to the same Stored Procedure.  I have looked at the Parameter fields and there is only one copy of each (so nothing obvious like duplicate parameters).  There is only reference to one Stored Procedure in each report.   If I rebuild the report again from scratch, it only runs once as I want but surely there must be something hidden in Crystal which is telling it to run twice which I can simply change to stop this happening.  Any suggestions where I might look?
0
Comment
Question by:hydev
2 Comments
 
LVL 26

Accepted Solution

by:
Kurt Reinhardt earned 500 total points
ID: 24087800
Some things to check:

1)  Navigate to File|Report Options and see if either "Verify on first Refresh" or "Verify Stored Procedures on First Refresh" are checked.  You'll need to do this for each report that has the issue, because report options are specific to each report.

2)  Are you sure there aren't any hidden subreports?  I've seen people design a subreport so small that you can't tell what the object is.  An easy way to see if there's a subreport is to navigate to Edit|Subreport Links

~Kurt
0
 

Author Closing Comment

by:hydev
ID: 31567523
Kurt,

top job!  Both were checked.  I had looked at those as well, they just didn't register in my head.  Easy when you know how...

Thanks again.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now