infopath how do you copy a form?

Posted on 2008-11-14
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

    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

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now