SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a bunch of archived reports in a document library which are linked to an Info path template. That template has become corrupted but luckily we have a working copy of this in a backup folder.

So we are looking to delete the corrupted XSN file and bring in the working XSN file, the problem is as follows:

  1. Cannot delete the corrupted XSN file, each time we delete it reappears!?
  2. If we raname the corrupted XSN file, all the related XML document files update their reference to the rename file!
  3. I CAN modify the XML files to point to the working XSN file and all is well But I have over 800 XML files which I would rather NOT have to manually edit

Anyone any ideas?

share|improve this question

I do not quite understand why are you deleting XSN file instead of opening your backuped XSN template, saving it and republishing from its backup copy (and then relinking XML forms to a newly published template)?

Related post you might find helpful:

Some other thoughts to try:

  • If the Infopath forms are set to be opened in Filler (it is in library settings, under advanced settings, to open the browser or client), you might want to try repairing Microsoft Infopath and/or clearing Infopath cache on (all) client machines
share|improve this answer
The main reason was that I had 700 xml files all referencing the XSN...worked out a way to do it though by runing a script on the XML to update them to point to working XSN. Thanks for your input. – Stephen Jan 29 '13 at 14:06

I think, you don't need to rename or delete the old one , only what you need to overwrite the corrupted templated with the backup template by

  • Open the backup template via InfoPath.
  • Try to publish it again to with the same name of old one to overwrite it.

Hope it helps you

share|improve this answer

Your Answer


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.