<?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: arcpy.analysis.Clip stops edit session? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673656#M75006</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/458875"&gt;@AlfredBaldenweck&lt;/a&gt;&amp;nbsp;I am using version 3.5.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;I also tried&amp;nbsp;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;SPAN&gt;.management.MakeFeatureLayer() and even that stops the edit session. From what you are saying, it seems that this is not a bug and is intended functionality. This functionality ruins being able to run a lot of arcpy tools from scripts mid edit session. So can we submit a "bad design" ticket instead of a "bug" ticket?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PostGIS and QGIS just keep looking more and more appealing.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Dec 2025 17:08:40 GMT</pubDate>
    <dc:creator>Jeff-Reinhart</dc:creator>
    <dc:date>2025-12-17T17:08:40Z</dc:date>
    <item>
      <title>arcpy.analysis.Clip stops edit session?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673604#M74999</link>
      <description>&lt;P&gt;Why would arcpy.analysis.Clip() affect an ArcGIS Pro edit session and is there any way to prevent that?&lt;/P&gt;&lt;P&gt;Steps to reproduce:&lt;/P&gt;&lt;P&gt;1. Edit tab | click Edit button&lt;/P&gt;&lt;P&gt;2. Choose Workspace window | choose Enterprise Geodatabase Data (versioned) | click OK&lt;/P&gt;&lt;P&gt;3. Run Python script from Toolbox with code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
in_features = 'Feature Layer 1'
clip_features = 'Feature Layer 2'
out_feature_class = r'D:\my_gdb.gdb\intersect_result'
arcpy.analysis.Clip(in_features, clip_features, out_feature_class)&lt;/LI-CODE&gt;&lt;P&gt;This results in the Edit session being stopped (as evidenced by the other Edit tools becoming disabled).&lt;/P&gt;&lt;P&gt;At face value, this does not seem like it would be a big problem. But in a complicated application where an edit session is being managed by the Pro SDK and users need to run a process like this without it interrupting their edit sessions, it causes significant issues.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 14:54:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673604#M74999</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2025-12-17T14:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.analysis.Clip stops edit session?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673615#M75000</link>
      <description>&lt;P&gt;To further isolate&amp;nbsp;arcpy.analysis.Clip() as the culprit, I also tried:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
in_features = r'D:\not_my_enterprise.gdb\feature_layer_1'
clip_features = r'D:\not_my_enterprise.gdb\feature_layer_2'
out_feature_class = r'D:\not_my_enterprise.gdb\intersect_result'
arcpy.analysis.Clip(in_features, clip_features, out_feature_class)&lt;/LI-CODE&gt;&lt;P&gt;So no inputs/outputs from the Enterprise Geodatabase that is the Workspace for the edit session and no layers from the current Pro project.&lt;/P&gt;&lt;P&gt;Still results in the edit session being stopped.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 15:16:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673615#M75000</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2025-12-17T15:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.analysis.Clip stops edit session?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673619#M75001</link>
      <description>&lt;P&gt;Also tried&amp;nbsp;arcpy.analysis.SpatialJoin(). That stops the edit session as well. Guessing all of arcpy.analysis does this then?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 15:23:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673619#M75001</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2025-12-17T15:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.analysis.Clip stops edit session?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673621#M75002</link>
      <description>&lt;P&gt;What version are you in?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a related issue a year or so back that was resolved in 3.5&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BUG-000174197:&amp;nbsp;When manual edit sessions are enabled, running a geoprocessing tool without pending edits turns off the edit session.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That being said, I'm not sure if we tested for running a tool in a script; I only noticed it doing it manually. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I just did a quick test just now in the Python Window and a Notebook in 3.5 and couldn't replicate.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;x = r"C:\Users\...\Default.gdb\Polygon"
y = r"C:\Users\...\Default.gdb\Polygon_1"
z = r"C:\Users\...\Default.gdb\PolygonClip"
arcpy.analysis.Clip(x,y,z)&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;HOWEVER. T&lt;/SPAN&gt;&lt;SPAN&gt;he same code in a PYT and an ATBX turned off the session and turned it back on.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pyttool2.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/145728i7039E0C66AE73210/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pyttool2.gif" alt="pyttool2.gif" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="atbxtool2.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/145729iF85A25A015EAD157/image-size/medium?v=v2&amp;amp;px=400" role="button" title="atbxtool2.gif" alt="atbxtool2.gif" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm interested in hearing more&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 15:24:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673621#M75002</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-12-17T15:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.analysis.Clip stops edit session?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673623#M75003</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/data-access/updatecursor-class.htm" target="_blank"&gt;UpdateCursor—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;as an example, perhaps it is by omission, it states&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Opening simultaneous insert or update operations on the same workspace using different cursors requires the start of an edit session.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;so closing the edit session is the default for geoprocessing operations except those associated the editor toolset&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/editing/an-overview-of-the-editing-toolbox.htm" target="_blank"&gt;An overview of the Editing toolbox—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 15:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673623#M75003</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-12-17T15:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.analysis.Clip stops edit session?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673625#M75004</link>
      <description>&lt;P&gt;Also noticed that if I used the specific-workspace edit session (I originally tested on a multi-workspace session), the python window gets a lock error if the data being clipped is in the same workspace.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 15:51:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673625#M75004</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-12-17T15:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.analysis.Clip stops edit session?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673630#M75005</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/geoprocessing-in-an-edit-session.htm" target="_blank"&gt;Undo geoprocessing tools—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is a fairly protracted discussion about editing, starting-stopping, enabling-disabling in the above link, but short of looking at each tool to see whether edit sessions are supported or not, there doesn't appear to be a "list"&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 16:01:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673630#M75005</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-12-17T16:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.analysis.Clip stops edit session?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673656#M75006</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/458875"&gt;@AlfredBaldenweck&lt;/a&gt;&amp;nbsp;I am using version 3.5.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;I also tried&amp;nbsp;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;SPAN&gt;.management.MakeFeatureLayer() and even that stops the edit session. From what you are saying, it seems that this is not a bug and is intended functionality. This functionality ruins being able to run a lot of arcpy tools from scripts mid edit session. So can we submit a "bad design" ticket instead of a "bug" ticket?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PostGIS and QGIS just keep looking more and more appealing.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 17:08:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673656#M75006</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2025-12-17T17:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.analysis.Clip stops edit session?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673659#M75007</link>
      <description>&lt;P&gt;they would probably say "get organized"&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 16:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-analysis-clip-stops-edit-session/m-p/1673659#M75007</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-12-17T16:49:54Z</dc:date>
    </item>
  </channel>
</rss>

