Solved

Crystal Reports 8 - How diagnose overflow error?

Posted on 2001-08-27
9
1,401 Views
Last Modified: 2007-11-27
I have a CR 8 report that gets a "Seagate Crystal Reports: Database Error" type of
error, indicating  an arithmetic overflow in converting a numeric data type.
How do I pinpoint which field it is? There don't appear to be any diagnostic capabilities
that allow me to trace the execution of the report.....
0
Comment
Question by:vd
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 12

Expert Comment

by:DRRYAN3
Comment Utility
I found a reference to a numeric overflow here http://support.crystaldecisions.com/kbase/c2007737.asp but it appears to apply to xBase databases using a bigint value.  Is this what you are using?  There are a number of references to numeric overflow in date/time values.

In general, you won't be able to pinpoint the large value using CRW.  Go back to the source of the data if possible and query on the TOP N values in your numeric fields.

DRRYAN3
0
 
LVL 7

Expert Comment

by:EYoung
Comment Utility
Adding to DRRYAN3:  When I get this type of error and it is not obvious what is causing the problem, I print the relavant fields on the report to see if what I thought was suppose to print actually did print.

Also, is the error occurring on the first record or somewhere in the middle of the record set?  If at the first, then there may be a problem with all the records (or most anyway.)  If later in the recordset, then visually scan the relavant fields for anomolies.

Best of luck.
0
 

Author Comment

by:vd
Comment Utility
I forgot to mention: these reports run off SQL Server stored procedures.
0
 

Author Comment

by:vd
Comment Utility
EYoung: Thanks for your reply. The error occurs after I've specified the values
of parameters, but the report never displays.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 12

Expert Comment

by:DRRYAN3
Comment Utility
vd

CRW does not perform any data access until the parameters have been specified.  The behavior you are seeing is to be expected.

In my opinion, you really have no choice but to go back to the data to look for exceptionally large (or small) values which are causing the numeric overflow.  Should your data include numeric values of this magnitude?

DRRYAN3
0
 
LVL 7

Accepted Solution

by:
EYoung earned 50 total points
Comment Utility
As DRRYAN3 said, you will need to look at the data in SQL.  Either run the Stored Procedure from the SQL Server Query Analyzer and visually scan the data, or add all the fields used to the CR8 report and run the report from within CR8 instead of VB.

Look for large numbers, nulls, divide by zero, non-numeric characters in numeric fields, spaces, etc.  In short, look for exceptions.
0
 

Author Comment

by:vd
Comment Utility
Thanks, that was the answer.
0
 
LVL 12

Expert Comment

by:DRRYAN3
Comment Utility
Hey vd

Why did you accept a comment as answer which was an echo of my suggestions?  Just curious.

DRRYAN3
0
 
LVL 2

Expert Comment

by:Lunchy
Comment Utility
I was asked to review this question and in doing so, I think a point split would be more in order as both experts provided very useful information here.  I have posted points for DRRYAN3 here:

http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=crystal&qid=20176704

Doing manual adjustment of question points as well.

Lunchy
Friendly Neighbourhood Community Support Moderator

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

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. …
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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