Tip

How to automatically clear the forms cache in Microsoft Outlook

Microsoft Outlook 2003, up to and including the most recent Microsoft Office 2003 Service Pack, has an issue with custom forms that typically manifests with the error message: "Outlook cannot open this form." Unfortunately, no other real details are provided as to why that is the case.

The culprit of this problem is probably a polluted Microsoft Outlook's form cache that needs to be cleaned out.

This can be done from within Microsoft Outlook itself, but it requires a fair amount of drilling through menus to get to the needed commands. It also has to be done differently if you're using a local .PST file or an Exchange Server public folder, which complicates things yet further. If you're forced to clear the Microsoft Outlook forms cache repeatedly, it becomes even more cumbersome.

Fortunately, Microsoft Outlook MVP Robert Sparnaaij has created a

    Requires Free Membership to View

script, written in Visual Basic, that automatically clears the Microsoft Outlook forms cache.

When run, it'll prompt you to close Microsoft Outlook (if you don't, it'll make a best attempt to close Microsoft Outlook by force!), and then erase the files in the path %UserProfile%\Local Settings\Application Data\Microsoft\Forms, which is where the Microsoft Outlook's forms cache is stored. The folder is also deleted for good measure, in the event that there are problems with the forms cache folder because of permissions issues.

Note that if you run this script on a system with an antivirus application that provides live protection, the antivirus program may attempt to stop the script from executing.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter.

Do you have comments on this tip? Let us know.

Related information from SearchExchange.com:

  • Tip: Using the /CLEANVIEWS command-line switch in Microsoft Outlook
  • Tip: Better Exchange public folders with custom forms
  • Learning Center: The Microsoft Outlook Toolbox
  • Reference Center: Microsoft Outlook administration tips
  • Reference Center: Exchange Server scripts and programming tips

    Please let others know how useful this tip was via the rating scale below. Do you have a useful Exchange Server or Microsoft Outlook tip, timesaver or workaround to share? Submit it to SearchExchange.com. If we publish it, we'll send you a nifty thank-you gift.

    This was first published in June 2006

  • There are Comments. Add yours.

     
    TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

    REGISTER or login:

    Forgot Password?
    By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
    Sort by: OldestNewest

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to:

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.