<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Update Infopath forms from within Workflow</title>
	<atom:link href="http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/</link>
	<description>Whatever I'm working on, really...</description>
	<lastBuildDate>Fri,  5 Mar 2010 23:09:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: perlanava</title>
		<link>http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/comment-page-1/#comment-6366</link>
		<dc:creator>perlanava</dc:creator>
		<pubDate>Fri, 19 Feb 2010 12:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=168#comment-6366</guid>
		<description>hi guys 

i have a problem 

When update a field of a item XML (Infopath Form in Sharepoint Library) by code of C#, with the you code indicate on top; and then i trying to open this item of my sharepoint list… give me the following error: the form contains schema validation error…
Details:
Element ‘{http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-02T22:15:26}sec_SafendOptions’ is unexpected according to content model of parent element ‘{http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-02T22:15:26}myFields’.
Expecting: {http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-02T22:15:26}sec_WaiReqInf, {http://schemas.microsoft.com/of….

I need youre help please

How to resolve?

Regards</description>
		<content:encoded><![CDATA[<p>hi guys </p>
<p>i have a problem </p>
<p>When update a field of a item XML (Infopath Form in Sharepoint Library) by code of C#, with the you code indicate on top; and then i trying to open this item of my sharepoint list… give me the following error: the form contains schema validation error…<br />
Details:<br />
Element ‘{http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-02T22:15:26}sec_SafendOptions’ is unexpected according to content model of parent element ‘{http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-02T22:15:26}myFields’.<br />
Expecting: {http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-02T22:15:26}sec_WaiReqInf, {http://schemas.microsoft.com/of….</p>
<p>I need youre help please</p>
<p>How to resolve?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: perlanava</title>
		<link>http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/comment-page-1/#comment-6365</link>
		<dc:creator>perlanava</dc:creator>
		<pubDate>Fri, 19 Feb 2010 12:12:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=168#comment-6365</guid>
		<description>hi guys 

i have a problem 

When update a field of a item XML (Infopath Form in Sharepoint Library) by code of C#, with the you code indicate on top; and then i trying to open this item of my sharepoint list... give me the following error: the form contains schema validation error...
Details: 
Element &#039;{http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-02T22:15:26}sec_SafendOptions&#039; is unexpected according to content model of parent element &#039;{http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-02T22:15:26}myFields&#039;.
Expecting: {http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-02T22:15:26}sec_WaiReqInf, {http://schemas.microsoft.com/of....


I need youre help please

Regards</description>
		<content:encoded><![CDATA[<p>hi guys </p>
<p>i have a problem </p>
<p>When update a field of a item XML (Infopath Form in Sharepoint Library) by code of C#, with the you code indicate on top; and then i trying to open this item of my sharepoint list&#8230; give me the following error: the form contains schema validation error&#8230;<br />
Details:<br />
Element &#8216;{http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-02T22:15:26}sec_SafendOptions&#8217; is unexpected according to content model of parent element &#8216;{http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-02T22:15:26}myFields&#8217;.<br />
Expecting: {http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-02T22:15:26}sec_WaiReqInf, {http://schemas.microsoft.com/of&#8230;.</p>
<p>I need youre help please</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: itian</title>
		<link>http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/comment-page-1/#comment-5857</link>
		<dc:creator>itian</dc:creator>
		<pubDate>Thu, 20 Aug 2009 14:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=168#comment-5857</guid>
		<description>Great work, Save a lot of time.

I have an issue with the code

after I say
myDoc.Save(myOutStream);
myFile.SaveBinary( myOutStream.ToArray());
it invokes the workflow again instead of going to the next step in the code?

Any idea on how to stop the loop?</description>
		<content:encoded><![CDATA[<p>Great work, Save a lot of time.</p>
<p>I have an issue with the code</p>
<p>after I say<br />
myDoc.Save(myOutStream);<br />
myFile.SaveBinary( myOutStream.ToArray());<br />
it invokes the workflow again instead of going to the next step in the code?</p>
<p>Any idea on how to stop the loop?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Negin</title>
		<link>http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/comment-page-1/#comment-5814</link>
		<dc:creator>Negin</dc:creator>
		<pubDate>Tue, 28 Jul 2009 18:04:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=168#comment-5814</guid>
		<description>I had this issue only when I had an InfoPath form linked to a custom workflow.  

The error started to occur when I modified my InfoPath form to have an attachment field.  When a custom workflow was associated to my form and I left the attachment field empty, I could not reopen the form without getting the &quot;The form has been closed&quot; error.

I only experienced this problem with the combination of the workflow and the empty attachment field.  If I disassociated my workflow from the form, my form wouldn&#039;t show the &quot;The form has been closed&quot; error.  If I removed the attachment field, it would work too.  

When I saved a filled out form to my desktop and opened it with notepad, I realized that the form had the xsi:nil=&quot;true&quot; field.  I removed this attribute, resaved the form, uploaded back to the form library and the form would open up properly.

The myDoc.PreserveWhitespace=true; worked!</description>
		<content:encoded><![CDATA[<p>I had this issue only when I had an InfoPath form linked to a custom workflow.  </p>
<p>The error started to occur when I modified my InfoPath form to have an attachment field.  When a custom workflow was associated to my form and I left the attachment field empty, I could not reopen the form without getting the &#8220;The form has been closed&#8221; error.</p>
<p>I only experienced this problem with the combination of the workflow and the empty attachment field.  If I disassociated my workflow from the form, my form wouldn&#8217;t show the &#8220;The form has been closed&#8221; error.  If I removed the attachment field, it would work too.  </p>
<p>When I saved a filled out form to my desktop and opened it with notepad, I realized that the form had the xsi:nil=&#8221;true&#8221; field.  I removed this attribute, resaved the form, uploaded back to the form library and the form would open up properly.</p>
<p>The myDoc.PreserveWhitespace=true; worked!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vaibhav Tandel</title>
		<link>http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/comment-page-1/#comment-5606</link>
		<dc:creator>Vaibhav Tandel</dc:creator>
		<pubDate>Sat, 23 May 2009 10:12:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=168#comment-5606</guid>
		<description>When i use the code and change field value in infopath form, which is saved in sharepoint library. The form start giving  &quot;Schema validation found non-datatype errors.&quot; 

When i compared the old xml with updated xml of the form i found that some of the white spaces has been removed so i make following changes in the code and it  worked  for me.

XmlDocument myDoc = new XmlDocument();

/// Add this line of code ///
 myDoc.PreserveWhitespace = true;

 myDoc.Load(myInstream);</description>
		<content:encoded><![CDATA[<p>When i use the code and change field value in infopath form, which is saved in sharepoint library. The form start giving  &#8220;Schema validation found non-datatype errors.&#8221; </p>
<p>When i compared the old xml with updated xml of the form i found that some of the white spaces has been removed so i make following changes in the code and it  worked  for me.</p>
<p>XmlDocument myDoc = new XmlDocument();</p>
<p>/// Add this line of code ///<br />
 myDoc.PreserveWhitespace = true;</p>
<p> myDoc.Load(myInstream);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/comment-page-1/#comment-3028</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Mon, 06 Oct 2008 16:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=168#comment-3028</guid>
		<description>The code works fine for simple field updates.  I tried it for just a text box on a sample form.  

But, when I have a Contact Selector on the infopath form I get the dreaded &quot;Schema validation found non-datatype errors&quot;.  This is a repeating object that allows the lookup of a person.  If I have this control on the page, and I read and save the form (even without an update) I get the above mentioned error.  I have read up on the error and most people experience it when they set a nil value to an object and don&#039;t remove the attribute.  

Any help is appreciated</description>
		<content:encoded><![CDATA[<p>The code works fine for simple field updates.  I tried it for just a text box on a sample form.  </p>
<p>But, when I have a Contact Selector on the infopath form I get the dreaded &#8220;Schema validation found non-datatype errors&#8221;.  This is a repeating object that allows the lookup of a person.  If I have this control on the page, and I read and save the form (even without an update) I get the above mentioned error.  I have read up on the error and most people experience it when they set a nil value to an object and don&#8217;t remove the attribute.  </p>
<p>Any help is appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/comment-page-1/#comment-2794</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 30 Jul 2008 08:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=168#comment-2794</guid>
		<description>Hmm. Sounds weird. Have you updated the Infopath form maybe? I&#039;ve had issues where we&#039;ve updated the Infopath form - versioning on Infopath forms in SharePoint can be a bit hit and miss. We ended up installing our latest version for as an entirely new form...</description>
		<content:encoded><![CDATA[<p>Hmm. Sounds weird. Have you updated the Infopath form maybe? I&#8217;ve had issues where we&#8217;ve updated the Infopath form &#8211; versioning on Infopath forms in SharePoint can be a bit hit and miss. We ended up installing our latest version for as an entirely new form&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linda</title>
		<link>http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/comment-page-1/#comment-2791</link>
		<dc:creator>Linda</dc:creator>
		<pubDate>Wed, 30 Jul 2008 03:49:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=168#comment-2791</guid>
		<description>Hi there,

Have anyone experience where the schema has change?

I used the code and the workflow run somehow the InfoPath Schema of the xml file has change.

Regards,

Linda.</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>Have anyone experience where the schema has change?</p>
<p>I used the code and the workflow run somehow the InfoPath Schema of the xml file has change.</p>
<p>Regards,</p>
<p>Linda.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/comment-page-1/#comment-1431</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 09 Apr 2008 15:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=168#comment-1431</guid>
		<description>You can find this from the form itself. I think it&#039;s one of the properties of the .XSN file itself. Try opening the .XSN in Infopath and checking for properties (under the file menu) there.

As you&#039;ve rightly noticed, Infopath creates a unique namespace for your form - based on it&#039;s creation/update date, I think. 

(I&#039;m no Infopath expert!)

EDIT: Took a look, and the namespace under the File&gt;Properties isn&#039;t quite right - some colons have been replaced by underscores.
&lt;a href=&quot;http://blogs.msdn.com/mahuja/archive/2008/03/31/passing-query-string-to-a-infopath-2007-form.aspx&quot; rel=&quot;nofollow&quot;&gt;There is some good advice from Madhur&lt;/a&gt; - which is how I think I&#039;ve done this in the past, actually (a long, long time ago):

&lt;blockquote&gt;To find out your namespace, rename the .xsn file to .cab and open the template.xml file&lt;/blockquote&gt;

</description>
		<content:encoded><![CDATA[<p>You can find this from the form itself. I think it&#8217;s one of the properties of the .XSN file itself. Try opening the .XSN in Infopath and checking for properties (under the file menu) there.</p>
<p>As you&#8217;ve rightly noticed, Infopath creates a unique namespace for your form &#8211; based on it&#8217;s creation/update date, I think. </p>
<p>(I&#8217;m no Infopath expert!)</p>
<p>EDIT: Took a look, and the namespace under the File>Properties isn&#8217;t quite right &#8211; some colons have been replaced by underscores.<br />
<a href="http://blogs.msdn.com/mahuja/archive/2008/03/31/passing-query-string-to-a-infopath-2007-form.aspx" rel="nofollow">There is some good advice from Madhur</a> &#8211; which is how I think I&#8217;ve done this in the past, actually (a long, long time ago):</p>
<blockquote><p>To find out your namespace, rename the .xsn file to .cab and open the template.xml file</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omar Formacio</title>
		<link>http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/comment-page-1/#comment-1405</link>
		<dc:creator>Omar Formacio</dc:creator>
		<pubDate>Fri, 04 Apr 2008 00:14:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=168#comment-1405</guid>
		<description>What is the NamespaceManager for InfoPath 2007 Form?

&quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-06-08T14:13:41&quot;);&quot;</description>
		<content:encoded><![CDATA[<p>What is the NamespaceManager for InfoPath 2007 Form?</p>
<p>&#8220;http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-06-08T14:13:41&#8243;);&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/comment-page-1/#comment-17</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 07 Dec 2007 19:45:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=168#comment-17</guid>
		<description>Thanks for your help! Writing back to Infopath xml should be simple, but has proven rather difficult. Your article saved me hours of work!
Thanks for the great post!</description>
		<content:encoded><![CDATA[<p>Thanks for your help! Writing back to Infopath xml should be simple, but has proven rather difficult. Your article saved me hours of work!<br />
Thanks for the great post!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
