<?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 : Concurrency error...but no concurrency</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Concurrency error...but no concurrency</description>
  <pubDate>Sun, 28 Jun 2026 01:38:34 -700</pubDate>
  <lastBuildDate>Thu, 16 Dec 2010 06:11:49 -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=2378</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>Concurrency error...but no concurrency : Thank you for the help. </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2378&amp;PID=9420#9420</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2378<br /><strong>Posted:</strong> 16-Dec-2010 at 6:11am<br /><br />Thank you for the help.]]>
   </description>
   <pubDate>Thu, 16 Dec 2010 06:11:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2378&amp;PID=9420#9420</guid>
  </item> 
  <item>
   <title>Concurrency error...but no concurrency : DevForce is a passive bystander...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2378&amp;PID=9413#9413</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> 2378<br /><strong>Posted:</strong> 15-Dec-2010 at 12:22pm<br /><br /><P>DevForce is a passive bystander with this exception, it's EF, the DB and your provider at play here.&nbsp; I did a quick google but couldn't find anything helpful.&nbsp; It might be worth posting a question to the EF forum (<a href="http://social.msdn.microsoft.com/Forums/en/adodotnetentityframework/threads" target="_blank">http://social.msdn.microsoft.com/Forums/en/adodotnetentityframework/threads</A>).</P>]]>
   </description>
   <pubDate>Wed, 15 Dec 2010 12:22:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2378&amp;PID=9413#9413</guid>
  </item> 
  <item>
   <title>Concurrency error...but no concurrency : Well I stumbled upon it as you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2378&amp;PID=9410#9410</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2378<br /><strong>Posted:</strong> 15-Dec-2010 at 9:39am<br /><br />Well I stumbled upon it as you posted. It was related to a trigger, an after insert trigger causes a legitimate error but that error is not coming back - its throwing the concurrency error.<DIV>&nbsp;</DIV><DIV>Is there any way to get the actual error? Typically I do get the trigger error so I did not expect that the trigger was bombing.</DIV>]]>
   </description>
   <pubDate>Wed, 15 Dec 2010 09:39:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2378&amp;PID=9410#9410</guid>
  </item> 
  <item>
   <title>Concurrency error...but no concurrency : If you&amp;#039;re using a stored...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2378&amp;PID=9409#9409</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> 2378<br /><strong>Posted:</strong> 15-Dec-2010 at 9:23am<br /><br />If you're using a stored procedure for the insert or have an insert trigger that would be the first place to look.&nbsp; Otherwise, I would use a profiler to see what these insert statements (even when they succeed) really look like.&nbsp; If you don't have a profiler, it looks like EF Profiler will work with DevForce and they have a free trial download.<DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>For example, here's an insert to&nbsp;the Customer&nbsp;table in Adventure Works:</DIV><DIV>&nbsp;</DIV><DIV><EM>exec sp_executesql N'insert &#091;dbo&#093;.&#091;Customer&#093;(&#091;SalesPersonID&#093;, &#091;TerritoryID&#093;, &#091;CustomerType&#093;, &#091;ModifiedDate&#093;, &#091;rowguid&#093;)<BR>values (null, null, @0, @1, @2)<BR>select &#091;CustomerID&#093;, &#091;AccountNumber&#093;<BR>from &#091;dbo&#093;.&#091;Customer&#093;<BR>where @@ROWCOUNT &gt; 0 and &#091;CustomerID&#093; = scope_identity()',N'@0 nchar(1),@1 datetime2(7),@2 uniqueidentifier',@0=N'S',@1='2010-12-15 00:00:00',@2='B970B5E3-DB0D-4B92-B3BA-074286704675'</EM></DIV><DIV>&nbsp;</DIV><DIV>Probably not what you'd expect, and because of the select for the store generated value you can see how an error could potentially occur.</DIV>]]>
   </description>
   <pubDate>Wed, 15 Dec 2010 09:23:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2378&amp;PID=9409#9409</guid>
  </item> 
  <item>
   <title>Concurrency error...but no concurrency : I have a very simple entity with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2378&amp;PID=9408#9408</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2378<br /><strong>Posted:</strong> 15-Dec-2010 at 8:39am<br /><br />I have a very simple entity with 4 properties, 1 key, no concurrency settings on any of the properties, the key is storegenerated. <DIV>&nbsp;</DIV><DIV>While on the server I create a new entity (the one above), sets its values, save. 98% of the time (random high percentage used) it works - but sometimes it errors with "Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Refresh ObjectStateManager entries." and the EntityWithErrors is the entity I just created. The entitymanager has NO other data in it - just my 1 entity&nbsp;and again, I have no concurrency set for this entity. This entity also has no relationships to any other entities.</DIV><DIV>&nbsp;</DIV><DIV>This seems random...but once this occurs any time I try to create a record for the same data...I keep getting the error. I can restart my computer and creating that one record will still error so at least THAT much is consistent.</DIV><DIV>&nbsp;</DIV><DIV>I am still working on this but could use some help.</DIV>]]>
   </description>
   <pubDate>Wed, 15 Dec 2010 08:39:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2378&amp;PID=9408#9408</guid>
  </item> 
 </channel>
</rss>