[Last Call] Learn how to a build a cloud-first strategyRegister Now


infopath how do you copy a form?

Posted on 2008-11-14
Medium Priority
Last Modified: 2012-05-05
I have an infopath form that I am working on with code behind.  I want to make a copy and work on that.  When I copy and paste it to another directory, then open it, I get an error: "This form template was published to one location and has been saved or moved to a different location.  To ensure that forms based on this template work correctly, publish the template again."

Question by:jackjohnson44

Author Comment

ID: 22959974
So I would like to do two things:

1. be able to make a copy on my machine so I can work on either.

2. be able to copy a form to a server (to a directory I can't publish to) and use it there.
LVL 28

Accepted Solution

clayfox earned 2000 total points
ID: 22968958
Allt emplates must be published for them to be utilized and completed.

Best Practice is you have a local copy of the template that you use for design and future modifications.

Then use the publish wizard in design mode to publish it locally or to a central location.

During publishing the template location is set.
Every InfoPath XML document references the template since that is how it knows how to render the XML data. Thats the relationship between documents and templates.

So if you copy the template and try to open a form from it without publishing you get the error above. Since the path in the form does not reference the template location.

You have to have access to the published location or at least enter the path that the users will reference it at. This can be set in the publish wizard.  Then copy it to the location you embedded in it.

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Before you can digitally sign infopath forms, you must have a digital certificate. Microsoft Certificate Services will need to be enabled on a Windows Server 2008 to facilitate the creation and verification of the digital certifciates on the web ser…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question