Solved

Dive By Zero Error Encountered

Posted on 2014-01-20
5
257 Views
Last Modified: 2014-02-07
Hello All,
I have report whose data is got from a storeprocedure.When I execute the proc I dont get any error. But when I preview the report it gives a :
Divide by zero encountered.
Please help.
0
Comment
Question by:Star79
  • 2
  • 2
5 Comments
 
LVL 11

Expert Comment

by:John_Vidmar
ID: 39795086
In Crystal Reports, review your report formula's to see if you are using division, and alter them to do something different when zero is in the denominator.
0
 

Author Comment

by:Star79
ID: 39795100
The entire data set is returned from the proc there is no formula been built in the report which is quite confusing for me.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39795377
There is probably a formula that does a division.

If it is a Crystal error, it should take you to the formula that has the error.

The usual fix is to change the formula from

   A / B

to

If B = 0 then
  0
Else
   A/B

mlmcc
0
 

Author Comment

by:Star79
ID: 39795482
mlmcc,
iam surprised that the formula is present in the storeproc only and when I exceute the proc it runs but when I run the report ,it gives this error.The report has no formula field.
Please advice
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39795639
DOes the report filter the data?
You may need to change the SP to test for the 0 divide

mlmcc
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Set a new Database Connection for the SQL Command 22 63
Mask on Parameter CR2008 28 51
display n/a in column 2 26
Pull date to Group header 6 29
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…
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…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

813 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

8 Experts available now in Live!

Get 1:1 Help Now