Solved

Crystal Reports Stored Procedure Prompts Twice Runs Twice

Posted on 2009-04-07
2
1,763 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

14 Experts available now in Live!

Get 1:1 Help Now