<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Random error when submitting form?</title><link>https://www.infopathdev.com:443/forums/thread/14615.aspx</link><pubDate>Wed, 14 Jun 2006 23:42:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14615</guid><dc:creator>Carolyn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14615.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14615</wfw:commentRss><description>Yes, the same thing happens to us and we have just had to ignore it. If the user closes the form, then tries again, it usually works. &lt;br /&gt;&lt;br /&gt;I'd sure like to know why. I suspect some kind of intermittant server unavailability.</description></item><item><title>Random error when submitting form?</title><link>https://www.infopathdev.com:443/forums/thread/12885.aspx</link><pubDate>Fri, 02 Jun 2006 07:38:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12885</guid><dc:creator>mary_l</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12885.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12885</wfw:commentRss><description>Hi!&lt;br /&gt;&lt;br /&gt;I have a strange problem with my infopath-form that is submitted to a sharepoint form library. It (what i think) randomly generates an error like this:&lt;br /&gt;&lt;br /&gt;The following error occurred:&lt;br /&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: &lt;br /&gt;  &lt;a target="_blank" href=http://someSite/guidFilename.xml&gt;http://someSite/guidFilename.xml&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The submit function is activated when the user press a save-button, and most of the times it works just fine.&lt;br /&gt;The code for the save button is:&lt;br /&gt;&lt;br /&gt;function SaveBtn::OnClick(eventObj){&lt;br /&gt;//First do some checks to look up values of some fields, then:&lt;br /&gt;var clicked = XDocument.UI.Confirm("Do you want to save this form?",1);&lt;br /&gt;if(clicked == 1){						&lt;br /&gt;   if(guid.text == ""){						&lt;br /&gt;      var g = "";&lt;br /&gt;      for(var i = 0; i &amp;lt; 32; i++)&lt;br /&gt;	  g += Math.floor(Math.random() * 0xF).toString(0xF) + (i == 8 || i == 12 || i == 16 || i == 20 ? "-" : "")    &lt;br /&gt;	  XDocument.DOM.selectSingleNode("//my:guid").text = g + "";&lt;br /&gt;    }&lt;br /&gt;    XDocument.Submit();&lt;br /&gt;    Application.ActiveWindow.Close(true);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;I have no idea why it occurs, has anyone had the same problem? Or does anyone know what may cause this error?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>