<?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: Cannot delete version created with python tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255844#M19675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I missed one of your questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Oh, so the version you make is created under another version that has changes you want to see?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Yes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Were you using &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/0017/0017000000p5000000.htm" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank"&gt;arcpy.ChangeVersion_management()&lt;/A&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; to change versions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Yes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Can the changes in the parent version be posted up so you can just do the script work on Default?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;No&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Feb 2015 18:55:26 GMT</pubDate>
    <dc:creator>MatthewLueders</dc:creator>
    <dc:date>2015-02-27T18:55:26Z</dc:date>
    <item>
      <title>Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255832#M19663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having an issue where I cannot delete a version because it is said to still be in use, but this error only arises when I use the script from an ArcGIS Tool in the Toolbox.&amp;nbsp; When I run the script from an outside IDE, or even the same commands from the python window, it finishes without error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The general process is:&lt;/P&gt;&lt;P&gt;1) create a new version "Child"&lt;/P&gt;&lt;P&gt;2) Loop of feature classes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.1) create feature layer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.2) change to version "Child"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.3) various queries etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.4) copy feature layer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.5) change to version Default&lt;/P&gt;&lt;P&gt;3) run arcpy.ClearWorkspaceCache_management()&amp;nbsp; [updated]&lt;/P&gt;&lt;P&gt;4) delete version "Child" --- arcpy.DeleteVersion_management(sde_database, "username".Child)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error returned by the tool dialogue is:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Executing: DeleteVersion "/path/connectionfile.sde" "username".Child&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Start Time: Thu Feb 19 13:12:24 2015&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ERROR 999999: Error executing function.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;The version is currently in use. ["username".Child]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Failed to execute (DeleteVersion).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point I will go to the Version Manager to delete the Child version manually and I get the following error:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Could not delete version "username".Child.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;[An event was unable to invoke any of the subscribers (Exception from&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;HResult: 0x80040201)]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;If I close and reopen ArcMap I can then delete the version. Does anyone have an idea what might be causing this and how to resolve it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 19:41:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255832#M19663</guid>
      <dc:creator>MatthewLueders</dc:creator>
      <dc:date>2015-02-19T19:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255833#M19664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm just guessing here, but try running the Clear Workspace Cache Data Management tool before you delete the version.&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/0017/00170000000m000000.htm" title="http://resources.arcgis.com/en/help/main/10.2/0017/00170000000m000000.htm"&gt;ArcGIS Help 10.2 - Clear Workspace Cache (Data Management)&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 20:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255833#M19664</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-02-19T20:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255834#M19665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; I'm trying to not post all of the code just so I don't have to go through and edit everything to remove various info bits-and-pieces, but I am actually running arcpy.ClearWorkspaceCache_management() just prior to attempting to delete the Child version.&amp;nbsp; Thanks for the suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 20:34:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255834#M19665</guid>
      <dc:creator>MatthewLueders</dc:creator>
      <dc:date>2015-02-19T20:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255835#M19666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't sound like you are doing any edits (step 2.3 and 2.4), but are you starting an edit session in there anywhere?&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/018w/018w00000005000000.htm" title="http://resources.arcgis.com/en/help/main/10.2/018w/018w00000005000000.htm"&gt;ArcGIS Help 10.2 - Editor (arcpy.da)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If yes, are you explicityly stopping the edit session?&lt;/P&gt;&lt;P&gt;If no, why do you need to create a version for read-only operations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Just to verify your code works, try a simplified version of your script that just creates the version and then deletes it. Then scale it up to create the version, switch to it, switch back to Default, then delete the version. The success or failure of these actions might help troubleshoot the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 20:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255835#M19666</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-02-19T20:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255836#M19667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the late reply.&amp;nbsp; I thought I had this setup to email me if someone responded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not doing any editing to the version I've created.&amp;nbsp; I create it because I want to connect to a version that I am not the owner of, and I've found that I'm not allowed to do that from a script (although I can connect to it from within ArcMap).&amp;nbsp; So I started creating a new version which I am the owner of and can connect to from the script with the version I want the data from being the parent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't explicitly start an edit session.&amp;nbsp; I suppose one of the steps I take starts one (?). I make edits to a copy of the data that I've saved to a local geodatabase. I imagine then that an edit session starts when I perform those changes (adding fields and populating those fields).&amp;nbsp; I tried to explicitly close the edit session and it did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I began stepping through the code like you recommended and found that the step where I am no longer able to delete the version I created is the first selection i run on the featurelayer, which is a spatial selection. I apply the spatial selection, then copy out the selected features, then change versions back to default, and then try to delete the created version but cannot because it is "still in use".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still working away at why this is, but this is the update in case you have any idea what may be the issue. Thanks a lot for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 18:09:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255836#M19667</guid>
      <dc:creator>MatthewLueders</dc:creator>
      <dc:date>2015-02-27T18:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255837#M19668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;A href="http://resources.arcgis.com/en/help/main/10.2/0017/00170000015p000000.htm"&gt;reconciling&lt;/A&gt; the version before you delete it. However, I still don't understand the requirement to do this work in a version if you're only selecting features and exporting them. If you are not editing geometry or attributes, I don't think you need a version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 18:19:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255837#M19668</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-02-27T18:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255838#M19669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I'm not sure either.&amp;nbsp; I want to connect to someone else's version and I get an error that I don't have access when I try to do this from a stand-alone script.&amp;nbsp; I suppose because my username is not that of the owner.&amp;nbsp; Creating the version is just the work around I found that works.\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try reconciling.&amp;nbsp; I also tried deleting the featurelayer that I was working from.&amp;nbsp; I felt pretty good about that solving the issue, but it didn't.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 18:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255838#M19669</guid>
      <dc:creator>MatthewLueders</dc:creator>
      <dc:date>2015-02-27T18:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255839#M19670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, so the version you make is created under another version that has changes you want to see? Were you using &lt;A href="http://resources.arcgis.com/en/help/main/10.2/0017/0017000000p5000000.htm"&gt;arcpy.ChangeVersion_management()&lt;/A&gt; to change versions? Can the changes in the parent version be posted up so you can just do the script work on Default?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 18:29:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255839#M19670</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-02-27T18:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255840#M19671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes to the first question. Nope to the second. Other people make changes and post them to the version I want to target, but I'm not the owner of it so I can't target it directly.&amp;nbsp; So I'm making version of that version with other peoples updates.&amp;nbsp; None of those changes have been posted to default yet,&amp;nbsp; won't be for days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 18:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255840#M19671</guid>
      <dc:creator>MatthewLueders</dc:creator>
      <dc:date>2015-02-27T18:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255841#M19672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The version has to be created as Public or Protected if you are not the owner and need to view it. If the version is Private, you have to be the owner.&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/003n/003n000000ws000000.htm" title="http://resources.arcgis.com/en/help/main/10.2/003n/003n000000ws000000.htm"&gt;ArcGIS Help 10.2 - Creating versions and setting permissions&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 18:38:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255841#M19672</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-02-27T18:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255842#M19673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a public version.&amp;nbsp; I just can't connect to it from a stand-alone script.&amp;nbsp; That's another approach to resolving this, I guess, if I didn't need the additional version.&amp;nbsp; I just haven't been able to find a way to connect to that version directly. Specifying the other "Username.version" doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 18:43:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255842#M19673</guid>
      <dc:creator>MatthewLueders</dc:creator>
      <dc:date>2015-02-27T18:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255843#M19674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reconciling didn't seem to help.&amp;nbsp; Good thought though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 18:51:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255843#M19674</guid>
      <dc:creator>MatthewLueders</dc:creator>
      <dc:date>2015-02-27T18:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255844#M19675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I missed one of your questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Oh, so the version you make is created under another version that has changes you want to see?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Yes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Were you using &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/0017/0017000000p5000000.htm" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank"&gt;arcpy.ChangeVersion_management()&lt;/A&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; to change versions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Yes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Can the changes in the parent version be posted up so you can just do the script work on Default?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;No&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 18:55:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255844#M19675</guid>
      <dc:creator>MatthewLueders</dc:creator>
      <dc:date>2015-02-27T18:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255845#M19676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am stuck in the same spot.&amp;nbsp; Did you figure out what was holding the connection open?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 20:13:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/255845#M19676</guid>
      <dc:creator>MattFrancis</dc:creator>
      <dc:date>2016-08-29T20:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/1626439#M74428</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/119115"&gt;@MattFrancis&lt;/a&gt;&amp;nbsp;I know this is a very old thread, but did you find a solution to this? Here is an outline of my process-&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create version from Default (named "massUpdate", access is private, owned by the user I am actively connected as and will perform all subsequent steps)&lt;/LI&gt;&lt;LI&gt;Make a feature layer of my dataset&lt;/LI&gt;&lt;LI&gt;Change version of the feature layer to newly created child version&lt;/LI&gt;&lt;LI&gt;Delete rows on feature layer&lt;/LI&gt;&lt;LI&gt;Append rows to feature layer&lt;/LI&gt;&lt;LI&gt;Change the feature layer's version back to Default&lt;/LI&gt;&lt;LI&gt;Clear workspace cache&lt;/LI&gt;&lt;LI&gt;Delete feature layer&lt;/LI&gt;&lt;LI&gt;Reconcile massUpdate with Default&lt;/LI&gt;&lt;LI&gt;Post massUpdate to Default&lt;/LI&gt;&lt;LI&gt;Delete massUpdate (this fails, saying it is in use)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried deleting the version in the ReconcileVersions functions and as its own function- same result, says it is in use and cannot delete.&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 22:29:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/1626439#M74428</guid>
      <dc:creator>JBeasley</dc:creator>
      <dc:date>2025-06-24T22:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/1626615#M74431</link>
      <description>&lt;P&gt;Sorry... I don't remember what I was doing, but we have a lot of weird things in our ecosystem. I very likely took another approach and left this idea hanging.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 12:20:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/1626615#M74431</guid>
      <dc:creator>MattFrancis</dc:creator>
      <dc:date>2025-06-25T12:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete version created with python tool</title>
      <link>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/1626680#M74433</link>
      <description>&lt;P&gt;I actually got it this morning. In case it helps anyone else...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create version from Default using the "dataUpdates" user (named "massUpdate", access is private, owned by the dataUpdates I am actively connected as and will perform all subsequent steps)&lt;/LI&gt;&lt;LI&gt;Make a feature layer of my dataset&lt;/LI&gt;&lt;LI&gt;Change version of the feature layer to massUpdate child version&lt;/LI&gt;&lt;LI&gt;Delete rows on feature layer&lt;/LI&gt;&lt;LI&gt;Append rows to feature layer&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#993300"&gt;Connect as the database admin (I used SDE)&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#993300"&gt;List users, look for dataUpdates user, and disconnect them (must use the admin connection to disconnect)&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#993300"&gt;Reconcile massUpdate with Default using the admin connection&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;This failed if I tried to reconcile and post using the dataUpdates user, throwing an error of invalid workspace type. I get I just disconnected the user to remove the version lock, but I am still surprised it would not let me reconnect and rec and post. Note, I do not block connections.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Post massUpdate to Default&lt;/LI&gt;&lt;LI&gt;Delete massUpdate (this fails, saying it is in use)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 25 Jun 2025 14:43:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-delete-version-created-with-python-tool/m-p/1626680#M74433</guid>
      <dc:creator>JBeasley</dc:creator>
      <dc:date>2025-06-25T14:43:16Z</dc:date>
    </item>
  </channel>
</rss>

