<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Exception in GetEnumerator</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Exception in GetEnumerator</description>
  <pubDate>Wed, 13 May 2026 16:08:25 -700</pubDate>
  <lastBuildDate>Mon, 28 Feb 2011 10:58:31 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2533</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Exception in GetEnumerator : Hi jsobell;Thanks for the feedback....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2533&amp;PID=10086#10086</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2533<br /><strong>Posted:</strong> 28-Feb-2011 at 10:58am<br /><br />Hi jsobell;<div><br></div><div>Thanks for the feedback. Let me try to repro this and file a bug report as needed.</div>]]>
   </description>
   <pubDate>Mon, 28 Feb 2011 10:58:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2533&amp;PID=10086#10086</guid>
  </item> 
  <item>
   <title>Exception in GetEnumerator : An IdeaBlade exception is thrown...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2533&amp;PID=10084#10084</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 2533<br /><strong>Posted:</strong> 27-Feb-2011 at 6:45pm<br /><br />An IdeaBlade exception is thrown in (non-SilverLight) code when compound primary key contains NULL.<br>We have a simple view on our database with an outer join, and in flagging the fields we thought was a unique key, it turns out that one element could be NULL due to the OUTER clause.&nbsp; This raises an internal exception when the enumerator is fetched.<br>While this is a situation to avoid, it's extremely difficult to identify the cause of the exception, sp perhaps it needs either a check internally so meaningful feedback can be displayed?<br><br>Cheers,<br>&nbsp;Jason<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var datarows = from datarow in _context.ExportAllResponseDatas<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; where datarow.QuestionnaireVersionId == qversionid<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp; datarow.LastUpdated &lt;= _snapshotTime<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp; (datarow.ResponseState.HasValue &amp;&amp; datarow.ResponseState.Value != 1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; orderby datarow.ResponseSetID<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select datarow;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#ff0000">var dataenumerator = datarows.GetEnumerator();</font><br><br>Exception trace is show below.<br><br>IdeaBlade.EntityModel.EntityServerException: {"Object reference not set to an instance of an object."}<br><br>StackTrace:<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.HandleEntityServerException(Exception ex, Boolean tryToHandle, PersistenceOperation operation, Boolean throwOnError)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteServerQuery(IEntityQuerySurrogate entityQuery)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteFetch(IEntityFinder finder)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryFinder.Execute()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteQueryCore(IEntityQuery query, Boolean isAsync)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteQuery&#091;T&#093;(IEntityQuery`1 query)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryExtensions.Execute&#091;T&#093;(IEntityQuery`1 query)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQuery`1.GetEnumerator()<br>&nbsp;&nbsp; at QuestMetrics.QuestServer.DataExportService.DataExporterBase.ExportData(Func`2 progresscallback) in C:\Source\Stuff\DataExporterBase.cs:line 320<br><br>InnerException:<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityServerProxy.CheckConnection(Exception e)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityServerProxy.Fetch(SessionBundle bundle, IEntityQuerySurrogate query)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteServerQuery(IEntityQuerySurrogate entityQuery)<br><br><br><br>]]>
   </description>
   <pubDate>Sun, 27 Feb 2011 18:45:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2533&amp;PID=10084#10084</guid>
  </item> 
 </channel>
</rss>