Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I did a site restore from an unattached database in order to get back all of my old infopath forms held in a document library. Reason being that I had modified (deleted and replaced with new fields) the template.xsn and published it forgetting that it would cause data loss.

Although I used the .mdf backup file (production backup), attached, exported and imported (to my development env.) the entire site that held the document library, the forms when opened still open up with the new temlate. Now this I understand as it is still pointing to the production library template.

However, in spite of an edit to point to the newly restored backup document library template (which is the old one I am looking for) it continues to open up with the new template.

I have lost a bunch of data and am quite sure I am close to getting it back.

Please advise.

share|improve this question
2  
This may be too simplistic of a solution, but could you enter the "forms" folder in the target form libraries, blow away the current template.xsn and drag the old one in? Your local machine might still have the "current" template cached but you should be able to replace it on the local machine the next time you load up the form. Just a thought! –  Shrout1 Aug 28 '12 at 17:39
add comment

1 Answer

up vote 1 down vote accepted

I would have tried, consecutively, one step after another, in the following order:

1) to clear Infopath templates caches on local machines which are in

  • on XP
    C:\Documents and Settings\< UserName >\Local Settings\Application Data\Microsoft\InfoPath\
    or %APPDATA%\Microsoft\InfoPath\FormCache3
  • on Windows 7/Vista/2008
    C:\Users\< UserName >\AppData\Local\Microsoft\InfoPath\

2) to republish the old template
3) to relink XML data forms to old template
4) to clear "Allow users to fill out this form if data is unavailable" in Infopath Form Options(on ribbon File > Info in Infopath Designer 2010)

Allow users to fill out this form if data is unavailable (Infopath form options)

5) to tweak default Form Options > Versioning

enter image description here

For example, to change Update template: from default "Automatically update the template recommended)" to "Let form users to decide when to update"

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.