<?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>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Form Template Failed to Load</title><link>https://www.infopathdev.com:443/forums/thread/90254.aspx</link><pubDate>Wed, 29 May 2013 20:33:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90254</guid><dc:creator>dbaker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90254.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=90254</wfw:commentRss><description>&lt;p&gt;I probably didn&amp;#39;t do a very good job of explaining the problem I was having.&lt;/p&gt;

&lt;p&gt;In any case, I was able to resolve it by doing two things:&lt;/p&gt;

&lt;p&gt;1. I reviewed all of my data connections in InfoPath until I found the one that was returning two fields with the same name of &amp;#39;siteid.&amp;#39; I had included a table&amp;#39;s primary key, siteid, in my SQL select statement. However, it appears that InfoPath likes to include primary keys in select statements automatically, which is what caused the error. I removed the &amp;#39;siteid&amp;#39; field from the SQL select statement that I had manually included and just used InfoPath&amp;#39;s automatic primary key.&lt;/p&gt;

&lt;p&gt;2. I followed S.Y.M. Wong-A-Ton&amp;#39;s recipe #85 from &lt;a href="http://www.amazon.com/InfoPath-2010-Cookbook-Recipes-Developers/dp/1469988011/ref=sr_1_4?s=books&amp;amp;ie=UTF8&amp;amp;qid=1369859490&amp;amp;sr=1-4" target="_new"&gt;Cookbook #3&lt;/a&gt; for using the Execute() method of the WebServiceConnection class. This book is the most useful resource I have found on developing InfoPath forms anywhere--online or in print.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;db&lt;/p&gt;</description></item><item><title>Re: Form Template Failed to Load</title><link>https://www.infopathdev.com:443/forums/thread/89956.aspx</link><pubDate>Mon, 20 May 2013 19:17:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89956</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89956.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=89956</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Oh - you are right, in VSTA you can&amp;#39;t seem to do this. Yuck. I guess I&amp;#39;d try manually modifying the .proj file and reloading it....maybe see if you can add the TargetFrameworkVersion to the PropertyGroup?&lt;/p&gt;</description></item><item><title>Re: Form Template Failed to Load</title><link>https://www.infopathdev.com:443/forums/thread/89945.aspx</link><pubDate>Mon, 20 May 2013 17:00:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89945</guid><dc:creator>dbaker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89945.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=89945</wfw:commentRss><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;

&lt;p&gt;Thank you for your reply. I&amp;#39;ve converted all of my data connections to Universal Data Connections. I also have the Web Service up and running. The form works fine in InfoPath. I can upload it to SharePoint as an administrator approved form template. However, the form won&amp;#39;t load if I try to open it through SharePoint. I keep getting the following error: &lt;/p&gt;

&lt;p&gt;Type: ArgumentException, Exception Message: Item has already been added. Key in dictionary: &amp;#39;siteid&amp;#39;  Key being added: &amp;#39;siteid&amp;#39;)&lt;/p&gt;

&lt;p&gt;Any ideas what this error means?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;/p&gt;

&lt;p&gt;db&lt;/p&gt;</description></item><item><title>Re: Form Template Failed to Load</title><link>https://www.infopathdev.com:443/forums/thread/89903.aspx</link><pubDate>Sun, 19 May 2013 20:27:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89903</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89903.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=89903</wfw:commentRss><description>&lt;p&gt;Hi DBaker,&lt;/p&gt;&lt;p&gt;I would convert the form to a Universal Data Connection and then your form will work in the browser. &lt;/p&gt;&lt;p&gt;The Web service itself will have to be installed on one of the IIS servers in your domain and it will have to be set up to access your SQL database.&lt;/p&gt;&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Form Template Failed to Load</title><link>https://www.infopathdev.com:443/forums/thread/89891.aspx</link><pubDate>Fri, 17 May 2013 18:56:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89891</guid><dc:creator>dbaker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89891.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=89891</wfw:commentRss><description>Hello,

&lt;p&gt;I have created an InfoPath 2010 web form that uses a Web Service to submit values to a SQL database. What is the best way to incorporate the Web Service into the InfoPath form so that the form can be uploaded to SharePoint?&lt;/p&gt;


Thanks,&lt;br /&gt;
&lt;br /&gt;
db</description></item></channel></rss>