Error The table <Table Name> could not be found when viewing a Crystal report created against an OpenEdge 10.1B database

« Go Back


EnvironmentOpenEdge 10.1B
OpenEdge 10.1C
OpenEdge 10.2A
Crystal Reports
Question/Problem Description
Using Crystal RDC ActiveX to display a report via 4GL
Programmatically overriding the database connection used to create the report
Error occurs when loading the report and no data is returned
The table <Table Name> could not be found
Table is present in the database
Report previews correctly within Crystal Reports itself
Report was created using the Progress OpenEdge 10.1B driver
Reports created using previous versions of Progress / OpenEdge are displayed correctly
Steps to Reproduce
Clarifying Information
Error Message
Defect/Enhancement Number
OpenEdge 10.1B SQL introduced a Catalog property that reflects the actual name of the database, for example SPORTS2000. The Catalog property is not part of the standard Connection String / ConnectBufferString setting used by Crystal Reports and is therefore not normally overridden. The report therefore still point to the original database; checking QUALIFIERS(1) for each table will display the name of the database used when the report was created.

 This is visible in Crystal Reports when connecting via ODBC and in the Properties of each table in the Set DataSource Location dialog. For example, when establishing the initial connection, there are now 4 levels displayed:

Pre-OpenEdge 10.1B:

OpenEdge 10.1B and later:
Override the Catalog name using either of the following methods:

Option #1
chReport:Database:Tables(i):Location = "<Database Name>".

Option #2
chReport:Database:Tables(i):SetTableLocation("<Database Name>","","").

Refer to solutions P55350 or P115877 for full code samples.
Last Modified Date9/13/2015 6:34 PM

The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.

Was this article helpful?


Your feedback is appreciated.

Please tell us how we can make this article more useful.

Characters Remaining: 1025