<?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: ListVersions in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414388#M13997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, I am trying to run this as a script outside of ArcMap and Editing, so is that even possible, because the more I think, the more I come to realize that when doing reconciles I am in ArcMap and have started editing and not on the outside of both, so it seems like I should be creating a map connection and running a start edit, and then running the reconcile.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jul 2010 23:48:59 GMT</pubDate>
    <dc:creator>TedCronin</dc:creator>
    <dc:date>2010-07-08T23:48:59Z</dc:date>
    <item>
      <title>ListVersions</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414385#M13994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, is it possible to use ListVersions to list out all the versions as part of a list, have some versions removed from the list, and then proceed to process the list for say a ReconcileVersion_management.&amp;nbsp; It seems like this should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;versionList = arcpy.ListVersions ('Database Connections\zzzyyyxxx_tcronin@sdemapper@ACR-GIS2@TestServer.sde')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;versionList.remove ('dbo.DEFAULT')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;versionList.remove ('ACR_FINAL.Master')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for version in versionList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print version&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Printed Shows me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AVATCHAR.NopeTest&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MIHILLIG.Shared_AOI_Michael&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ACR_GIS.bk111_Jesusa&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ACR_GIS.bk222_Jesusa&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i then un comment reconcile above and then run:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: ERROR 087494: Object: Error in executing tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "C:\Documents and Settings\tcronin\Desktop\BatchVersionReconcile.py", line 11, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; arcpy.ReconcileVersion_management (versionList, version, 'ACR_FINAL.Master', "BY_OBJECT", "FAVOR_TARGET_VERSION", "NO_LOCK_AQUIRED", "NO_ABORT", "NO_POST")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 9000, in ReconcileVersion&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I manually run this tool, I can not see all the versions I want to reconcile, it seems like it is sde connection version specific, but a ListVersion does show me everything, so why is that the case.&amp;nbsp; Or should I be running this directly in ArcMap, instead of wing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wow, Management.py has 9221 lines of code, thats a lot of writing.;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 00:52:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414385#M13994</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2010-06-17T00:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: ListVersions</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414386#M13995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ted, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ListVersions should return only what that user has permissions to see. Make sure that you are connecting to the same workspace both when running ListVersions as well as when running reconcile. Try setting the workspace environment at the start of your script. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
arcpy.env.workspace = r"Database&amp;nbsp; Connections\zzzyyyxxx_tcronin@sdemapper@ACR-GIS2@TestServer.sde"
...
&lt;/PRE&gt;&lt;SPAN&gt;I did not see in your script where you referenced reconcile. However in the error message the syntax looks incorrect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ReconcileVersion_management &lt;/SPAN&gt;&lt;SPAN style="color:Red;"&gt;&lt;SPAN style="color:Black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;versionList&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, version,&amp;nbsp; 'ACR_FINAL.Master', "BY_OBJECT", "FAVOR_TARGET_VERSION",&amp;nbsp; "NO_LOCK_AQUIRED", "NO_ABORT", "NO_POST")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I am seeing above you are passing in your versionList where you should be providing a workspace. If you want to run the reconcile for each version you will need to do something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
arcpy.env.workspace = r"Database&amp;nbsp; Connections\zzzyyyxxx_tcronin@sdemapper@ACR-GIS2@TestServer.sde"
workspace = arcpy.env.workspace
versionList = arcpy.ListVersions ()

versionList.remove('dbo.DEFAULT')
versionList.remove('ACR_FINAL.Master')

