Archive for InfoPath 2007

Clearing the InfoPath 2007 local form template cache

All InfoPath forms loaded either from your SharePoint site or other sources are downloaded as templates and cached locally.

It occurs that templates upgraded on the server are not automatically refreshed on the local client and gets a version from the local cached copy instead. Problem!

You need to clear the local cache. Use the options below to do the same:

You can rectify this by clearing the local cache:
Start > Command Prompt (cmd) > “Infopath /cache clearall”

Verify that the cache has been cleared by navigating to the following folder for Windows XP or Windows Server 2003:
“C:\Documents and Settings\[User]\Local Settings\Application Data\Microsoft\InfoPath\FormCache2″

Or for Vista / Windows 7:
C:\Users\[User]\AppData\Local\Microsoft\InfoPath\FormCache2

Within the “FormCache2″ folder there will be a folder with a GUID name, verify within this folder, it should be empty, except retaining a file “_SCVer.dat”.

Alternatively, you can manually clear the Infopath cache by deleting the files in the FormCache2 folder.

Have fun coding.

Error: InfoPath cannot open the selected form

Many InfoPath developers have faced this issue several times when they make a bunch of views, tons of coding effort and a small modification in the form results into “InfoPath cannot open the selected form”.

There is not much information provided to help resolve this issue within the Event Log or any other location.

During my development experience I noticed that form templates that are signed and often have created this issue. Try the resolution below to workaround this issue and let me know if this works for you:

From the Menu > Tools > Form Options > Security and Trust > uncheck “Automatically determine security level” and select Full Trust > OK.

It would work for certain cases where this could be the problem. But not assured!

You can revert back the Security and Trust options as needed. Worth a try!

: )