<?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>Workflow</title><link>https://www.infopathdev.com:443/forums/50.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Writing data back to the infopath form from workflow</title><link>https://www.infopathdev.com:443/forums/thread/32846.aspx</link><pubDate>Mon, 06 Oct 2008 17:23:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32846</guid><dc:creator>dmlavigne1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=32846</wfw:commentRss><description>&lt;p&gt;I have a multistate approval workflow that is started off of an infopath form library.&amp;nbsp; Using the workflowproperties object, I can load the form into an xml document in memory and manipulate it via nodes.&amp;nbsp; Details on how I am doing it can be found here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/"&gt;http://www.novolocus.com/2006/08/15/update-infopath-forms-from-within-workflow/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;My issue arises when there is a complex or repeating control on the page such as a Contact Selector.&amp;nbsp; If one of those conrols exists on the page, I can read the data but as soon as I save the data and try to open the form, I get the dreaded “Schema validation found non-datatype errors”. It corrupts or changes the schema&amp;nbsp;even on a non-change save (IE where no data is changed).&amp;nbsp; What would I have to do from an XML pre-save side to make sure that the schema is not messed up?&lt;/p&gt;
&lt;p&gt;I have already read about the &amp;quot;nil&amp;quot; node thing and I am not changing any nodes&amp;nbsp;that were null.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Has anyone else seen this issue?&amp;nbsp; Any help is appreciated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>