<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RuntimeError: workspace already in transaction mode in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303019#M23572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for the quick response!&amp;nbsp; The two cursors are running consecutively.&amp;nbsp; The update occurs first followed by the insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script has been running for over 3 years without any modificaton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually have the script running as a service using the srvany.exe.&amp;nbsp; This has also worked very well.&amp;nbsp; Since it is not functioning, I stop the service and I run the script manually to see what is going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked to see if multiple instance are running, but I only see one instance in the processes in my Task Manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 18:03:57 GMT</pubDate>
    <dc:creator>TomSellsted</dc:creator>
    <dc:date>2015-06-22T18:03:57Z</dc:date>
    <item>
      <title>RuntimeError: workspace already in transaction mode</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303016#M23569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a python script that I run continuously to update and insert records in a SQL Server Express database.&amp;nbsp; This has been working properly for many months until this weekend.&amp;nbsp; When I try running the script, I get a "RuntimeError: workspace already in transaction mode" error and won't execute any further.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried various solutions from posts I have seen, but none have solved this problem.&amp;nbsp; None of the feature classes are registered as versioned.&amp;nbsp; I am running SQL Server 2008 R2.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a bit mystifed to know what has changed that would cause this problem.&amp;nbsp; I appreciate any help!&amp;nbsp; Thanks very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303016#M23569</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2015-06-22T17:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: workspace already in transaction mode</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303017#M23570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the two cursors that update/insert features running at the same moment on the same workspace? If so, did that work before? Is the script running as a scheduled task and is it possible that there are two instances of the script running at the same time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303017#M23570</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-06-22T17:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: workspace already in transaction mode</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303018#M23571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or better yet: &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/UpdateCursor/018w00000014000000/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/UpdateCursor/018w00000014000000/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Note" class="note_img jive-image" src="http://resources.arcgis.com/en/help/main/10.2/rsrc/note.png" style="margin: 0 5px 0 0; font-size: 12.8000001907349px;" title="Note" /&gt;&lt;SPAN style="font-size: 12.8000001907349px;"&gt;Note:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 0.5em; margin-left: 0.5em; font-size: 12.8000001907349px;"&gt;Opening simultaneous insert or update operations on the same workspace using different cursors requires the start of an &lt;A class="xref" href="http://resources.arcgis.com/en/help/main/10.2/018w/018w00000005000000.htm" rel="/en/help/main/10.2/018w/018w00000005000000.htm" style="font-size: 12.8000001907349px; color: #007ac2;"&gt;edit session&lt;/A&gt;.&lt;/P&gt;&lt;P style="margin-right: 0.5em; margin-left: 0.5em; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="margin-right: 0.5em; margin-left: 0.5em; font-size: 12.8000001907349px;"&gt;So, use an edit session to avoid the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 18:02:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303018#M23571</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-06-22T18:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: workspace already in transaction mode</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303019#M23572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for the quick response!&amp;nbsp; The two cursors are running consecutively.&amp;nbsp; The update occurs first followed by the insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script has been running for over 3 years without any modificaton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually have the script running as a service using the srvany.exe.&amp;nbsp; This has also worked very well.&amp;nbsp; Since it is not functioning, I stop the service and I run the script manually to see what is going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked to see if multiple instance are running, but I only see one instance in the processes in my Task Manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 18:03:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303019#M23572</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2015-06-22T18:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: workspace already in transaction mode</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303020#M23573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting... Would it be a lot of work to adapt the script and see if using an edit session resolves the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 18:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303020#M23573</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-06-22T18:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: workspace already in transaction mode</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303021#M23574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&amp;nbsp; I have never had to set these up as registered or use an edit session.&amp;nbsp; They have been running without those for a really long time.&amp;nbsp; That is why I am wondering what has changed about the environment that would create this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really&amp;nbsp; prefer not to register them and use an edit session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 18:07:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303021#M23574</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2015-06-22T18:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: workspace already in transaction mode</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303022#M23575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could certainly copy my script and try it.&amp;nbsp; I am wondering if the performance would slow down greatly by using an edit session.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The python script is listening on a UDP port for vehicle message and updating a vehicles feature class and inserting a record into a historical position feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without an edit session it takes about .02 seconds to process a vehicle position.&amp;nbsp; I am assuming that a edit session might take a bit longer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 18:12:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303022#M23575</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2015-06-22T18:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: workspace already in transaction mode</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303023#M23576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mmm, I see your point... Not really sure how much the process would loose in performance when using an edit session. If you call your script very frequently, I can imagine that this will not be an option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 18:15:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303023#M23576</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-06-22T18:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: workspace already in transaction mode</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303024#M23577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like I may have reached a finite limit of the geodatabase size.&amp;nbsp; This may be causing my problem.&amp;nbsp; I am removing some older position data and see if that is what is causing my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 18:24:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303024#M23577</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2015-06-22T18:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: workspace already in transaction mode</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303025#M23578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, great. Please post back in case that is the reason, so others can benefit from it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 18:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303025#M23578</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-06-22T18:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: workspace already in transaction mode</title>
      <link>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303026#M23579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will do!&amp;nbsp; Lots of data in my positions feature class...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 19:00:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/runtimeerror-workspace-already-in-transaction-mode/m-p/303026#M23579</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2015-06-22T19:00:03Z</dc:date>
    </item>
  </channel>
</rss>

