Article ID 1839
Article Title ERROR: Error number out of range
Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=1839
KBase Category Crystal Reports
Date Created 06/19/2003
Last Edit Date 08/03/2004


Article Text
PROBLEM:
I am getting the error message: Error number out of range, Status 500 when running a Crystal report from VDF. What does this error mean?
The error text "Error number out of range" can also show up in other error numbers, such as 4405.


SOLUTION:
This is a general error message that indicates that Crystal's error number has exceeded the number 599.

Crystal Reports 9 can generate error numbers above 599. In Visual DataFlex, CrystalReport.pkg defines the minimum and maximum for error numbers as:

#REPLACE MIN_CRW_ERROR_NUM 500
#REPLACE MAX_CRW_ERROR_NUM 599

With this definition, every error number from Crystal that is above 599 will generate the "Error number out of range" message.

In order to get a more descriptive error message, Change the MAX_CRW_ERROR_NUM constant in CrystalReport.pkg to 998. Then, precompile all packages and recompile your application.


NOTE:
Error number 998 is the last one used in Crystal Reports verison 9. You can find this information in the Legacy.chm help file (Crystal Report Engine Index | Print Engine Constants | Chart Options Constants | Error Codes) installed with Crystal Reports Developer Edition.

The MAX_CRW_ERROR_NUM constant was increased to 999 in Visual DataFlex 10.0.


Contributed By:
Ulbe Stellema
Company: Data Access Worldwide
email: ulbe.stellema@dataaccess.eu
Web Site: http://www.dataaccess.eu


Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2024 Data Access Corporation. All rights reserved.

The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.