<?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 : Getting error while fetching data</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Getting error while fetching data</description>
  <pubDate>Thu, 11 Jun 2026 03:07:37 -700</pubDate>
  <lastBuildDate>Tue, 03 Jun 2008 08:39:21 -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=817</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>Getting error while fetching data : Keval, I&amp;#039;m glad the workaround...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=3019#3019</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 817<br /><strong>Posted:</strong> 03-Jun-2008 at 8:39am<br /><br />Keval, I'm glad the workaround works.&nbsp; I'm sorry though that I wasn't able to reproduce the problem, so don't know if we've fixed it in current bits.&nbsp;&nbsp; Thanks for your patience.]]>
   </description>
   <pubDate>Tue, 03 Jun 2008 08:39:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=3019#3019</guid>
  </item> 
  <item>
   <title>Getting error while fetching data : Hi Kim,  Thanks for your soluable...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=3014#3014</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=302" rel="nofollow">keval</a><br /><strong>Subject:</strong> 817<br /><strong>Posted:</strong> 02-Jun-2008 at 10:06pm<br /><br />Hi Kim,<DIV>&nbsp;</DIV><DIV>Thanks for your soluable reply.</DIV><DIV>&nbsp;</DIV><DIV>It worked when i set <strong>QueryStrategy to DataSourceOnly</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV>As for your knowledge, i m using SQL Server 2005 as a datasource.</DIV><DIV>&nbsp;</DIV><DIV>Thanks again.</DIV>]]>
   </description>
   <pubDate>Mon, 02 Jun 2008 22:06:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=3014#3014</guid>
  </item> 
  <item>
   <title>Getting error while fetching data : Hi Keval,  I&amp;#039;ve tried reproducing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=3012#3012</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 817<br /><strong>Posted:</strong> 02-Jun-2008 at 12:00pm<br /><br />Hi Keval,<DIV>&nbsp;</DIV><DIV>I've tried reproducing the problem with the ParametersXml data you posted, yet don't get an error.&nbsp; I also tried changing the column data type from nvarchar(max) to xml to text - all without success in reproducing the problem.&nbsp; What version of SQL Server are you using?</DIV><DIV>&nbsp;</DIV><DIV>I'm stuck right now in diagnosing this.&nbsp; Since the exception is occurring when retrieved data is merged into cache, you can try changing the QueryStrategy to see if that gets around the problem.&nbsp; Try a QueryStrategy of DataSourceOnly to see what happens.</DIV>]]>
   </description>
   <pubDate>Mon, 02 Jun 2008 12:00:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=3012#3012</guid>
  </item> 
  <item>
   <title>Getting error while fetching data : Hi Kim,  I can not give u the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=3010#3010</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=302" rel="nofollow">keval</a><br /><strong>Subject:</strong> 817<br /><strong>Posted:</strong> 02-Jun-2008 at 4:19am<br /><br />Hi Kim,<DIV>&nbsp;</DIV><DIV>I can not give u the database and solution because its a secure thing and contract with the client(you can understand)</DIV><DIV>&nbsp;</DIV><DIV>But yes i think it might be a problem with data and same thing is happened with another entity.(Same error)</DIV><DIV>In both the cases, common thing is XML data. both table includes xml data.</DIV><DIV>&nbsp;</DIV><DIV>In my case, xml is not too large. Following is the sample xml that is stored in DB for each record and there are 13 records satisfy the condition.</DIV><DIV>&nbsp;</DIV><DIV><strong>"&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;ClaimPaymentParameterList xmlns:xsi="</strong><a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank"><strong>http://www.w3.org/2001/XMLSchema-instance</strong></A><strong>" xmlns:xsd="</strong><a href="" target="_blank"><Amount>7.22</Amount><PayMember>true</PayMember><PayAch>true</PayAch><AllowPartialPayment>false</AllowPartialPayment><AllowCreditPayment>false</AllowCreditPayment><CheckFee>0</CheckFee></ClaimPaymenteterList'><strong>http://www.w3.org/2001/XMLSchema"&gt;&lt;Amount&gt;7.22&lt;/Amount&gt;&lt;PayMember&gt;true&lt;/PayMember&gt;&lt;PayAch&gt;true&lt;/PayAch&gt;&lt;AllowPartialPayment&gt;false&lt;/AllowPartialPayment&gt;&lt;AllowCreditPayment&gt;false&lt;/AllowCreditPayment&gt;&lt;CheckFee&gt;0&lt;/CheckFee&gt;&lt;/ClaimPaymentParameterList</strong></A><strong>&gt;</strong>"</DIV><DIV>&nbsp;</DIV><DIV>Can u please suggest me what can be the solution?</DIV><DIV>Thanks in advance.</DIV>]]>
   </description>
   <pubDate>Mon, 02 Jun 2008 04:19:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=3010#3010</guid>
  </item> 
  <item>
   <title>Getting error while fetching data : Thanks for the files.   I ran...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=2998#2998</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 817<br /><strong>Posted:</strong> 29-May-2008 at 9:09am<br /><br />Thanks for the files.&nbsp; <DIV>&nbsp;</DIV><DIV>I ran some simple tests with dummy data and couldn't reproduce the problem, so I think it might be data-related.&nbsp; When you see the failure retrieving multiple records, how large is the ParametersXml field data?&nbsp; Also, are you running with a BOS?</DIV><DIV>&nbsp;</DIV><DIV>As I mentioned before, we did have several NullReferenceException problems with queries in Beta1 that should now be fixed in our soon-to-be-released Beta2 drop, so you might want to wait for Beta2 to see if this problem has been fixed.&nbsp; If you don't want to wait (please don't ask for how long <img src="http://www.ideablade.com/forum/smileys/smiley1.gif" height="17" width="17" border="0" align="absmiddle" alt="Smile" />), if it's not too much trouble you can&nbsp;send us both your database and a solution showing the failure.&nbsp;&nbsp;&nbsp; (Send to <a href="mailto:support@ideablade.com" target="_blank">support@ideablade.com</A>, attention Kim).</DIV>]]>
   </description>
   <pubDate>Thu, 29 May 2008 09:09:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=2998#2998</guid>
  </item> 
  <item>
   <title>Getting error while fetching data :  Hi  Followig is the link to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=2996#2996</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=302" rel="nofollow">keval</a><br /><strong>Subject:</strong> 817<br /><strong>Posted:</strong> 28-May-2008 at 9:41pm<br /><br /><a href="http://www.ideablade.com/forum/uploads/20080529_003532_ModelFiles.rar" target="_blank"><DIV>Hi</DIV><DIV>&nbsp;</DIV><DIV>Followig is the link to the csdl and other files that u suggetsed</DIV><DIV>&nbsp;</DIV><DIV>uploads/20080529_003532_ModelFiles.rar</A></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>As&nbsp;i found yesterday is that it worked for the insert and update and retreival for single record</DIV><DIV>&nbsp;</DIV><DIV>but when i retreive it for multiple records, it gives me the error</DIV><DIV>&nbsp;</DIV><DIV>There are no associations with the entity scheduledItem and nothing new than other entites as it is auto generated by Idablade model</DIV><DIV>&nbsp;</DIV><DIV>Following is the stacktrace of error</DIV><DIV><strong></strong>&nbsp;</DIV><DIV><strong>&nbsp;at IdeaBlade.EntityModel.v4.EntityManager.MergeAndReturnUsingCache(IEntityFinder finder, DataQueryResultCollection dqResults)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ProcessFetchedData(DataQueryResultCollection dqResults, IEntityFinder finder)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteFetch(IEntityFinder finder)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityQueryFinder.Execute()<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteQueryCore(IEntityQuery query, QueryStrategy strategy)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteQuery&#091;T&#093;(IEntityQuery query, QueryStrategy strategy, Boolean checkT)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityManager.ExecuteQuery&#091;T&#093;(IEntityQuery`1 query)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.v4.EntityQuery`1.GetEnumerator()<BR>&nbsp;&nbsp; at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)<BR>&nbsp;&nbsp; at System.Linq.Enumerable.ToList&#091;TSource&#093;(IEnumerable`1 source)<BR>&nbsp;&nbsp; at HETransactions.QPaymentWizard.BuildCollection(String memberID) in D:\Projects\HealthEquity\VSS\IdeaBLade Project Code\HealthEquity.root\HealthEquity\HETransactions\QPaymentWizard.cs:line 53</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV>And InnerException is </DIV><DIV><strong>Object reference not set to an instance of an object.</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV><strong>Thanks.</strong></DIV>]]>
   </description>
   <pubDate>Wed, 28 May 2008 21:41:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=2996#2996</guid>
  </item> 
  <item>
   <title>Getting error while fetching data : OK.   So is Dataset your sub-typed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=2993#2993</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 817<br /><strong>Posted:</strong> 28-May-2008 at 9:38am<br /><br />OK.&nbsp; <DIV>&nbsp;</DIV><DIV>So is Dataset your sub-typed EntityManager, and ScheduledItems a method returning an EntityQuery&lt;ScheduledItem&gt;?&nbsp; How many items should be returned by the query?</DIV><DIV>&nbsp;</DIV><DIV>You say you also get this exception when doing inserts or updates for entities of this type?&nbsp; I'm not sure I follow you.&nbsp; Does the exception occur when making the SaveChanges() call?</DIV><DIV>&nbsp;</DIV><DIV>What is different about the ScheduledItem entity than other entities in your model?&nbsp; Is in inherited from another entity?&nbsp; Does it have a multi-column key?&nbsp; Does it contain any complex types?&nbsp; What kinds of associations does it have with other entities?&nbsp; Can you post the csdl for this entity and for any associations it's a part of?</DIV><DIV>&nbsp;</DIV><DIV>Can you also post the full exception, including stack trace and inner exception(s), received when you run the query above?</DIV><DIV>&nbsp;</DIV><DIV>Thanks.</DIV>]]>
   </description>
   <pubDate>Wed, 28 May 2008 09:38:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=2993#2993</guid>
  </item> 
  <item>
   <title>Getting error while fetching data : Hi   Thanks for ur reply   Following...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=2991#2991</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=302" rel="nofollow">keval</a><br /><strong>Subject:</strong> 817<br /><strong>Posted:</strong> 27-May-2008 at 9:44pm<br /><br />Hi <DIV></DIV><DIV></DIV>Thanks for ur reply <DIV>&nbsp;</DIV><DIV>Following is the Query that i m using and it gives me the same error for inserting,updating or retrieving</DIV><DIV><FONT color=#2b91af size=3><P><strong>IEnumerable</strong></FONT><strong><FONT size=3>&lt;</FONT><FONT color=#2b91af size=3>ScheduledItem</FONT><FONT size=3>&gt; scheduledItems = Dataset.ScheduledItems.ToList&lt;</FONT><FONT color=#2b91af size=3>ScheduledItem</FONT><FONT size=3>&gt;();</P></FONT></strong></DIV><DIV>&nbsp;</DIV><DIV>And important thing is that i m facing problem for&nbsp;only one entity in whole model.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by keval - 27-May-2008 at 9:45pm</span>]]>
   </description>
   <pubDate>Tue, 27 May 2008 21:44:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=2991#2991</guid>
  </item> 
  <item>
   <title>Getting error while fetching data : Keval, please post the query for...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=2989#2989</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 817<br /><strong>Posted:</strong> 27-May-2008 at 10:25am<br /><br />Keval, please post the query for which you received this exception.&nbsp;&nbsp; Based on the QueryStrategy used, DevForce EF may first execute the query as a Linq to Entities query, and then again against the cache (to retrieve any local entities).&nbsp; You may have run into a situation where the particular query was not supported against cache.&nbsp; We've been trying to fix these types of problems, so hopefully yours will be fixed with the next beta.&nbsp; Please post a snippet&nbsp; of what you're doing so we can verify this.<DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV>Thanks.</DIV>]]>
   </description>
   <pubDate>Tue, 27 May 2008 10:25:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=2989#2989</guid>
  </item> 
  <item>
   <title>Getting error while fetching data :  Hi,  I m getting following...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=2987#2987</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=302" rel="nofollow">keval</a><br /><strong>Subject:</strong> 817<br /><strong>Posted:</strong> 26-May-2008 at 4:48am<br /><br /><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2></FONT></DIV><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2></FONT></DIV><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Hi,</FONT><DIV>&nbsp;</DIV><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>I m getting following error while fetching records from database</FONT></DIV><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2></FONT>&nbsp;</DIV><DIV><SPAN =msg><SPAN><strong><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Test method HETransactionsTests.QAccountSummaryTest.ExecuteActionBatch threw exception:&nbsp; System.Exception: Execution of query against the server was successful but execution of query against the local cache failed System.NullReferenceException: Object reference not set to an instance of an object..</FONT></strong></SPAN></SPAN></DIV><DIV><SPAN =msg><SPAN><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2></FONT></SPAN></SPAN>&nbsp;</DIV><DIV><SPAN =msg><SPAN><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2></FONT></SPAN></SPAN>&nbsp;</DIV><DIV><SPAN =msg><SPAN><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>can u please guide about this error, why this happens?</FONT></SPAN></SPAN></DIV>]]>
   </description>
   <pubDate>Mon, 26 May 2008 04:48:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=817&amp;PID=2987#2987</guid>
  </item> 
 </channel>
</rss>