Tag: importing

How to Fix/Rebuild a Very Corrupt Outlook .PST File

There’s a very well-hidden program called “scanpst.exe” stuffed in an obscure folder (For Outlook 2000, Outlook XP, Outlook 2003, and older, it’s at “C:\Program Files\Common Files\System\MAPI\1033”) that will check and repair a damaged .pst file, and sometimes save your bacon when Outlook complains about a busted .pst file and won’t start. However, in one case we received at Tritech, the scanpst.exe tool detected no issues, yet Outlook XP continued to report “2,847 unknown errors sending” for one item in the outbox that, strangely enough, could not be moved, sent, or deleted. When something like this happens, it’s good evidence that there’s something screwy with the .pst file and you might need to move to a new one. But how to accomplish this feat?

  • Step 1: Close Outlook. Completely. That means it has to be 100% NOT open; sometimes Outlook actually takes a little while to close after it disappears. If in doubt, press Control+Alt+Delete to pull up Task Manager, hit the Processes tab, click on every “OUTLOOK.EXE” listed and hit [End Process] for each.
  • Step 2: Open the “Mail” control panel. Click on “Data files.” You will see a list of Outlook data files that are currently loaded into the mail subsystem in Windows. You need to create a new data file, and be sure to give it a name other than “Personal Folders” at the top, so you won’t get confused in the next steps. The other options you pick really don’t matter; you can accept the defaults for everything and it’ll be fine. Don’t set a password for the .pst file unless you want to make your life painful, though!
  • Step 3: After you see your new data file appear in the list, hit OK or Close to return to the Mail control panel. Hit the first button (it should say something about E-mail accounts), and if you get another screen asking what it is you want to do with E-mail accounts rather than just getting the list, hit the button for managing existing accounts and click Next. At the bottom, under the list of mail accounts, there is a drop-down box for the “default mail delivery location.” CHANGE THIS to match the name of the new file that you created earlier. (If you have two “Personal Folders” entries, you didn’t name it earlier, so choose the LAST file in the list and it should be the correct one.) Then click OK or Close.
  • Step 4: Click on [Data files] again, and the new data file should have an indication that it is now the “default mail delivery location.” This will then allow you to remove the old data file from the list, which is safe to do, so go ahead and toss it now to prevent possible confusion later. Click OK or Close after you’ve removed the old file from the list.
  • Step 5: Close the Mail control panel. Open Outlook again. You may receive warnings about the things you’ve just changed; this is normal and you can simply click through them. You should now have a new, empty set of folders, with no contacts or mail whatsoever. The last step is to bring all of your old mail, contacts, tasks, etc. into the shiny new empty folders file. Go to File, then Import and Export. Choose to import from another program or file, and click Next. In the list, choose to import an Outlook personal folders file (.pst), and click Next again. If you are asked about how to import duplicates, choose to “replace duplicates with items imported” (though technically it shouldn’t matter which you pick). When you finally receive a blank in which to specify the file to import, click Browse.

If you don’t immediately see a file or set of files called something like “Outlook,” “Archive,” “outlook.pst,” “archive.pst,” or similar, you’ll need to manually specify where the file is located, but in my experience you are usually placed in the correct folder without having to fish for it. Choose the original file (highly likely to be “outlook” or “outlook.pst” as that is the default) and click OK. Once you click Next, you’ll get a list of folders and some more import options; the defaults are OK, so click Next (or Import or OK). Voila! You’ve successfully moved your mail from the damaged .pst file to a new one! You could say that you’ve rebuilt the PST database from scratch.

If you need help locating the Outlook folder where these .pst files are stored, it is located in the following path on a typical installation: “X:\Documents and Settings\your_user_name\Local Settings\Application Data\Microsoft\Outlook” where X: is replaced with your system drive letter (98% of the time it’s “C:”) and your_user_name is replaced with your Windows login name. Local Settings is a hidden folder, so when you browse to your user name folder, you may have to type (with the quotes included) “Local Settings” into the File blank to proceed further. It can be tricky, but if you are persistent, you should be able to locate it. The Windows search tool in the Start menu may also be helpful; just be sure to set the option “search hidden files and folders” if you use it.