Moving xml files between infopath templates - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Moving xml files between infopath templates

Last post 06-13-2011 11:17 AM by hornerba. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-08-2011 02:08 PM

    Moving xml files between infopath templates

    Locked Reply Contact

    Hi,

    I have run into an interesting situation involving what may be a corrupt infopath form and its replacement that had to be built from scratch and would very much appreciate any guidance.

    SETUP:

    To try to make sure the replacement form worked as the original, I created the data fields to match the old form exactly until the very bottom where I added several fields (my research indicated that adding elements to a schema wouldn't affect it). I also took the time to update the form's pages to make it more user-friendly and rebuilt all rules from scratch (so some heavy adjustments to the look and feel and processing of the form but nothing different from the structure of the finalized data that I could tell). Finally, I made the replacement using IP2010 (as a 2007 browser form) and the original was made in '07 but updated in 2010 at some point prior to strange corruption (so our SP is 2007 at the moment). In addition to making the fields the same in the same way, I went to the form template properties and set the ID URN to the same as the original and made certain that my form's Version in the versioning options is greater than the last version number of the previous form. Both forms were published as separate site content types but the replacement just used all the site columns created by the original form's publishing process. There is no code in this form and a small handful of data connections to SharePoint and an xml file from owssvr.dll (for a view of a sharepoint list).

    PROBLEM:

    When I take an xml file and try to change it to the new content type (both were published as site content types and the replacement used all the site columns from the first form), it converts but I then have to relink. After re-linking, when I attempt to click on my form, it opens up my replacement form but it appears that all the data is gone within my form (opens to the initial page as if it is a brand new form and switching pages doesn't indicate that the values are passing correctly). Has anyone had any luck creating an entirely separate infopath template that is supposed to receive the xml from a different template?

  • 06-13-2011 08:36 AM In reply to

    Re: Moving xml files between infopath templates

    Offhand, I'd guess your namespace definitions are different between the two forms. Compare XML from the old form and XML from the new form and take a look at the namespace stuff up at the top of the XML.

    Hilary Stoupa

  • 06-13-2011 10:11 AM In reply to

    Re: Moving xml files between infopath templates

    Hilary Stoupa:

    Offhand, I'd guess your namespace definitions are different between the two forms. Compare XML from the old form and XML from the new form and take a look at the namespace stuff up at the top of the XML.

    Thanks for helping me, I took a look and it appears that 2010 is saying that my urn:schemas is the same between the two but the xml files that get submitted actually have different name spaces...has anyone ever encountered that? In the UI it lists them as the same but the actual submitted xml shows 2 different things for the name= part of the header?

  • 06-13-2011 11:17 AM In reply to

    Re: Moving xml files between infopath templates

    Locked Reply Contact

    Figured it out:

    For some reason - despite updating the URN in the 'Form template properties' on the InfoPath 2010 backstage - the URN was not updated in all views and data connections. Doing a couple of find and replaces using Notepad++ allowed me to grab all the bad/new references, update them to reflect the good/old references, republish, and it works like a charm (just wish I didn't have to relink all the documents). Thanks Hilary!

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.