<?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 : Refreshing Cache Oddness</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Refreshing Cache Oddness</description>
  <pubDate>Wed, 29 Jul 2026 08:54:58 -700</pubDate>
  <lastBuildDate>Thu, 18 Nov 2010 10:40:03 -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=2252</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>Refreshing Cache Oddness : Awesome, I&amp;#039;ll take a look...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=9158#9158</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=452" rel="nofollow">ken.nelson</a><br /><strong>Subject:</strong> 2252<br /><strong>Posted:</strong> 18-Nov-2010 at 10:40am<br /><br />Awesome, I'll take a look at it.&nbsp; Thanks again.]]>
   </description>
   <pubDate>Thu, 18 Nov 2010 10:40:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=9158#9158</guid>
  </item> 
  <item>
   <title>Refreshing Cache Oddness : I don&amp;#039;t have a workaround...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=9157#9157</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> 2252<br /><strong>Posted:</strong> 18-Nov-2010 at 10:38am<br /><br />I don't have a workaround for you, but there is an EAP build of 6.0.7 available which contains the fix for the problem.&nbsp; I sent you the download URL last week in reply to support case #9103, but if you haven't downloaded it yet I'll need to send you the new URL, since we've had another EAP build posted since then.]]>
   </description>
   <pubDate>Thu, 18 Nov 2010 10:38:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=9157#9157</guid>
  </item> 
  <item>
   <title>Refreshing Cache Oddness : Thanks Kim. Any updates or ideas...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=9156#9156</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=452" rel="nofollow">ken.nelson</a><br /><strong>Subject:</strong> 2252<br /><strong>Posted:</strong> 18-Nov-2010 at 10:09am<br /><br />Thanks Kim.&nbsp; Any updates or ideas how to work around this yet?&nbsp; ]]>
   </description>
   <pubDate>Thu, 18 Nov 2010 10:09:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=9156#9156</guid>
  </item> 
  <item>
   <title>Refreshing Cache Oddness : Hi Ken,  We got your email on...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=9105#9105</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> 2252<br /><strong>Posted:</strong> 13-Nov-2010 at 7:02pm<br /><br />Hi Ken,<DIV>&nbsp;</DIV><DIV>We got your email on Friday.&nbsp; I'll take a look at the sample on Monday and let you know what I find.</DIV>]]>
   </description>
   <pubDate>Sat, 13 Nov 2010 19:02:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=9105#9105</guid>
  </item> 
  <item>
   <title>Refreshing Cache Oddness : I finally freed up enough time...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=9104#9104</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=452" rel="nofollow">ken.nelson</a><br /><strong>Subject:</strong> 2252<br /><strong>Posted:</strong> 13-Nov-2010 at 10:15am<br /><br />I finally freed up enough time to put together a sample application that would replicate the problem consistently.&nbsp; Since my original post upgraded to version 6.0.6.1.&nbsp; I sent the sample to <a href="mailto:IdeaBladeSupportTrack@ideablade.com" target="_blank">IdeaBladeSupportTrack@ideablade.com</A>&nbsp;with &#091;#9103&#093; as the subject line.<DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV>It seems to be directly related to performing queries combined with calls to RemoveEntities.&nbsp; In the sample app, no modifications of any kind are happening to the data.&nbsp; It's literally, query, RemoveEntities, query, exception, and it&nbsp;seems to be query dependent (in other words, not all queries will result in the issue).</DIV>]]>
   </description>
   <pubDate>Sat, 13 Nov 2010 10:15:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=9104#9104</guid>
  </item> 
  <item>
   <title>Refreshing Cache Oddness : btitular, thanks! </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=8897#8897</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> 2252<br /><strong>Posted:</strong> 23-Oct-2010 at 12:20pm<br /><br /><P>btitular, thanks!</P>]]>
   </description>
   <pubDate>Sat, 23 Oct 2010 12:20:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=8897#8897</guid>
  </item> 
  <item>
   <title>Refreshing Cache Oddness : I&amp;#039;m getting the same &amp;#034;already...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=8896#8896</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=599" rel="nofollow">btitular</a><br /><strong>Subject:</strong> 2252<br /><strong>Posted:</strong> 23-Oct-2010 at 12:11pm<br /><br />I'm getting the same "already exists in this EntityManager" error. I'm on 6.0.5.0. I can't consistently reproduce the error, but it does occur. In my case, it occurs when I'm executing a <DIV>&nbsp;</DIV><DIV>_mgr.SaveChangesAsync(auditUpdateList, null, null, null)</DIV><DIV>&nbsp;</DIV><DIV>We're selectively saving&nbsp;this entity and it consists of only one item.</DIV><DIV>&nbsp;</DIV><DIV>The entity has no relationships. The table that it is linked to has an identity key. The entity gets saved to the database, but I get the exception thrown about&nbsp;an existing key. As you mentioned above, it looks like something's failing in the fixup logic.</DIV><DIV>&nbsp;</DIV><DIV>I'm going to try to write a small test project to see if I can get the error to occur so I can send that to you.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 23 Oct 2010 12:11:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=8896#8896</guid>
  </item> 
  <item>
   <title>Refreshing Cache Oddness : My first thought was that the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=8893#8893</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> 2252<br /><strong>Posted:</strong> 22-Oct-2010 at 7:22pm<br /><br />My first thought was that the nature of the relationships might be confusing DevForce as it merges the results back into cache, but using simplified versions of your entities I haven't been able to prove this.&nbsp; The error you see is occurring as the newly queried entities are merged into cache:&nbsp; during fixup of the references for one of the lists (SourcingDecisions or UnitCycles) the merge thinks it's found a "new" entity and wants to add it to cache.&nbsp; <DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>This is likely a bug in the fixup logic, although since I'm unable to reproduce it right now I can't offer you any advice or a workaround.&nbsp; If you can send some test data for these three entities that would be a big help.&nbsp; Also, when you do the refresh, do you know if there have been a lot of changes, deletions or additions in the data?&nbsp;&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>Email IdeaBladeSupportTrack with subject line "&#091;#9103&#093;" if you send anything to support.</DIV>]]>
   </description>
   <pubDate>Fri, 22 Oct 2010 19:22:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=8893#8893</guid>
  </item> 
  <item>
   <title>Refreshing Cache Oddness : We&amp;#039;re currently using Version...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=8881#8881</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=452" rel="nofollow">ken.nelson</a><br /><strong>Subject:</strong> 2252<br /><strong>Posted:</strong> 21-Oct-2010 at 3:01pm<br /><br /><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>We're currently using Version 6.0.4<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>We're have an intermittent, unusual problem while performing a refresh of data.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>In short, the client is requesting that the server perform a possibly 'long' operation.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The server does it's processing asyncronously, adding/modifying around 90 Units to our table, with the possibility of hundreds of UnitCycles and SourcingDecisions.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The server finishes, saves, and the async call is complete.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The client now has to query for all the newly added entities.<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>Our Original Code (executed when the server operation is complete):<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>IEntityQuery&lt;Unit&gt; query = _entityManager.Units<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.Where(i =&gt; i.COA.UniqueID == coaID)<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.Include("SourcingDecisions")<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.Include("SourcingDecisions.UnitCycle")<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.Include("UnitCycles")<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.Include("UnitCycles. Unit")<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>.With(QueryStrategy.DataSourceOnly);<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>_entityManager.ExecuteQueryAsync&lt;Unit&gt;(query, (args) =&gt;<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>{<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Refetched_Entities(args.Results);<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>}, null);<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3 face=Calibri>The problem we're having is that occassionally we get an Exception in the callback args from the query indicating that "</FONT><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>An entity with this key: Unit: 8412cc8a-0c6d-4c83-9c59-01c9049be817 already exists in this EntityManager".<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>What's odd to us about the error message is we're not Adding a new Unit to the entity manager with a duplicate key, we're simply querying for data... who cares if the Unit with that key is already in cache; if it is it's the same Unit, we just want a fresh copy of it.</SPAN></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>Even more oddness.&nbsp; To attempt to get around the problem we added the following code before the query.</SPAN><o:p></o:p></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>EntityState removeState = </P><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;EntityState.Added | EntityState.Deleted | EntityState.Detached | EntityState.Modified | EntityState.Unchanged;<o:p></o:p></FONT></FONT></DIV><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>_entityManager.RemoveEntities(typeof(SourcingDecision), removeState);<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>_entityManager.RemoveEntities(typeof(UnitCycle), removeState);<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>_entityManager.RemoveEntities(typeof(Unit), removeState);<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>So at this point, the cache should be completely cleared of all Units and yet, we still will receive the same Exception.<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri>Any help would be appreciated.<o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 1.5pt 0.75pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>The&nbsp;Exception:<o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt 1.5pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt 1.5pt 0pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>System.Reflection.TargetInvocationException was unhandled by user code<BR>&nbsp; Message=An exception occurred during the operation, making the result invalid.&nbsp; Check InnerException for exception details.<BR>&nbsp; StackTrace:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueriedEventArgs`1.get_Results()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryOperation`1.get_Results()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at AST.Web.SourcingCOA.SL.COAUnitDataManager.&lt;RefetchData&gt;b__0(EntityQueryOperation`1 args)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryOperation`1.IdeaBlade.EntityModel.IHasAsyncEventArgs.OnCompleted()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.AsyncProcessor`1.&lt;&gt;c__DisplayClass2.&lt;.ctor&gt;b__0(TArgs args)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.AsyncProcessor`1.Signal()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.AsyncProcessor`1.&lt;Execute&gt;b__5(Object x)<BR>&nbsp; InnerException: System.InvalidOperationException<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message=An entity with this key: Unit: 8412cc8a-0c6d-4c83-9c59-01c9049be817 already exists in this EntityManager<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StackTrace:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.AddToKeyMap(EntityWrapper wrapper)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.AddEntityCore(EntityWrapper wrapper)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.AddNewEntity(EntityWrapper wrapper)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.AddEntityWrapper(EntityWrapper wrapper)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityReferenceBase.AttachIfPossible(EntityWrapper newValueWrapper)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.RelatedEntityList`1.AddOrInsert(Int32 index, T item, Boolean updateInverse)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.RelatedEntityList`1.Add(T item, Boolean updateInverse)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.ListEntityReference`1.AddEntity(Object entity, Boolean updateInverse)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.ListEntityReference`1.FixupReferences()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.&lt;FixupReferences&gt;b__13(EntityReferenceBase eref)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.Core.EnumerableFns.ForEach&#091;T&#093;(IEnumerable`1 items, Action`1 action)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.FixupReferences()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.TrackChanged(EntityChangedEventArgs e)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.OnEntityChanged(EntityChangedEventArgs e)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.AddQueriedEntity(EntityWrapper wrapper)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.LoadEntity(EntityWrapper sourceWrapper, MergeStrategy mergeStrategy, Boolean&amp; rowUpdated)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntityCore(EntityWrapper sourceWrapper, EntityGroup targetEntityGroup)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntity(EntityWrapper sourceWrapper, EntityGroup targetEntityGroup, NavigationContext context)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntity(EntityWrapper sourceWrapper, NavigationContext context)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.FindOrMergeTarget(EntityWrapper sourceWrapper, NavigationEntityProperty navProp, NavigationContext context)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeScalarNavProp(EntityReferenceManager sourceRefManager, NavigationEntityProperty navProp, EntityReferenceBase targetSref, NavigationContext context)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeNavProperties(InProcessInfo inProcessInfo, NavigationContext context)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntityNavProperties(InProcessInfo inProcessInfo, NavigationContext context)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntity(EntityWrapper sourceWrapper, EntityGroup targetEntityGroup, NavigationContext context)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.&lt;&gt;c__DisplayClass1.&lt;MergeEntities&gt;b__0(EntityWrapper sourceWrapper)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Linq.Enumerable.&lt;&gt;c__DisplayClass12`3.&lt;CombineSelectors&gt;b__11(TSource x)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.Core.EnumerableFns.ForEach&#091;T&#093;(IEnumerable`1 items, Action`1 action)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.DataBlockFns.MakeResultList(Type type, IEnumerable items, Boolean isOrdered)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResult.UpdateDataSet(EntitiesDataBlock block, NavigationContext context)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntitiesDataBlock.Resolve(EntityQueryResult helper)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResult..ctor(DataQueryResult dataQueryResult, EntityManager entityManager, MergeStrategy mergeStrategy, Guid queryId, QueryInfo queryInfo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResultCollection..ctor(DataQueryResultCollection dqResults, EntityManager entityManager, MergeStrategy mergeStrategy)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.MergeAndReturnDataSourceOnly(IEntityFinder finder, DataQueryResultCollection dqResults)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ProcessFetchedData(DataQueryResultCollection dqResults, IEntityFinder finder)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.AsyncFetchCompleted(AsyncEventArgs args)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.&lt;ExecuteQueryAsyncCore&gt;b__57&#091;T&#093;(EntityQueryOperation`1 op)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at IdeaBlade.EntityModel.AsyncProcessor`1.&lt;Execute&gt;b__5(Object x)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InnerException: <o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P>]]>
   </description>
   <pubDate>Thu, 21 Oct 2010 15:01:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2252&amp;PID=8881#8881</guid>
  </item> 
 </channel>
</rss>