Skip to main content

Reindex files

This maintenance rebuilds the indexes in the database of the file. They are what speeds up searching and access to information. It does not change your data. This page explains how to run it. Every option and message is in Reindex files and rebuild relations.

Before you begin​

  • Take a backup of the file (Back up a company file). The wizard does not ask for a backup before it runs, and if normal indexing stops with an error, some indexes may stay unbuilt.
  • Ask the other users to leave the file. The program reserves the file for you alone while the Files Maintenance window is open (Run files maintenance).
  • You need the Files Maintenance permission, which guards the Files Maintenance window (Run files maintenance). The program checks no permission of its own for this operation when you run it from the window. Its desktop tile shows only for a user who has a permission of the same name on the Operations page of Users Management. The item does not show if the file works in multi-file mode.
  • Allow a long time for a large file, and do not turn off the computer during the operation.

Steps​

  1. Click File, then Tools, then the large part of the Files Maintenance button. If a message asks you to close the open windows, click Yes.

  2. In the list, click Reindex Files, then click Run. You can type part of the name in the search box to find it faster.

  3. Choose the method:

    • Leave both options cleared for normal indexing. It rebuilds all the indexes and is the slowest.
    • Tick Quick Archive to rebuild only the fragmented indexes. It is the fastest and suits regular maintenance. If the file is a publisher or a subscriber in the replication system, the option is always ticked and cannot be changed.
  4. Tick Recreate Default Values if you want the program to set the default values of the table fields again after the indexing. Otherwise leave it cleared.

  5. Click Start. The program does not ask for confirmation before it starts. The progress bar appears with the current stage under it.

  6. Wait for the message "Operation successfully completed", then click OK. The wizard closes and you return to the Files Maintenance window.

  7. Click Close so that the program releases the file and the other users can sign in.

note

If you click Cancel during the run and answer Yes, the operation does not stop. It completes and only the button is disabled.

Result​

The indexes of the tables of the file are built again. Nothing changes in your bills, vouchers or balances. The program shows no report of what was rebuilt, so the operation ends with the message alone. In normal indexing the relations between tables are deleted and then the ones that the program defines are created. In the usual setup that is a limited part of the relations (details in Reindex files and rebuild relations).

If something goes wrong​

MessageWhy it appearsWhat to do
The files are in exclusive mode, you can't log on to the files now.Another user works on the same file in exclusive mode.Wait until that user finishes, then try again.
An error was encountered while performing the operation.The indexing failed. A message from SQL Server comes before it if the cause was an error from it.Read the earlier message, check that no other users are working on the file, and run it again until it succeeds.
Operation successfully completedThe indexing finished.Click OK.

If Quick Archive cannot be changed, the file is a publisher or a subscriber in the replication system.

This page applies to alameen ERP 10, version 10.1.79.764.