Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DB change, can't get data any more?

Status
Not open for further replies.

CraigBest

Programmer
Aug 1, 2001
545
US
Had prepared a report on an oracle 8 database, using the CROR8 ODBC driver. Everything was working fine until this morning, when we found a problem with a field in the table the report uses. After we fixed the change, the report no longer shows any data.

If we browse the fields from the Field object selector or Formula window, we can see the data (field by field) fine. but nothing is filled when the report is run.

Any idea on how I might be able to fix this?
 
Craig-

Are you saying you modified the database itself? Not the data in the database but the individual field names, lengths, data types and/or properties?

If so you need to verify the database before crystal can read it. Click on Database, verify database. If any of the fields used in the report have changed names, you will be prompted togo through a field-to-field mapping process.

Please let me know if you have any questions.

Software Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
dgillz,

<< Are you saying you modified the database itself? Not the data in the database but the individual field names, lengths, data types and/or properties?

If so you need to verify the database before crystal can read it. Click on Database, verify database. If any of the fields used in the report have changed names, you will be prompted togo through a field-to-field mapping process.

Please let me know if you have any questions.>>

Sorry, I should have said. Yes, I tried verifying the database, that didn't work. I eventually dropped the tables and reaquired them using the add database table function. After deleting and replacing all of the database fields on the report, it worked again. I tried a lot of things but couldn't get the data to read back out again until I did this.

We made changes to the data table, not the data within. None of the fields used in the report were changed, but we changed the size of one column and deleted another.

I'd still like to get to the bottom of this because I know there will probably be more changes in the future and I don't like the idea of having to rewrite all my reports every time we tweak something.
 
Database, verify database is a part of crystal reports for exactly the reasons you describe - to avoid deleting and re-adding the database(s). If the verify database routine did not work I am at a loss. I would call Crystal Decisions.

Software Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
Yes, verify should work. But, you could have tried setting the location of the problem table to another table, and then setting it back to the target table. This would cause CR to do the same amount of work as adding a table but you don't have to re-add fields. You will need to create a temporary table that has all of the same fields in it to use as the intermediate table, otherwise CR would make you remap all of the field. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top