Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index does match the table
Message
From
23/09/2005 12:58:55
 
 
To
23/09/2005 12:25:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01052434
Message ID:
01052459
Views:
9
This is a bug that is fixed in VFP9 when it occurs due to a table-buffered grid in a multi-user environment. See:

http://support.microsoft.com/default.aspx?scid=894011

Does adding a dummy record, deleting it, and then issuing a pack and reindex fix it?

I once read an article on foxite about it recommending an on-the-fly fix (I don't have a link to the article anymore but I have my notes):

Create a cross-reference free table to save all of the indexing parameters:

1. Table name
2. List of all fields for each table
3. Names of index tags for each field
4. Index key for each tag

Create an error trap routine using the standard ON ERROR DO ErrHandler WITH syntax and trap for error 114. When it traps for that error it should run a function such as RepairCDX(qcDBF) that rebuilds the index based on the entries in the table you cross-reference table you created above or delete the cdx and reacreate using something similar.

For free tables, we do something similar. We have a program that creates another function that we can call that knows the table structure and indices for each table. We then backup the original table, delete it and the index file, and run the functions passing the tablename and it creates a new table and index on the fly. We append the records from the backup. For tables that belong to a database, we have recently started using SDT and are very happy with it.



>we have some large tables in our database and seem to get Error #114 Index does not match the table pretty often.
>
>What may cause this error? Is this a common error with Foxpro tables when they are larger? How can this be avoided?
>
>Thank you
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform