<?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: Object reference not set to an instance of an object</title><link>https://www.infopathdev.com:443/forums/thread/35085.aspx</link><pubDate>Mon, 01 Dec 2008 13:04:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35085</guid><dc:creator>tylkomat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35085.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35085</wfw:commentRss><description>&lt;p&gt;Ah nice, thank you. It works now fine in the Infopath, but I get the following error when viewing the form in the browser.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Unexpected end of file while parsing Name has occurred. Line 1, position 557. &lt;br /&gt;&lt;br /&gt;System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 1, position 557. &lt;br /&gt;at System.Xml.XmlTextReaderImpl.Throw(Exception e) &lt;br /&gt;at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) &lt;br /&gt;at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg) &lt;br /&gt;at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32&amp;amp; colonPos) &lt;br /&gt;at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag) &lt;br /&gt;at System.Xml.XmlTextReaderImpl.ParseEndElement() &lt;br /&gt;at System.Xml.XmlTextReaderImpl.ParseElementContent() &lt;br /&gt;at System.Xml.XmlTextReaderImpl.Read() &lt;br /&gt;at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) &lt;br /&gt;at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) &lt;br /&gt;at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) &lt;br /&gt;at System.Xml.XmlDocument.Load(XmlReader reader) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.Xml.InfoPathXmlDocument.Load(XmlReader reader) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.DataObject.&amp;lt;&amp;gt;c__DisplayClass3.&amp;lt;.ctor&amp;gt;b__0() &lt;br /&gt;at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock) &lt;br /&gt;at Microsoft.Office.Server.Diagnostics.ULS.SendWatsonOnExceptionTag(ULSTagID tagID, ULSCat categoryID, String output, Boolean fRethrowException, TryBlock tryBlock, CatchBlock catchBlock, FinallyBlock finallyBlock) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.DataObject..ctor(EnhancedBinaryReader reader, Solution solution) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.DataObjects.&amp;lt;&amp;gt;c__DisplayClass2.&amp;lt;.ctor&amp;gt;b__0(EnhancedBinaryReader innerReader, DataObject&amp;amp; newObject) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.Serialization.EnhancedBinaryReader.ReadObjectMap[KeyT,ValueT](Dictionary`2 map, ItemReaderDelegate`1 readKey, ItemReaderDelegate`1 readValue) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.Serialization.EnhancedBinaryReader.ReadObjectMap[ValueT](Dictionary`2 map, ItemReaderDelegate`1 readValue) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.DataObjects..ctor(EnhancedBinaryReader reader, Solution solution) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionState.DesterilizeVersion1(EnhancedBinaryReader reader, Solution solution) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionState..ctor(EnhancedBinaryReader reader, Solution solution) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionState.CreateFromByteArray(Byte[] serializedSessionState, Byte[] serializedVersionState, Solution solution) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionStateManager.GetSessionState(HttpContext context, String editingSessionID, Solution solution) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.LoadFromSession(HttpContext context, SPSite contextSite, EventLogStart eventLogStart, Solution solution) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.Controls.PostbackPage.&amp;lt;&amp;gt;c__DisplayClass1.&amp;lt;ProcessRequest&amp;gt;b__0()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edit: Forget about that. I had an unused secondary Dataconnection.&lt;/p&gt;
&lt;p&gt;Thanks again to all who gave advice.&lt;/p&gt;</description></item><item><title>Re: Object reference not set to an instance of an object</title><link>https://www.infopathdev.com:443/forums/thread/35084.aspx</link><pubDate>Mon, 01 Dec 2008 12:45:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35084</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35084.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35084</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try the following code.&lt;/p&gt;
&lt;p&gt;XPathNavigator xnFarben = e.Site.SelectSingleNode(&amp;quot;..//my:tempFarbe[../my:ddArtikelnummer = ../../../my:Artikelnummer]&amp;quot;, NamespaceManager);&lt;/p&gt;
&lt;p&gt;If(xnFarben == null)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;return;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;String sFarben = xnFarben.InnerXml;&lt;/p&gt;
&lt;p&gt;Write the next code lines.&lt;/p&gt;</description></item><item><title>Re: Object reference not set to an instance of an object</title><link>https://www.infopathdev.com:443/forums/thread/35068.aspx</link><pubDate>Mon, 01 Dec 2008 08:44:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35068</guid><dc:creator>tylkomat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35068</wfw:commentRss><description>&lt;p&gt;Are there any other ideas&amp;nbsp; regarding my problem ?&lt;/p&gt;</description></item><item><title>Re: Object reference not set to an instance of an object</title><link>https://www.infopathdev.com:443/forums/thread/34986.aspx</link><pubDate>Thu, 27 Nov 2008 12:19:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34986</guid><dc:creator>tylkomat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34986.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34986</wfw:commentRss><description>&lt;p&gt;There are 3 drop down list in my form. The first lets you select a category, with this you will be able to select the articles of this category and through selecting an article you can select a color. The error occurs&amp;nbsp;every time, if there are colors for an article or not. &lt;/p&gt;
&lt;p&gt;Artikelnummer is the value, which was selected from the dropdown. ddArtikelnummer are the values with which the dropdown list was filled.&lt;/p&gt;
&lt;p&gt;So there has to be always a matching one. tempFarbe is not filled every time, because not every article has a color, but that should not be the problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The stack trace points to the line&amp;nbsp;where I use the xnFarben object for the first time, which is line 307 &lt;font color="#008080" size="2"&gt;String&lt;/font&gt;&lt;font size="2"&gt; sFarben = xnFarben.InnerXml; in my code. But the string holds the correct value afterwards.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Object reference not set to an instance of an object</title><link>https://www.infopathdev.com:443/forums/thread/34984.aspx</link><pubDate>Thu, 27 Nov 2008 11:48:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34984</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34984.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34984</wfw:commentRss><description>&lt;p&gt;That code &lt;em&gt;seems&lt;/em&gt; ok, but can you guarantee that the XPath &lt;font color="#800000" size="2"&gt;&amp;quot;..//my:tempFarbe[../my:ddArtikelnummer = ../../../my:Artikelnummer]&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, will always find a matching node(i.e., that there will always be a child ddArtikelnummer that matches the grandparent Artikelnummer)?&amp;nbsp; If not, that error is going to occur.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Does the stack trace that you are showing in the message box provide line numbers, and if so, which line in the code above is it pointing out as the line where the error occurred?&lt;/p&gt;</description></item><item><title>Re: Object reference not set to an instance of an object</title><link>https://www.infopathdev.com:443/forums/thread/34982.aspx</link><pubDate>Thu, 27 Nov 2008 10:52:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34982</guid><dc:creator>tylkomat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34982.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34982</wfw:commentRss><description>&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Jimmy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Could you show us the line of code that is generating the error,&amp;nbsp;and perhaps a bit more of the code above and below it?&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Wow you guys are fast. Here is the&amp;nbsp;complete function for the dropdown. I have a Sharepoint list from which I retrieve the values. The retrieving is done a dropdown before. The tempFarbe-value comes from a lookup inside that list. The tempFarbe holds then a String like: &amp;quot;2;#red;#23;#yellow&amp;quot; something like that, because of the lookup.&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font color="#000000" size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font color="#000000" size="2"&gt; Artikelnummer_Changed(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;font color="#000000" size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;XmlEventArgs&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;try&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;//MessageBox.Show(e.Site.SelectSingleNode(&amp;quot;//my:tempFarbe[../my:ddArtikelnummer = ../../../my:Artikelnummer]&amp;quot;, NamespaceManager).OuterXml);&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; xnFarben = e.Site.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;..//my:tempFarbe[../my:ddArtikelnummer = ../../../my:Artikelnummer]&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;String&lt;/font&gt;&lt;font size="2"&gt; sFarben = xnFarben.InnerXml;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;sFarben = sFarben.Replace(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;#&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;,&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;char&lt;/font&gt;&lt;font size="2"&gt;[] split = {&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;;&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;};&lt;/p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;String&lt;/font&gt;&lt;font size="2"&gt;[] aFarben = sFarben.Split(split);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;List&lt;/font&gt;&lt;font size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt;&amp;gt; nodesToDelete = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;List&lt;/font&gt;&lt;font size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt;&amp;gt;();&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; option &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;font size="2"&gt; xnFarben.Select(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;..//my:ddFarbe&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager))&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;nodesToDelete.Add(option);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;//delete all nodes on the list&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; option &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;font size="2"&gt; nodesToDelete)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;option.DeleteSelf();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;for&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;font size="2"&gt; i = 0; i &amp;lt; aFarben.Length; i++)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (i % 2 == 1)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;String&lt;/font&gt;&lt;font size="2"&gt; sDDFarben = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;lt;my:ddFarbe&amp;gt;&amp;lt;my:ddFarbeNr&amp;gt;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;+ aFarben[i-1] +&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;lt;/my:ddFarbeNr&amp;gt;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;+&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;lt;my:ddFarbeText&amp;gt;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;+ aFarben[i] +&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;lt;/my:ddFarbeText&amp;gt;&amp;lt;/my:ddFarbe&amp;gt;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;xnFarben.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;../my:ddFarben&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).AppendChild(sDDFarben);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;catch&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#008080" size="2"&gt;Exception&lt;/font&gt;&lt;font size="2"&gt; ex)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;MessageBox&lt;/font&gt;&lt;font size="2"&gt;.Show(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Message:\n&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + ex.Message + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;\nDetail:\n&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;\nStackTrace\n&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + ex.StackTrace);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;chandrakanth:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Since it is an Xpath issue we cant figure it out without knowing your main schema.So provide your schema so i can definitely help you.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t you see the image ? This is the main schema. Can I retrieve the XML String of the schema somewhere ?&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Object reference not set to an instance of an object</title><link>https://www.infopathdev.com:443/forums/thread/34979.aspx</link><pubDate>Thu, 27 Nov 2008 10:10:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34979</guid><dc:creator>chandrakanth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34979.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34979</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Since it is an Xpath issue we cant figure it out without knowing your main schema.So provide your schema so i can definitely help you.&lt;/p&gt;</description></item><item><title>Re: Object reference not set to an instance of an object</title><link>https://www.infopathdev.com:443/forums/thread/34976.aspx</link><pubDate>Thu, 27 Nov 2008 09:49:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34976</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34976.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34976</wfw:commentRss><description>&lt;p&gt;Could you show us the line of code that is generating the error,&amp;nbsp;and perhaps a bit more of the code above and below it?&lt;/p&gt;</description></item><item><title>Object reference not set to an instance of an object</title><link>https://www.infopathdev.com:443/forums/thread/34973.aspx</link><pubDate>Thu, 27 Nov 2008 09:36:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34973</guid><dc:creator>tylkomat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34973.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34973</wfw:commentRss><description>&lt;p&gt;&lt;img title="main data source" style="WIDTH:196px;HEIGHT:651px;" height="651" alt="main data source" src="http://img3.imagebanana.com/img/y60o4y/maindatasource.jpg" width="196" align="left" /&gt;Hello there, I have 3 connected dropdown lists in my Infopath form. Selecting values from the first dropdown filters the entries in the second one and selecting a value in the second one will filter the entries of the third one. When selecting a value the second dropdown I get the &amp;quot;Object reference not set to an instance of an object&amp;quot; error. Despite of this error the form works just fine. It even retrieves the right values, but through the error it will not work as a browser form. Everything is located in my Main data source which you can see on the left side.&lt;/p&gt;
&lt;p&gt;When changing the second dropdown the function &lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font size="2"&gt; Artikelnummer_Changed(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;XmlEventArgs&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;will be called. &lt;/p&gt;
&lt;p&gt;The pointer is now located at Artikelnummer. I want to retrieve the values for tempFarbe, but only if ddArtikelnummer matches Artikelnummer:&lt;/p&gt;
&lt;p&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; xnFarben = e.Site.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;..//my:tempFarbe[../my:ddArtikelnummer = ../../../my:Artikelnummer]&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;When I now try to use the xnFarben object, I get the &amp;quot;Object reference not set to an instance of an object&amp;quot; error. When I move on the right values are in:&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font color="#008080" size="2"&gt;
&lt;p&gt;String&lt;/font&gt;&lt;font size="2"&gt; sFarben = xnFarben.InnerXml;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;I can&amp;#39;t find any Error, I hope someone can help me. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;Thanks in advance&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;regards Matthias&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;PS: If you have problems with the german I can translate the names. But I don&amp;#39;t think it will be necessary.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>