<?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: "Schema validation found non-data type errors" - a cause other than nil</title><link>https://www.infopathdev.com:443/forums/thread/97452.aspx</link><pubDate>Tue, 13 May 2014 11:33:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97452</guid><dc:creator>rai.shekhar.chandra</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97452.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=97452</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://walisystems.com/articles/SPS/dropdown2/sharepoint_list_data.htm"&gt;http://walisystems.com/articles/SPS/dropdown2/sharepoint_list_data.htm&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The source code from above link is running just fine. When I downloaded the code and run on server it runs fine and all values from list populates. But when I run it from my own solution it does not populate and gives this error.&lt;/p&gt;&lt;p&gt;Microsoft.Office.InfoPath.Server.SolutionLifetime.SchemaValidationException: Schema validation found non-datatype errors.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Server.SolutionLifetime.SchemaValidation.Validate(Document document, XPathNavigator subtreeToValidate, XmlOperation operation)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Server.DocumentLifetime.XmlNotificationManager.DoSchemaValidation(XmlNodeChangedEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Server.DocumentLifetime.XmlNotificationManager.NodeChangedHandler(Object sender, DomEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Server.Xml.DomEvents.FireQueuedEvents()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Server.Xml.DomEvents.AfterEventHandler(Object sender, XmlNodeChangedEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlDocument.AfterEvent(XmlNodeChangedEventArgs args)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlNode.AfterEvent(XmlNodeChangedEventArgs args)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlNode.InsertAfter(XmlNode newChild, XmlNode refChild)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.DocumentXmlWriter.Close(WriteState currentState)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlWellFormedWriter.Close()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XPath.XPathNavigator.InsertAfter(XmlReader newSibling)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XPath.XPathNavigator.InsertAfter(XPathNavigator newSibling)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Server.Xml.XPath.InfoPathXPathNavigator.InsertAfter(XPathNavigator newSibling)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Server.Xml.XPath.XPathNavigatorHost.&amp;lt;&amp;gt;c__DisplayClass58.&amp;lt;InsertAfter&amp;gt;b__57()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMExceptionManager.ExecuteOMCallWithExceptions(OMCall d, ExceptionFilter exceptionFilter)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMSecurityContext.ExecuteOMCall(Solution solution, SecurityLevel methodSecurityLevel, ExceptionFilter exceptionFilter, OMCall d)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Server.Xml.XPath.XPathNavigatorHost.InsertAfter(XPathNavigator newSibling)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at testing1.FormCode.AddDepartment() in C:\Documents and Settings\chandrashekhar.rai\My Documents\InfoPath Projects\testing11\FormCode.cs:line 114&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any help is appreciated.&lt;/p&gt;</description></item><item><title>Re: "Schema validation found non-data type errors" - a cause other than nil</title><link>https://www.infopathdev.com:443/forums/thread/90556.aspx</link><pubDate>Mon, 10 Jun 2013 20:49:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90556</guid><dc:creator>esb1922</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90556.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=90556</wfw:commentRss><description>&lt;p&gt;Not sure what I do wrong but am still getting that error&lt;br /&gt;Not the nil, the fields&amp;#39; order is correct, I have a container group as the current node&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t even know how to get help without showing my form and code&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: "Schema validation found non-data type errors" - a cause other than nil</title><link>https://www.infopathdev.com:443/forums/thread/75572.aspx</link><pubDate>Wed, 22 Feb 2012 05:36:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75572</guid><dc:creator>pknerist</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75572.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=75572</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;strong&gt;Hi Chris,&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks for writing this informative Post. I was just wondering why I am not able to append a child to the node. This post save me a lot of time.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks Once Again!! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: "Schema validation found non-data type errors" - a cause other than nil</title><link>https://www.infopathdev.com:443/forums/thread/60714.aspx</link><pubDate>Tue, 26 Oct 2010 16:24:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60714</guid><dc:creator>dansam100</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60714.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60714</wfw:commentRss><description>&lt;p&gt;Great post!&lt;/p&gt;
&lt;p&gt;I had initially thought it would append the node despite the fact that they would be out of sequence and it will still work.&lt;/p&gt;
&lt;p&gt;I guess another fix to this is to make the repeating field the last child in the section because the order in the schema doesn&amp;#39;t matter when you create the form visuals.&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;</description></item><item><title>Re: "Schema validation found non-data type errors" - a cause other than nil</title><link>https://www.infopathdev.com:443/forums/thread/35200.aspx</link><pubDate>Wed, 03 Dec 2008 10:42:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35200</guid><dc:creator>Samson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35200.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35200</wfw:commentRss><description>&lt;p&gt;Thanks dude 

Your post helped me
&lt;/p&gt;</description></item><item><title>"Schema validation found non-data type errors" - a cause other than nil</title><link>https://www.infopathdev.com:443/forums/thread/29140.aspx</link><pubDate>Wed, 04 Jun 2008 00:23:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29140</guid><dc:creator>ChrisBacon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29140.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29140</wfw:commentRss><description>&lt;p&gt;I was trying to append rows to a table in code and kept getting the dread &amp;quot;Schema validation found non-data type errors&amp;quot; error. It wasn&amp;#39;t the nil error and it wasn&amp;#39;t caused by children being out of sequence. The main data source was somewhat complex:&lt;/p&gt;&lt;p&gt;formFields&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; groupField1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  ...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; groupField2&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  ...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; groupField3 (repeating)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  field4&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;  field5&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; groupField6 (repeating)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; field7&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  field8&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp; groupField9&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; groupField10&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  ...&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I wanted to append rows to groupField6. Its Xpath was /formFields/groupField3/groupField6, so I built a groupField6 table row and tried to AppendChild to groupField3. Got the error, tried variations and got the same error. Finally noticed that the AppendChild description says “Creates a new child node at the end of the list of child nodes of the current node.” The current node was groupField3, but I was trying to AppendChild after groupField9 (the last child of groupField3). The solution is to insert a groupField6A before groupField6, move groupField6 under it, and use groupField6A as the current node. The same issue exists for appending children to groupField3; it needs to have a container group inserted above it. A simple but costly mistake, as most are.&lt;/p&gt;&lt;p&gt;Chris&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>