devxlogo

“Index is out of date” message appears when searching Paradox database

“Index is out of date” message appears when searching Paradox database

Question:
When I search in a Paradox database when I use Delphi, I get the message “Index is out of date.” Why?

Answer:
This error message is usually attributed tomaking a copy of the table to a new directory and overwriting the old copy. Butthere’s a twist: Not only do you have to copy the table itself, youmust copy all the files with the same name as your table to the newdirectory. This includes all files with the extensions: PX, XGn, YGn(where n = 0, 1, 2 depending on the secondary index), and TV (I think theremight be a couple more).

For example, if I have a table that has a primary index, and a couple ofmaintained secondary indices associated with it, I’d have a set of filesthat looks like this:

MyTable.DBMyTable.PXMyTable.XG0MyTable.XG1MyTable.YG0MyTable.YG1
To properly use the table in different directories, I’d have tocopy all the files above to the new directory, overwriting any existingfiles. If I don’t do this, I’ll get an”Index out of date” error when I try to access the table.

The only other reason you’ll get this error is if one of your indices wascorrupted in some way. To correct the problem, open the table in restructure mode in the Database Desktop, redefine yourindexes, then re-save the table.

See also  5 Tips to Manage a Remote Workforce
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist