Remove InfoPath form template from local cache

The first time a form template is launched, InfoPath places it into its form template cache. On each subsequently launch, InfoPath will first check to see whether the template is already in the cache. This is very beneficial for forms that are only available online. If you are working with an online form, and you go offline, the cached form template is still available.

While you are still designing your form template you will be testing the work you do. If you preview your form template from the designer, all of the latest changes will be made available. But previewing is not always an appropriate method to test your form. If you save the form template and then launch it from another method, the latest changes might not be made available if the form template is already in the cache. To remedy this you will need to remove the form template from the cache.

Removing a form template from the cache is accomplished differently based on whether it was installed from a .msi file. You are not allowed to remove an installed form template in the same way you can a normal form template. Installed form templates must be uninstalled.

In this task, we will learn how to remove a normal, and an installed form template from the InfoPath cache. This will force InfoPath to reload the form template from the source the next time it is launched, thus making available any recent changes.

Remove a normal form template from the InfoPath cache (Using InfoPath):

  • Using InfoPath
  • Close any open instance of the form template you want to remove.
  • Launch InfoPath, or if InfoPath is already open choose Fill Out A Form from the File menu.
  • In the Fill Out A Form dialog box, select the form that you want to have removed from the cache.
  • If you do not find the form listed, select the All Forms category, and then look again.
  • Click Remove This Form in the Form Tasks.

Remove a normal form template from the InfoPath cache (Using Windows Explorer):

  • Shutdown InfoPath client if it is open
  • Open Windows explorer
  • Browse to the following directory C:\Documents and Settings\sameerdhoot\Local Settings\Application Data\Microsoft\InfoPath\FormCache2\ (Replace “sameerdhoot” with your user name)
  • Delete all content from the folder

Remove an installed form template from the InfoPath cache:

  1. Shut down InfoPath.
  2. Open the Windows Control Panel.
  3. Launch Add Or Remove Programs.
  4. Locate and select the installed form template, and then click Remove.
  5. Click Yes if asked whether you are sure you want to remove the form template from your computer.

That’s it. You have successfully removed a form from the cache. For a normal form template, you only need to launch it again and it will be added back to the cache with the latest changes. An installed form must be reinstalled from an updated .msi file.

By Sameer Dhoot

Welcome to my blog. I am IT Professional with 10 years of experience across several IT disciplines. I am currently based in Farmington Hills, Michigan, USA. I hope that you find my blog of interest. It is mostly around Microsoft platform including SharePoint, SQL Server, TFS, Windows OS, Virtualization as this is what I am currently working on, but my aim is to write about all of the competencies described in my profile and write contents which I believe can be helpful to broader audience (IT Pros) and may include general computing advice, how-to's, FAQ, Tips and Tricks. I would welcome contributors and critics who would help to build this blog in terms of better contents and usability.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.