<?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 : OrderBy: Ideablade should throw an exception</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : OrderBy: Ideablade should throw an exception</description>
  <pubDate>Wed, 10 Jun 2026 15:48:03 -700</pubDate>
  <lastBuildDate>Fri, 27 Feb 2009 10:10:52 -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=1104</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>OrderBy: Ideablade should throw an exception :   Originally posted by DominiqueThe...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1104&amp;PID=3944#3944</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1104<br /><strong>Posted:</strong> 27-Feb-2009 at 10:10am<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by Dominique</strong></em><br /><br /><br>The problem was that I had the same order clause added twice to a spanQuery I think that the ideablade framework should check for that and give a good exception as it will result to an error in the core dotnet.<br><br>code snippet that illustrated the faulty code<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aSpanQuery.AddSpan(EntityRelations.Order_OrderLines)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aSpanQuery.AddOrderBy(<font color="#000099">Order.ShipDateEntityColumn</font>, System.ComponentModel.ListSortDirection.Descending) -- (a)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aSpanQuery.AddOrderBy(<font color="#0033ff">Order.ShipDateEntityColumn,</font> System.ComponentModel.ListSortDirection.Descending) ' OOPS same as (a)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim tmp As EntityList(Of Order) = mPersistMng.GetEntities(Of Order)(aSpanQuery) 'KABOUM!<br></td></tr></table><br><br>Thanks for the heads up, Dominique: I've entered this as a bug. We'll see if we can get you a better error message.<br><br>Regards<br>Greg Dunn<br>IdeaBlade<br><br>]]>
   </description>
   <pubDate>Fri, 27 Feb 2009 10:10:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1104&amp;PID=3944#3944</guid>
  </item> 
  <item>
   <title>OrderBy: Ideablade should throw an exception : HiI upgrade to the latest DF version...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1104&amp;PID=3943#3943</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=60" rel="nofollow">Dominique</a><br /><strong>Subject:</strong> 1104<br /><strong>Posted:</strong> 27-Feb-2009 at 9:11am<br /><br />Hi<br><br>I upgrade to the latest DF version (from 3.5.something to 3.6.x)&nbsp; and started migrating a project in a new code tree as a maintenance task. <br>After I was finished to fix the references that had been changed and get my app to compile I was getting a weird error when starting the app, getting this exception<br><br>System.IndexOutOfRangeException was unhandled by user code<br>&nbsp; Message="Index was outside the bounds of the array."<br>&nbsp; Source="System.Data"<br>&nbsp; StackTrace:<br>&nbsp;&nbsp; at System.Data.Select.CreateIndex()&nbsp;&nbsp;&nbsp; <br>at System.Data.Select.SelectRows()&nbsp;&nbsp; <br>&nbsp;at System.Data.DataTable.Select(String filterExpression, String sort)&nbsp;&nbsp;&nbsp; <br>at IdeaBlade.Persistence.EntityQuery.FindRows(PersistenceManager pPersistenceManager)&nbsp;&nbsp;&nbsp; <br>at IdeaBlade.Persistence.PersistenceManager.QueryEntityFinder.FindRows()&nbsp;&nbsp;&nbsp; <br>at IdeaBlade.Persistence.PersistenceManager.MergeAndReturnUsingCache(IEntityFinder pEntityFinder, DataSet pFetchedDataSet, FixupCacheAndUpdateResultsCallback pFixupCallback, WorkState pWorkState)&nbsp;&nbsp;&nbsp; <br>at IdeaBlade.Persistence.PersistenceManager.ProcessFetchedDataSet(DataSet pFetchedDataSet, WorkState pWorkState)&nbsp;&nbsp;&nbsp; <br>at IdeaBlade.Persistence.PersistenceManager.XFetch(IEntityFinder pEntityFinder, WorkState pWorkState)&nbsp;&nbsp;&nbsp; <br>at IdeaBlade.Persistence.PersistenceManager.XFetch(IEntityQuery pEntityQuery, QueryStrategy pQueryStrategy, WorkState pWorkState)&nbsp;&nbsp;&nbsp; <br>at IdeaBlade.Persistence.PersistenceManager.XGetEntities(IEntityQuery pEntityQuery, QueryStrategy pQueryStrategy, WorkState pWorkState)&nbsp;&nbsp;&nbsp; <br>at IdeaBlade.Persistence.PersistenceManager.GetEntities&#091;T&#093;(IEntityQuery pEntityQuery, QueryStrategy pQueryStrategy) <br>&nbsp;&nbsp; at IdeaBlade.Persistence.PersistenceManager.GetEntities&#091;T&#093;(IEntityQuery pEntityQuery)<br>&nbsp;&nbsp;&nbsp;&nbsp; &#091;cut out calls in my app&#093;<br><br>Because I load the data in the background it took me some time to find the source of the problem because the exception message was not very helpful.<br>The problem was that I had the same order clause added twice to a spanQuery I think that the ideablade framework should check for that and give a good exception as it will result to an error in the core dotnet.<br>code snippet that illustrated the faulty code<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aSpanQuery.AddSpan(EntityRelations.Order_OrderLines)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aSpanQuery.AddOrderBy(<font color="#000099">Order.ShipDateEntityColumn</font>, System.ComponentModel.ListSortDirection.Descending) -- (a)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aSpanQuery.AddOrderBy(<font color="#0033ff">Order.ShipDateEntityColumn,</font> System.ComponentModel.ListSortDirection.Descending) ' OOPS same as (a)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim tmp As EntityList(Of Order) = mPersistMng.GetEntities(Of Order)(aSpanQuery) 'KABOUM!<br><br><br><br>]]>
   </description>
   <pubDate>Fri, 27 Feb 2009 09:11:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1104&amp;PID=3943#3943</guid>
  </item> 
 </channel>
</rss>