Using 4D Tools to repair data
4D Tools is a program that can help you fix damaged files and database structures.
Download 4D Tools

Download 4D Tools from the above URL

Unzip the 4D_Tools.zip folder and run 4DTools.exe
Open the structure file "CurrencyXchanger.4DB"

The structure file needs to be opened with 4D Tools. Locate the file called "CurrencyXchanger.4DB" and open it using 4D Tools.
4D Tools at first glance

There are 4 tabs in 4D Tools: Information, Maitain, Repair, and Structure. The maintenance tab is to check for damaged records and index tables. Index tables are used by the database for searching important keywords.
Check the records and Indexes

Click on the second tab (Maintain) and then click Check All.
Make sure everything is OK

After you check the structure and indexes, 4D Tools should display the above message.
Check the Structure File only

You can also check the Structure file separately by going to the "Structure" tab and pushing "Check..."
Make sure all steps are okay

4D Tools should display a checkmark for every check perfomed.
Structure OK

When a problem is detected by 4D Tools

When a problem is detected 4D Tools will notify you that something is wrong and it will give you choices to fix/repair the damaged files or records. In the above example, 4D Tools has detected damaged records. Click on "Repair" and let 4D Tools go through repairing the data files.
