<?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 Edit Session for Update Cursor? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/edit-session-for-update-cursor/m-p/419880#M32961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcMap 10.5.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In&amp;nbsp;&lt;A href="https://community.esri.com/thread/220253" target="_blank"&gt;Problems with an Update Cursor&lt;/A&gt;&amp;nbsp;I noted that I received an error upon running an update cursor on a table view.&amp;nbsp; I just ran it again and got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime error &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 10, in &amp;lt;module&amp;gt;&lt;BR /&gt;RuntimeError: The operation is not supported within an edit session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UpdateCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'ba_view'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;fields&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; updatecursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; updatecursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# this is line 10 the error refers to....&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect my lack of experience with update cursors is the root cause; I ran it in an edit session in ArcMap to get the error.&amp;nbsp; I don't get the error outside of an edit session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason, I thought update cursors needed to be run in an edit session: is that not the case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3420" target="_blank"&gt;Joshua Bixby&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:58:36 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2021-12-11T18:58:36Z</dc:date>
    <item>
      <title>Edit Session for Update Cursor?</title>
      <link>https://community.esri.com/t5/python-questions/edit-session-for-update-cursor/m-p/419880#M32961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcMap 10.5.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In&amp;nbsp;&lt;A href="https://community.esri.com/thread/220253" target="_blank"&gt;Problems with an Update Cursor&lt;/A&gt;&amp;nbsp;I noted that I received an error upon running an update cursor on a table view.&amp;nbsp; I just ran it again and got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime error &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 10, in &amp;lt;module&amp;gt;&lt;BR /&gt;RuntimeError: The operation is not supported within an edit session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UpdateCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'ba_view'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;fields&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; updatecursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; updatecursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# this is line 10 the error refers to....&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect my lack of experience with update cursors is the root cause; I ran it in an edit session in ArcMap to get the error.&amp;nbsp; I don't get the error outside of an edit session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason, I thought update cursors needed to be run in an edit session: is that not the case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3420" target="_blank"&gt;Joshua Bixby&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:58:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/edit-session-for-update-cursor/m-p/419880#M32961</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-11T18:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Session for Update Cursor?</title>
      <link>https://community.esri.com/t5/python-questions/edit-session-for-update-cursor/m-p/419881#M32962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you starting the edit session with ArcPy?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 14:53:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/edit-session-for-update-cursor/m-p/419881#M32962</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-08-27T14:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Session for Update Cursor?</title>
      <link>https://community.esri.com/t5/python-questions/edit-session-for-update-cursor/m-p/419882#M32963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/data-access/updatecursor-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/data-access/updatecursor-class.htm"&gt;UpdateCursor—Data Access module | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;perhaps you are overgeneralizing this note&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;H5 style="background-color: transparent; color: #4c4c4c; display: block; font-family: &amp;amp;quot; avenir next w01&amp;amp;quot;,&amp;amp;quot;avenir next w00&amp;amp;quot;,&amp;amp;quot;avenir next&amp;amp;quot;,&amp;amp;quot;avenir&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 26.35px; orphans: 2; padding-right: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;Note:&lt;/H5&gt;&lt;P style="background-color: transparent; color: #4c4c4c; font-family: &amp;amp;quot; avenir next w01&amp;amp;quot;,&amp;amp;quot;avenir next w00&amp;amp;quot;,&amp;amp;quot;avenir next&amp;amp;quot;,&amp;amp;quot;avenir&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 26.35px; margin-top: 0px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Opening simultaneous insert or update operations on the same workspace using different cursors requires the start of an &lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/data-access/editor.htm" style="color: #0074b8; text-decoration: none;"&gt;edit session&lt;/A&gt;.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 14:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/edit-session-for-update-cursor/m-p/419882#M32963</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-08-27T14:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Session for Update Cursor?</title>
      <link>https://community.esri.com/t5/python-questions/edit-session-for-update-cursor/m-p/419883#M32964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No.&amp;nbsp; I open it in the ArcMap Session and run the update cursor code in the python window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 14:59:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/edit-session-for-update-cursor/m-p/419883#M32964</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-08-27T14:59:33Z</dc:date>
    </item>
  </channel>
</rss>