for version in versionList:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ReconcileVersion_management (workspace, version,&amp;nbsp; 'ACR_FINAL.Master', "BY_OBJECT", "FAVOR_TARGET_VERSION",&amp;nbsp; "NO_LOCK_AQUIRED", "NO_ABORT", "NO_POST") 
#this is assuming that 'ACR_FINAL.Master is the parent version to all other versions in the list.
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:47:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414386#M13995</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2021-12-11T18:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: ListVersions</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414387#M13996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I will test this out.&amp;nbsp; I agree I did not attach the reconcile piece.&amp;nbsp; I totally left off the workspace, for whatever reason, perhaps I thought I could jump right in.&amp;nbsp; Maybe this was a total brain fart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Running this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = r"Database Connections\zzzyyyxxx_tcronin@sdemapper@ACR-GIS2@TestServer.sde"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;wrksp = arcpy.env.workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;versionList = arcpy.ListVersions ()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;versionList.remove ('dbo.DEFAULT')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;versionList.remove ('ACR_FINAL.Master')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for version in versionList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print version&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #arcpy.ReconcileVersion_management (wrksp, version, 'ACR_FINAL.Master', "BY_OBJECT", "FAVOR_TARGET_VERSION", "NO_LOCK_AQUIRED", "NO_ABORT", "NO_POST")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #print version&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am receiving a windows error, so I will play with this a bit more&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 14:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414387#M13996</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2010-06-22T14:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: ListVersions</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414388#M13997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, I am trying to run this as a script outside of ArcMap and Editing, so is that even possible, because the more I think, the more I come to realize that when doing reconciles I am in ArcMap and have started editing and not on the outside of both, so it seems like I should be creating a map connection and running a start edit, and then running the reconcile.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 23:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414388#M13997</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2010-07-08T23:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: ListVersions</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414389#M13998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ted, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can run the reconcile outside of an edit session and outside of ArcMap/ArcCatalog. The edit session will taken care of by the tool. Just be sure to choose the appropriate conflict detection method and reconcile option (favor target or favor edit) because the reconcile will be saved when the tool finishes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 14:03:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414389#M13998</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2010-07-09T14:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: ListVersions</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414390#M13999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is good to know because I am seeing inconsistent behavior between No Post, and No Locks in py and the doc as well as when a model is exported out with either of these optional check boxes but will revisit next week as I try and ascertain the exact behavior.&amp;nbsp; BTW, the doc does make it seem like I need to be in an edit session.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 17:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414390#M13999</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2010-07-09T17:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: ListVersions</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414391#M14000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;nbsp; BTW, the doc does make it seem like I need to be in an edit session.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ted, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you referring to this line?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The reconcile process requires that you are the only user currently&amp;nbsp;&amp;nbsp; editing the version and the only user able to edit the version&amp;nbsp;&amp;nbsp; throughout the reconcile process until you save or post."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this doc:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//0017000000p9000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//0017000000p9000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 17:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414391#M14000</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2010-07-09T17:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: ListVersions</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414392#M14001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep, that first part makes you think you need to be editing, at least it made me think that way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 18:52:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414392#M14001</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2010-07-09T18:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: ListVersions</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414393#M14002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So basically this runs as expected, in the python window, but for some reason, I do not have list.remove in Wing.&amp;nbsp; This is the issue I am having.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 23:42:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414393#M14002</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2010-07-26T23:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: ListVersions</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414394#M14003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having issues with both IDLE and PyWin, too.&amp;nbsp; The only thing I can come up with is I did not choose the default setup, since I do not want py to be uninstalled by ArcGIS, so basically three IDEs don't work, and 1 does (py window).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 00:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414394#M14003</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2010-07-27T00:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: ListVersions</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414395#M14004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, I filed this with Support.&amp;nbsp; I tested the setup with a 2003 Server with the non standard esri setup (the standard python setup), and was successful in completing everything as expected, so now I think it may be related to XP 64.&amp;nbsp; It currently generates a crash with only ListVersions, so far, other lists work as expected at least a few that have been tested.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jul 2010 16:03:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414395#M14004</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2010-07-28T16:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: ListVersions</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414396#M14005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sort of related to this thread, Russell.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/9292-Load-script-into-Py-Window-CRASH"&gt;http://forums.arcgis.com/threads/9292-Load-script-into-Py-Window-CRASH&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 20:30:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414396#M14005</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2010-07-29T20:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: ListVersions</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414397#M14006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ted, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I worked with Kevin from the GP team on this and we were able to&amp;nbsp; determine that this is only happening when you run this from a script.&amp;nbsp; If you step through the commands it will work fine. There is definitely a&amp;nbsp; bug here and we are trying to figure out the cause and another&amp;nbsp; workaround besides stepping through it. I can't make any promises but I&amp;nbsp; am hoping we will get this fixed for SP1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin will be taking the lead on this so I am going to go ahead and close out this thread. You can continue to discuss this in the GP forum. Kevin hopes to have a NIM number for your reference shortly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 20:37:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/listversions/m-p/414397#M14006</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2010-07-29T20:37:24Z</dc:date>
    </item>
  </channel>
</rss>

