Solved

Dive By Zero Error Encountered

Posted on 2014-01-20
5
255 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

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

Suggested Solutions

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…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 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

21 Experts available now in Live!

Get 1:1 Help Now