Re: C5 Error on one record
- From: "Lew" <lew@xxxxxxxxxxx>
- Date: Wed, 24 Sep 2008 19:22:14 -0400
Well, stick with the scan for now ... try to find if it's a particular record somehow ... add nofilter to all of the sql selects involved, check for triggers & screwy things like field valid functions that the dbc may be throwing in...
"Tom Libby" <tlibby@xxxxxxxxxxxxxxx> wrote in message news:%23W7OdpkHJHA.3960@xxxxxxxxxxxxxxxxxxxxxxx
It is a Parent -> Detail -> Sub Detail relationship using text boxes and combos on the header and grids for the detail and sub detail. Some times the C5 error occurred when you navigated to the header record other times it was after working with the data.
No FOR clauses on the indexes.
I wrote a routine to inspect every character in the tables and all the characters where fine, A-Z and 0-9 with a few / and #.
I did the following none of which helped:
1. Packed the tables and then rebuilt the indexes from scratch I did not use REINDEX.
2. Copied the data out to txt files. Zapped them and imported the data from the text file.
3. Deleted the tables, rebuilt them and then imported the data from the txt files.
The code was originally always crashing on the same line of code which was a SUM command, I changed that to a SCAN
and then the user was able to get further with using the form but always came back to the C5 error. This time it was not on the same line of code but just randomly.
One thing I failed to mention was the data is copied from the three tables into cursors with SQL SELECT statements so the data they are working with is in cursors and not the actual tables themselves.
I have 8 users using this form from 8:30 AM to 7 PM with no other problems. It is just this one set of data.
I do plan on getting back to this when it calms down here. I am the only developer here, and they have more pressing things for me to do.
Thanks
Tom
"Lew" <lew@xxxxxxxxxxx> wrote in message news:eX2q2XdHJHA.1156@xxxxxxxxxxxxxxxxxxxxxxxIs the 'going to a record' in a browse window, a form or what? What happens if you delete the bad rec & pack/reindex (save your backup, of course)? Do your troubleshooting with set deleted off. Do the cdx's have for clauses? Also, kill any on error routines & triggers that might be firing behind the scenes & masking what's going on.
"Tom Libby" <tlibby@xxxxxxxxxxxxxxx> wrote in message news:O2k6YZBGJHA.2112@xxxxxxxxxxxxxxxxxxxxxxxWe have a form in VFP7 SP1 that when ever a user goes to a certain record they eventually get a C5 error, It is only happening on this one record. I have looked for data corruption, rebuilt the indexes, and copied the data out of the table and back in again. I also ran Recover form Abri and it reports no errors with the tables.
The C5 was occurring on a SUM command on a temporary cursor. I found a KB Q327858 so I changed the SUM to a scan but that had no effect.
I am planning on deleting the tables from the DB and building them from scratch and then appending the data back in.
Anything else I could/should be doing?
Thanks
Tom
.
- References:
- C5 Error on one record
- From: Tom Libby
- Re: C5 Error on one record
- From: Lew
- Re: C5 Error on one record
- From: Tom Libby
- C5 Error on one record
- Prev by Date: Re: Disable/Enable Controls
- Next by Date: Empty column value in cursor
- Previous by thread: Re: C5 Error on one record
- Next by thread: Report controls toolbar missing
- Index(es):
Relevant Pages
|