<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Submit Button error - Data Connection failing</title><link>https://www.infopathdev.com:443/forums/thread/86594.aspx</link><pubDate>Wed, 30 Jan 2013 10:18:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86594</guid><dc:creator>bhben</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86594</wfw:commentRss><description>&lt;p&gt;I am the form designer and am currently testing a new form I have created, however there is an error with my submit button which Saves the form to SharePoint, I receive the following error message:&lt;/p&gt;&lt;p&gt;InfoPath cannot submit the form.&lt;br /&gt;An error occurred while the form was being submitted.&lt;br /&gt;The form cannot be submitted to the following location: http://servername/siteA/siteB/siteC/FormLibrary/FormName.xml&lt;br /&gt;The file &amp;quot;http://servername/siteA/siteB/siteC/FormLibrary/FormName.xml&amp;quot; is checked out for editing by DOMAIN\MyUserName.&lt;br /&gt;The operation completed successfully.&lt;/p&gt;&lt;p&gt;The form is not checked out to me, or open by anybody else (check out functionality in SharePoint library&amp;nbsp;is not forced).&lt;/p&gt;&lt;p&gt;On searching foums for causes to the problem I have read about the use of friendly URL&amp;#39;s/server name&amp;#39;s (&lt;a href="http://www.infopathdev.com/forums/t/14470.aspx"&gt;http://www.infopathdev.com/forums/t/14470.aspx&lt;/a&gt;)&amp;nbsp;and I am using the correct server name. I am using http://servername instead of http://intranet - in a few other forms i created, this has solved the problem.&lt;/p&gt;&lt;p&gt;Looking closely at the rules on my submit button, the following actions should happen:&lt;/p&gt;&lt;p&gt;1st rule checks the selection of certain fields, if conditions are right it will set the values of 3 different fields.&lt;/p&gt;&lt;p&gt;The 2nd rule will save to SharePoint using a data connection (please note this data connection works fine on a different submit button). The 2nd rule will also close the form.&lt;/p&gt;&lt;p&gt;To test where the error occurs I added a series of display messages, and the problem is definitely on the save data connection.&lt;/p&gt;&lt;p&gt;The data connection is to save to a sharepoint form library, using a field called &amp;quot;filename&amp;quot; as the file name. The data connection allows overwrite&amp;#39;s. The filename is set the first time a form is saved (it has a condition which checks a field which gets set upon any save event - if this field is 0 filename gets set, the first time the form is saved, this field becomes 1 so the filename field is never set again).&lt;/p&gt;&lt;p&gt;I have 2 views on the form, one named phase 1, the other named phase 2. When a the custom submit button is pressed on the phase 1 view, my data connection works, but on the save 2 view, the exact same data connection fails with the error message above.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve exhausted all avenues that I know of to find the cause of error message but am now at a loss, please help! (I am using InfoPath 2010, SharePoint 2010, Windows 7).&lt;/p&gt;&lt;p&gt;In Windows XP for a different user, a slightly different error message appears, and the form does actually save (fields get updated):&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;InfoPath cannot submit the form.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;An error occurred while the form was being submitted.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;The form cannot be submitted to the following location: &lt;/font&gt;&lt;font color="#0000ff" size="3" face="Calibri"&gt;http://servername/siteA/siteB/siteC/FormLibrary&lt;/font&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;/FormName.xml&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;The file is in use by another application or user.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

Regards,&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;Ben&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>