Solved

Crystal Reports 8 - How diagnose overflow error?

Posted on 2001-08-27
9
1,424 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
ID: 6429044
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
ID: 6429557
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
ID: 6432257
I forgot to mention: these reports run off SQL Server stored procedures.
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

Author Comment

by:vd
ID: 6432267
EYoung: Thanks for your reply. The error occurs after I've specified the values
of parameters, but the report never displays.
0
 
LVL 12

Expert Comment

by:DRRYAN3
ID: 6432453
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
ID: 6433239
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
ID: 6440984
Thanks, that was the answer.
0
 
LVL 12

Expert Comment

by:DRRYAN3
ID: 6441240
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
ID: 6443591
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

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…
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 …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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