<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: InfoPath data connections when migrating</title><link>https://www.infopathdev.com:443/forums/thread/89725.aspx</link><pubDate>Tue, 14 May 2013 12:31:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89725</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89725.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=89725</wfw:commentRss><description>&lt;p&gt;Sorry, I don&amp;#39;t understand.&lt;/p&gt;&lt;p&gt;Let&amp;#39;s say&amp;nbsp;the form&amp;#39;s data connections point to &lt;a href="http://oldserver/sites/oldsitecollection"&gt;http://oldserver/sites/oldsitecollection&lt;/a&gt; and that&amp;#39;s also the location where the form is published. In the publishing wizard, one is asked for the new publish URL, and let&amp;#39;s say we enter &lt;a href="http://newserver/sites/newsitecollection"&gt;http://newserver/sites/newsitecollection&lt;/a&gt;. The publishing wizard should change all of the data connections pointing to &lt;a href="http://oldserver/sites/oldsitecollection"&gt;http://oldserver/sites/oldsitecollection&lt;/a&gt;&amp;nbsp;to the new publishing URL&amp;nbsp; &lt;a href="http://newserver/sites/newsitecollection"&gt;http://newserver/sites/newsitecollection&lt;/a&gt;. If it&amp;#39;s &amp;quot;forgetting&amp;quot; the &amp;quot;sites&amp;quot; part, that&amp;#39;s not expected behavior.&amp;nbsp;I assume&amp;nbsp;&lt;a href="http://newserver/newsitecollection"&gt;http://newserver/newsitecollection&lt;/a&gt; doesn&amp;#39;t exist, and your template would end up broken: published to &lt;a href="http://newserver/sites/newsitecollection"&gt;http://newserver/sites/newsitecollection&lt;/a&gt;&amp;nbsp;but with data connections to &lt;a href="http://newserver/newsitecollection"&gt;http://newserver/newsitecollection&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Sadly, sometimes hacking the manifest is the only solution, especially in the case of troublesome templates.&lt;/p&gt;&lt;p&gt;I&amp;#39;m not sure what else to recommend. If it were just one template, then walking thru the data connections one by one might not be such a problem. But if you have multiple templates, then this is not an easy task. I don&amp;#39;t know of a Microsoft tool to automatically repoint the URLs in the XSN, but perhaps such a tool could be developed.&lt;/p&gt;</description></item><item><title>Re: InfoPath data connections when migrating</title><link>https://www.infopathdev.com:443/forums/thread/89720.aspx</link><pubDate>Tue, 14 May 2013 09:41:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89720</guid><dc:creator>TDekker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89720.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=89720</wfw:commentRss><description>I tried to use the wizzard, it asked me nicely if I wanted to change the data connections to the new location. The problem was that it didnt take the whole link, it went from oldserver/sites/oldsitecollection to newserver/newsitecollection, it forgot the /sites/ part.

Also the hacking of the manifest files doesnt sound like a viable solution to use regularly.</description></item><item><title>Re: InfoPath data connections when migrating</title><link>https://www.infopathdev.com:443/forums/thread/89673.aspx</link><pubDate>Mon, 13 May 2013 14:12:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89673</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89673.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=89673</wfw:commentRss><description>&lt;p&gt;If you&amp;#39;re on InfoPath 2010, the Publishing Wizard (in the final screen) should ask you if you want the data connections to be modified to point to the new location.&lt;/p&gt;&lt;p&gt;One very painful option might be to change the URLs by hacking the manifest files, but any small mistake could break the form.&lt;/p&gt;</description></item><item><title>InfoPath data connections when migrating</title><link>https://www.infopathdev.com:443/forums/thread/89604.aspx</link><pubDate>Wed, 08 May 2013 13:56:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89604</guid><dc:creator>TDekker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89604.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=89604</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;

&lt;p&gt;I am in need for some help with migrating my administrator-approved infopath forms from one server to another. I need help to change the data connections. &lt;/p&gt;

&lt;p&gt;At first I used to just go to the forms and change all the data connections to that of the new location. The application is starting to grow now, and for the 100 infopath forms that need to move this is becoming way to much work.&lt;/p&gt;

&lt;p&gt;My data connections link to a web service that is located on the sharepoint site collection. &lt;br /&gt;
The location of this is: http://oldserver/sites/oldsitecollection/_layoutsetc.asmx?WSDL&lt;br /&gt;
The new location is: http://newserver/sites/newsitecollection/layoutsetc.asmx?WSDL&lt;/p&gt;

&lt;p&gt;The problem that I am having is that I can’t manage to change the data connections automatically.&lt;/p&gt;

&lt;p&gt;I have searched around and found this method: http://technet.microsoft.com/en-us/library/ff607606.aspx which uses Update-SPInfoPathAdminFileUrl&lt;/p&gt;

&lt;p&gt;I filled in the following in the sharepoint 2010 management shell it didn’t seem to change anything. And the forms still don’t work:&lt;br /&gt;
Update-SPInfoPathAdminFileUrl -Find http://oldserver/sites/oldsitecollection/_layoutsetc.asmx?WSDL -Replace http://newserver/sites/newsitecollection/_layoutsetc.asmx?WSDL&lt;br /&gt;
But after using that nothing is different&lt;/p&gt;

&lt;p&gt;Is there perhaps something that I am missing for this method or am I doing this wrong?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;

&lt;p&gt;Another method that I tried was to publish the form again using the new server sharepoint location. And there I had the option to change the data connection links automatically. This did change the data connections, but not to what I need them to be. &lt;/p&gt;

&lt;p&gt;The data connections changed from&lt;/p&gt;

&lt;p&gt;http://oldserver/sites/oldsitecollection/_layoutsetc.asmx?WSDL&lt;br /&gt;
to&lt;br /&gt;
http://newserver/newsitecollection/_layoutsetc.asmx?WSDL&lt;/p&gt;

&lt;p&gt;but it didn’t add the part /sites/ and without that the data connections don’t work either.&lt;/p&gt;

&lt;p&gt;So is there perhaps another way to correctly change all the data connections for each form in one go. I would prefer to be able to do it for all forms at the same time, but I can settle for one form at a time also. &lt;/p&gt;

&lt;p&gt;As long as I don’t have to change it for every data connection would be a lot less work.&lt;/p&gt;

&lt;p&gt;I also had the thought of using http://localhost for the servername in the data connections. And this will help at times, but then the issue still lies when the site collection name is different (which it tends to be for my case) and at times I also need http://localhost:8080 and then the connection would also be different.&lt;/p&gt;

&lt;p&gt;So is there anyone that could help me out with my migration issue. I would really love to be able to change all the data connections in one go.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;/p&gt;

&lt;p&gt;Tim&lt;/p&gt;</description></item></channel></rss>