Knowledge Base Article #320965
How do I repair a damaged ToDo list database?
While typically a rare occurrence, it is possible to damage any database file that is active when a task is ended prematurely or a system crashes. Should a Time & Chaos To Do database be damaged by a similar situation on your PC, we do have a repair tool built into Time & Chaos that might provide a better solution than restoring an old backup. It is best to have Time & Chaos 5.4.0 or newer to do the repair, as some of the options you will see mentioned in this article are only available in these newer versions.
Before attempting a repair, you MUST make certain that you have a current backup of your data files (an option under the File menu on the main screen), and especially if you are on a network, you must make certain you are the only person using this database while you repair it.
If both of these items are covered, then you can start the two-step repair process. You will need to open the To Do search and report screen to make the repairs. You can find this by right-clicking in the to do list window on the main screen and choosing Search from the pop-up menu.
Once the search screen opens, write down the record count at the top. This will be our target number for what we hope to find.
Step 1: Press ALT and F5 together. This will bring up a message to confirm a Map Rebuild operation. Click YES, then wait for a message asking you to Exit and Restart Time & Chaos. Once you see it, follow the instructions and exit out of Time & Chaos completely. Once Time & Chaos is closed, you can click on the short cut to start it again, then get back to the to do search screen.
Step 2: Press ALT and F12 together. This will bring up a message to confirm a ToDo List Compaction/Rebuild operation. Click yes to start and you should see it begin to count as it finds any records that can be recovered.
Once complete, it will show you a message with the number of records it read and the number of records it was able to write. If these numbers match or are close, click YES to replace the damaged files with the rebuilt ones. If the numbers are not close, you can click NO to force it to take one last look for any other items it might find. After you have looked twice, the number of written records it comes back with will be the best it can do with these data files.
If these options are unable to repair your database to your satisfaction, there are a few final options for you. First, in the download section of our web site at www.ChaosSoftware.com, we have a Database Repair Utility, a free and small download. If you are unsure where your Time & Chaos database resides, open the data within Time & Chaos, click on File and Preferences and click the Use Current Folder button. Write down the path that appears there and click Cancel unless you want this database saved as a default.
Then, run the Database Repair Utility. You should see the icon for this on your desktop once the program is installed. Within the program, click the Browse button and browse to the database location. In the case of a phonebook for instance, you would browse to the ~phone file there but you could also browse to the ~appt or ~todo files for instance. Once selected, click on the Rebuild button. Let this process complete (a message should appear) and then click Reindex. Let that repair as many records as possible. When that process completes, close the Repair utility and restart Time & Chaos. When you come back up, check that your records do work correctly. If not, please let me know.
Finally, if this method is unable to repair the damage, your last option would be to restore an old backup copy of your data, either from a Time & Chaos backup or a backup you or a system administrator may have made outside of our program.
Keywords: damaged, rebuild, todo, to do list, alt, f12, f5, reindex, repair, database, data, corrupt
Modified Date: 4/13/2016
wrt
Click here to return to the Tech Support search screen.