Occasionally, Logistics repair automatically a corrupted table when opened.

If it's not the case then the following procedure repair the corrupted table.

1. Open the table in exclusive mode

Go to menu Utilities > Macro command and type the following command in the Order tab :

USE "c:\temp\dochead" EXCLUSIVE

Next click on the DO button.

This message confirms that the table is well corrupted.

2. Deactivate controls executed when opening table

In the same screen, type the following command and next click on the DO button :

SET TABLEVALIDATE TO 0

And retry the opening table with the following command :

USE "c:\temp\dochead" EXCLUSIVE

(minus) At this step, if the table isn't opened then the problem is more serious. And in this case, this table must be sent at Logistics team to repair with appropriate software.

Otherwise, if the table is well opened then move to the step 3.

3. Pack the table

Type the following command and next click on the DO button :

PACK

This operation forces to rewrite the head of the DBF file.

  1. Quit Logistics.
  2. Next retry the step 1.
  3. If the problem isn't solved then it's possible that the index file isn't yet valid. In this case, remake the step 2 and next move to the step 4.

4. Regeneration of index file (CDX)

At this step, the table has been opened in exclusive thank to the mode without controls when opening.

Add a record in this table with the following command :

append blank

If there is the following message then it's well an index problem. Otherwise it's an other problem and so this table must be sent at Logistics team.

Re-click on the DO button to force the add of a record. And test this added record by viewing the table with these two commands :

go bottom

After :

browse normal

Delete empty record(s) at the end of the file by checking the cell of the first column. This first cell becomes black.

Exit this browse window with the cross.

Next, regenerate the CDX file with this command :

REINDEX

The CDX file has been regenerated.

Quit Logistics and next remake the step 1. Now the table should be correctly opened.

Execute a database update with the menu Utilities > Database > Updating. This operation re-indexes also all others files.