Solved

Crystal Reports 8 - How diagnose overflow error?

Posted on 2001-08-27
9
1,443 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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