<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>FAQ: What Happens When Two People Edit the Same Object at the Same Time?</title><link>http://blogs.technet.com/b/servicemanager/archive/2010/09/24/faq-what-happens-when-two-people-edit-the-same-object-at-the-same-time.aspx</link><description>We get asked this one a lot: What happens when two people edit the same object (like an incident record for example) at the same time? It’s inevitable in a distributed application with many people that each have their own interface that you will have</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: FAQ: What Happens When Two People Edit the Same Object at the Same Time?</title><link>http://blogs.technet.com/b/servicemanager/archive/2010/09/24/faq-what-happens-when-two-people-edit-the-same-object-at-the-same-time.aspx#3393182</link><pubDate>Thu, 10 Mar 2011 14:24:44 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3393182</guid><dc:creator>Brent</dc:creator><description>&lt;p&gt;Travis, in follow up to AndersAsp&amp;#39;s example, we are currently running into that scenario very freqently. I wanted to see if you had any information of anything that might be in the pipeline to address this major problem? Perhaps in R2? &amp;nbsp;Even if the apply button locked the CR with a green in-progress bar while the workflows ran, that would be an improvement as it would prevent users from making changes until the workflows were done. Or, other option, if the CR Status field didn&amp;#39;t lock the entire CR. &amp;nbsp;Thx Travis!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3393182" width="1" height="1"&gt;</description></item><item><title>re: FAQ: What Happens When Two People Edit the Same Object at the Same Time?</title><link>http://blogs.technet.com/b/servicemanager/archive/2010/09/24/faq-what-happens-when-two-people-edit-the-same-object-at-the-same-time.aspx#3359514</link><pubDate>Sat, 02 Oct 2010 20:49:16 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3359514</guid><dc:creator>Mohamed Garrana</dc:creator><description>&lt;p&gt;good engineering , not magic&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3359514" width="1" height="1"&gt;</description></item><item><title>re: FAQ: What Happens When Two People Edit the Same Object at the Same Time?</title><link>http://blogs.technet.com/b/servicemanager/archive/2010/09/24/faq-what-happens-when-two-people-edit-the-same-object-at-the-same-time.aspx#3358093</link><pubDate>Mon, 27 Sep 2010 13:33:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3358093</guid><dc:creator>Travis Wright MSFT</dc:creator><description>&lt;p&gt;@AndersAsp - That&amp;#39;s a great scenario. &amp;nbsp;We&amp;#39;ll do some thinking about how we could improve that. &amp;nbsp;Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3358093" width="1" height="1"&gt;</description></item><item><title>re: FAQ: What Happens When Two People Edit the Same Object at the Same Time?</title><link>http://blogs.technet.com/b/servicemanager/archive/2010/09/24/faq-what-happens-when-two-people-edit-the-same-object-at-the-same-time.aspx#3357917</link><pubDate>Mon, 27 Sep 2010 06:33:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3357917</guid><dc:creator>AndersAsp</dc:creator><description>&lt;p&gt;@Travis&lt;/p&gt;
&lt;p&gt;These kind of errors do appear in practise. They do occur very rarly in Problem and Incident, but quite frequently in Change. The reason for that is the &amp;#39;Change Request Status Changed&amp;#39; workflow that runs in the background for the CRs. One example of this would be when our analysts enters some of the information in the CR form, then hit apply. Then, without refreshing or re-opening the form, they will enter more information and then tries to save it again. Which wont work ofcourse, since the workflow has changed the status from &amp;#39;New&amp;#39; to &amp;#39;In Progress&amp;#39;.&lt;/p&gt;
&lt;p&gt;There is an easy answer to the example above: &amp;quot;Don&amp;#39;t hit apply&amp;quot;! Unfortunately, it aint easy to get our 50 analysts to understand that...&lt;/p&gt;
&lt;p&gt;However, I do like all of your suggestions to fix or warn for this Travis!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3357917" width="1" height="1"&gt;</description></item><item><title>re: FAQ: What Happens When Two People Edit the Same Object at the Same Time?</title><link>http://blogs.technet.com/b/servicemanager/archive/2010/09/24/faq-what-happens-when-two-people-edit-the-same-object-at-the-same-time.aspx#3357739</link><pubDate>Sat, 25 Sep 2010 03:03:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3357739</guid><dc:creator>Travis Wright MSFT</dc:creator><description>&lt;p&gt;@GaryJ - There are a few problems with the &amp;quot;Word&amp;quot; approach:&lt;/p&gt;
&lt;p&gt;1) It assumes that everyone that opens an object to view it also wants to edit it. &amp;nbsp;In many cases a user may just want to look at the current state of the object and is fine with other users editing the object in the background. &amp;nbsp;You would actually have many more &amp;quot;collisions&amp;quot; this way and it likely would result in a different &amp;nbsp;(and possibly more severe) type of user frustration because Bob might open an incident and go out to lunch. &amp;nbsp;Meanwhile Tom can&amp;#39;t update the incident! &amp;nbsp;SLAs could be missed because the object is locked like this. You could develop a two-state system where the first user can choose to open the incident in view mode or edit mode (like Office 2010) but this puts additional cognitive load on the user, takes longer to develop/test, and it can still often result in objects being completely locked.&lt;/p&gt;
&lt;p&gt;2) It would lock out automatic updates from connectors and workflows which could break the automated portions of the process or prevent the most up to date information from being available to the user to make decisions from.&lt;/p&gt;
&lt;p&gt;3) It&amp;#39;s actually more difficult to implement the &amp;quot;Word&amp;quot; approach, especially if you wanted to do the edit/view approach, notify users when the object is available for editing, etc. &amp;nbsp;FWIW - the current implementation is actually very simple in terms of coding which means that it is very efficient and not as prone to bugs and such. &amp;nbsp;Basically all that is happening behind the scenes is that the database returns a datetime property of the current time with the object when the object is requested by the console. &amp;nbsp;When the object comes back to the database on an update the database does a check to see if the datetime property is older or newer than the last modified time.&lt;/p&gt;
&lt;p&gt;I do agree with you that there are optimizations that we could make to the current design though and hopefully we&amp;#39;ll get to those soon enough. &amp;nbsp;Here are some examples:&lt;/p&gt;
&lt;p&gt;1) Allow non-conflicting property level updates (as described in the blog post).&lt;/p&gt;
&lt;p&gt;2) Notify a user on open if another user has recently opened an object.&lt;/p&gt;
&lt;p&gt;3) Notify a user while editing that another user has updated. &amp;nbsp;This could prevent the user entering further information that will be lost.&lt;/p&gt;
&lt;p&gt;Each of these improvements has tradeoffs though. &amp;nbsp;We could spend time developing/testing those instead of developing other features. &amp;nbsp;There could also be performance implications to them and the user experience could become more complicated.&lt;/p&gt;
&lt;p&gt;It will be interesting to see how many conflicts there are in practice with the current design. &amp;nbsp;So far I haven&amp;#39;t heard any complaints about the current design, but if there are feel free to let us know!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3357739" width="1" height="1"&gt;</description></item><item><title>re: FAQ: What Happens When Two People Edit the Same Object at the Same Time?</title><link>http://blogs.technet.com/b/servicemanager/archive/2010/09/24/faq-what-happens-when-two-people-edit-the-same-object-at-the-same-time.aspx#3357707</link><pubDate>Fri, 24 Sep 2010 21:10:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3357707</guid><dc:creator>GaryJ</dc:creator><description>&lt;p&gt;This all seems rather crazy and unhelpful to me since there are so many circumstances where one user is likely to receive an error and maybe lose a large edit. &amp;nbsp;Not only can this be frustrating but it may be a negative experience for a customer. &amp;nbsp;Rather than code what must be a complex optimistic mechanism why not implement the tried and trusted Word method where the first one wins and second can open in read only mode? This seems a far more sensible approach to me. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3357707" width="1" height="1"&gt;</description></item></channel></rss>