<?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: Problem re-submitting a form in SharePoint</title><link>https://www.infopathdev.com:443/forums/thread/34631.aspx</link><pubDate>Thu, 20 Nov 2008 21:53:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34631</guid><dc:creator>santos@bj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34631.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=34631</wfw:commentRss><description>&lt;p&gt;Finally got it.&amp;nbsp; This article helped me&lt;/p&gt;&lt;p&gt;http://blogs.msdn.com/infopath/archive/2006/11/08/submitting-to-this-document-library.aspx &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Problem re-submitting a form in SharePoint</title><link>https://www.infopathdev.com:443/forums/thread/34510.aspx</link><pubDate>Wed, 19 Nov 2008 15:00:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34510</guid><dc:creator>santos@bj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34510.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=34510</wfw:commentRss><description>&lt;p&gt;It has a unique filename and I do have &amp;quot;Allow OverWrite if the file Exists?&amp;quot; selected.&lt;/p&gt;&lt;p&gt;I think I&amp;#39;m getting close to fixing it.&amp;nbsp; When I figure it out, I will post it.&amp;nbsp; If you already know, post it as well, we can compare notes.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Problem re-submitting a form in SharePoint</title><link>https://www.infopathdev.com:443/forums/thread/34483.aspx</link><pubDate>Wed, 19 Nov 2008 06:58:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34483</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34483.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=34483</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Look at your sharepoint submit connection and check whether you have checked the checkbox &amp;quot;Allow OverWrite if the file Exists?&amp;quot;. You need to check this checkbox if you want to overwrite on the same file that you have previously submitted.&lt;/p&gt;</description></item><item><title>Re: Problem re-submitting a form in SharePoint</title><link>https://www.infopathdev.com:443/forums/thread/34480.aspx</link><pubDate>Wed, 19 Nov 2008 06:06:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34480</guid><dc:creator>Jo-Anne Alfafara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34480.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=34480</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;My guess is that the field you are using for the form name is not unique that&amp;#39;s why you are getting this error.&amp;nbsp;You need to make sure that the name of the form will be unique when you set up your submit. I found a helpful link that might help you with this &lt;a href="http://www.infopathdev.com/forums/p/5567/20910.aspx#20910"&gt;http://www.infopathdev.com/forums/p/5567/20910.aspx#20910&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Problem re-submitting a form in SharePoint</title><link>https://www.infopathdev.com:443/forums/thread/34460.aspx</link><pubDate>Tue, 18 Nov 2008 18:09:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34460</guid><dc:creator>santos@bj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34460.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=34460</wfw:commentRss><description>&lt;p&gt;I have an InfoPath&amp;nbsp;form with multiple&amp;nbsp;views that I open inside a SharePoint library.&amp;nbsp; The default view&amp;nbsp;has&amp;nbsp;a Submit button,&amp;nbsp;and when clicked, it runs the following code:&lt;/p&gt;&lt;p&gt;&amp;#39; Some code to set values &lt;br /&gt;Me.DataConnections(connectionName).Execute().&lt;br /&gt;Application.Quit(True)&lt;/p&gt;
&lt;p&gt;This works fine the first time.&amp;nbsp; I&amp;#39;m able to submit the form with a unique name in a SharePoint library, and this triggers a workflow in SharePoint.&lt;/p&gt;
&lt;p&gt;This form is again opened&amp;nbsp;from SharePoint library list, but the next time, it&amp;#39;s a different view with an Approve button.&amp;nbsp; The approve button has the same code as above, but when executed, I get the following error:&lt;/p&gt;
&lt;p&gt;InfoPath cannot submit the form.&lt;br /&gt;An error occurred while the form was being submitted.&lt;/p&gt;
&lt;p&gt;A value in the form may be used to specify the file name. If you know the value in the form that specifies the file name, revise it and try again. Otherwise, contact the author of the form template.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.MomExceptionHelper.ExecuteDataConnectionAction(OMCall d)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.FileSubmitConnectionHost.Execute()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at TestForm.FormCode.ApproveButton_Clicked(Object sender, ClickedEventArgs e) in FormCode.vb:line 168&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;/p&gt;
&lt;p&gt;Line 168 is the code&amp;nbsp;&amp;nbsp;Me.DataConnections(connectionName).Execute()&lt;br /&gt;My understanding is that when this line is executed, it doesn&amp;#39;t know what form to reference.&amp;nbsp; Correct?&lt;/p&gt;
&lt;p&gt;My question how do I fix this?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I&amp;#39;m googling for solutions, but if someone already knows a solution,&amp;nbsp;it will save me a great deal of time.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;BTW, I don&amp;#39;t want to use the Rules in the button properties.&amp;nbsp; I&amp;#39;m already using that&amp;nbsp;approach,&amp;nbsp;for what I want to do, it&amp;#39;s not good approach.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>