If you are keeping Outlook data on your computer, you are using a Personal Folders file (.pst) or an Offline Folder file (.ost). To prevent data loss, you need to know how to repair these files.
If your .pst file becomes damaged, Outlook includes a tool that may be able to correct the problem without your switching to a backup copy. This tool, the Inbox Repair Tool, is installed on your hard disk when you install Outlook.
If your .ost file becomes damaged, Outlook includes a tool that may be able to correct the problem. This tool, the OST Integrity Tool, can scan and repair .ost files. If that doesn't completely solve the problem, you can disable the .ost file and create a new one.
Repairing a Personal Folders file (.pst)
You may need to use the Inbox Repair Tool if you open your Outlook .pst file and receive this message:
Unable to expand the folder. The set of folders could not be opened. Errors could have been detected in the file drive:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook\Outlook.pst. Quit all mail-enabled applications, and then use the Inbox Repair Tool.
Note The path to the file specified in the message may vary depending upon the operating system you are using on your computer.
To repair the .pst file
- On the Start menu, click Run.
- In the Open box, type
drive:\Program Files\Common Files\System\Mapi\LocaleID\scanpst.exe
where LocaleID is the locale identifier (LCID) for your installation of Microsoft Office. For example, the LCID for English (United States) is 1033. For a list of LCIDs, see Microsoft Office Help.
- Click OK.
- In the Enter the name of the file you want to scan box, type the path and file name given in the error message above.
Note You may not be able to use the Browse button to locate this file because it is located in a hidden folder.
- To change the options for logging errors during the scan, click Options. If you choose Replace log or Append to log, the log file is saved to the same directory as the .pst file.
- Click Start.
- When the file scan is completed, select the Make a backup of scanned file before repairing check box.
- Click Repair.
If the file is successfully repaired, you will see a Repair complete message. If the Inbox Repair Tool was unable to repair the file, you will need to use a backup of your file.
To begin using your backup file as your new primary file
- Start Outlook.
- On the File menu, click Data File Management.
- Select the .pst that is damaged, and then click Remove.
- Click Add, select Personal Folders File (.pst), click OK, and then select the .pst file you want to use as the new primary file.
- Click OK.
Important You should not rely solely on the Inbox Repair Tool for disaster recovery. A system of regular backups of your .pst file is an important part of preventing data loss. You can back up the file in several ways, including copying it to another location, backing up all of the files on your computer, or by using the Personal Folders Backup utility, available on the Microsoft Office Online site.
Repairing an Offline Folder file (.ost)
You may want to scan and repair your .ost if you:
- Encounter a large numbers of conflict items.
- Cannot open particular Outlook items when offline.
- Receive unexpected synchronization error messages (as shown in the synchronization log in the Deleted Items folder).
- Receive the message:
Unable to expand the folder. The set of folders could not be opened. Errors could have been detected in the file drive:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook\Outlook.ost. Quit all mail-enabled applications, and then use the Inbox Repair Tool.
Note The file path specified in the message may vary depending upon the operating system you are using on your computer.
In addition, you might be able to open folders in the .ost but get synchronization error messages that do not go away. This happens when a single e-mail message is damaged and the synchronization process cannot correct it. You can use the OST Integrity Tool to fix damaged messages or to move them so you can synchronize successfully.
Important You may need to run scanpst.exe (see the first procedure above) first if the OST Integrity Tool cannot open the .ost file.
To scan and repair the .ost file
Close Outlook.On the Start menu, click Run.In the Open box, type
drive:\Program Files\Common Files\System\Mapi\LocaleID\scanost.exe
where LocaleID is the locale identifier (LCID) for your installation of Microsoft Office. For example, the LCID for English (United States) is 1033. For a list of LCIDs, see Microsoft Office Help.
- Click OK.
- Click either Scan all folders or Choose folder to scan. If you click Scan all folders, this may take several minutes.
- Select the Repair errors check box.
Click Begin Scan.