<?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: Issues Reconciling and Posting version using Python in ArcGIS Desktop 10 in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/issues-reconciling-and-posting-version-using/m-p/703581#M23332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matthew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your response. I do not have any ArcMap or ArcCatalog sessions open that might lock the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that the lock is due to updates done prior to the Reconcile in the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am deleting the Cursor and Row objects after the data updates. I even added the following line to clear the workspace cache after the updates:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ClearWorkspaceCache_management(inWorkspace)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the result of GetMessages():&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Wed Oct 24 09:35:32 2012&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000084: Conflicts detected, aborting the reconcile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another application is currently editing the version. [COH_UTIL_GISAPP_RW.MX_UPDATES]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (ReconcileVersion).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Wed Oct 24 09:35:32 2012 (Elapsed Time: 0.00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sendhil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2012 15:41:23 GMT</pubDate>
    <dc:creator>SendhilKolandaivel</dc:creator>
    <dc:date>2012-10-24T15:41:23Z</dc:date>
    <item>
      <title>Issues Reconciling and Posting version using Python in ArcGIS Desktop 10</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/issues-reconciling-and-posting-version-using/m-p/703578#M23329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are running into an issue while reconciling and posting the updated version to the parent (DEFAULT) version, in a script that updates features in a feature class (W_HYDRANT), using Update Cursors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script uses two workspaces (.sde connection files) - one for editing the data using the Update Cursor, and the other for Reconciling and Posting the version.&amp;nbsp; These wokspaces are named inWorkspace and postWorkspace respectively.&amp;nbsp; The inWorkspace connection file uses the editor credentials, while the postWorkspace uses the Schema Owner credentials (DEFAULT version is protected).&amp;nbsp; Both versions point to a named version "MX_UPDATES", which is a child of default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
arcpy.ReconcileVersion_management(postWorkspace, editVersion, parentVersion,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "BY_ATTRIBUTE", "FAVOR_EDIT_VERSION",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "LOCK_AQUIRED", "ABORT_CONFLICTS", "NO_POST")
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the error message I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Traceback (most recent call last):
&amp;nbsp; File "P:\workareas\dus\repo\programs\python\maximo\Update_Hydrant_from_Maximo.py", line 201, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; "LOCK_AQUIRED", "ABORT_CONFLICTS", "NO_POST")
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 9271, in ReconcileVersion
&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e
ExecuteError: ERROR 000084: Conflicts detected, aborting the reconcile.
Failed to execute (ReconcileVersion).
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried other variations with "NO_LOCK_AQUIRED" and "NO_ABORT", and am still unable to Reconcile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interestingly, I am able to manually reconcile and post this version without any issues - no conflicts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am able to see the updates in the 'A' table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Key Points:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Using ArcGIS Desktop 10, SP5&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; Windows 7, 64-bit OS&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;ArcSDE (ArcGIS Server 9.3) running on Oracle 11g&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Each Department have their own schema owned GDBS, ours is UTIL_SDE.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Default version is protected, so have to use the schema owner credentials to Post to it.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Any help or insights would be greatly appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sendhil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 22:30:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/issues-reconciling-and-posting-version-using/m-p/703578#M23329</guid>
      <dc:creator>SendhilKolandaivel</dc:creator>
      <dc:date>2012-10-23T22:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Reconciling and Posting version using Python in ArcGIS Desktop 10</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/issues-reconciling-and-posting-version-using/m-p/703579#M23330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Some follow-up info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used try-except around the reconcile, and it raises an exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interestingly, it fails in the next line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.DeleteVersion_management(inWorkspace, editVersion)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is error I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; File "P:\workareas\dus\repo\programs\python\maximo\Update_Hydrant_from_Maximo.py", line 214, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; arcpy.DeleteVersion_management(inWorkspace, editVersion)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 9210, in DeleteVersion&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: ERROR 000386: Locked by database user: COH_UTIL_GISAPP_RW&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (DeleteVersion).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure how the lock still remains. I had deleted the UpdateCursor Object and the row object after the updates. I wonder if this lock is causing the reconcile to fail as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sendhil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 23:05:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/issues-reconciling-and-posting-version-using/m-p/703579#M23330</guid>
      <dc:creator>SendhilKolandaivel</dc:creator>
      <dc:date>2012-10-23T23:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Reconciling and Posting version using Python in ArcGIS Desktop 10</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/issues-reconciling-and-posting-version-using/m-p/703580#M23331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's hard to tell what is going on without the entire code you are running and the environment you are running in. If you are attempting to reconcile without posting your version is probably staying locked from deleting, but it should let the reconcile finish. Do you have the dataset open in an instance of ArcMap or Catalog?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 12:53:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/issues-reconciling-and-posting-version-using/m-p/703580#M23331</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-10-24T12:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Reconciling and Posting version using Python in ArcGIS Desktop 10</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/issues-reconciling-and-posting-version-using/m-p/703581#M23332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matthew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your response. I do not have any ArcMap or ArcCatalog sessions open that might lock the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that the lock is due to updates done prior to the Reconcile in the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am deleting the Cursor and Row objects after the data updates. I even added the following line to clear the workspace cache after the updates:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ClearWorkspaceCache_management(inWorkspace)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the result of GetMessages():&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Wed Oct 24 09:35:32 2012&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000084: Conflicts detected, aborting the reconcile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another application is currently editing the version. [COH_UTIL_GISAPP_RW.MX_UPDATES]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (ReconcileVersion).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Wed Oct 24 09:35:32 2012 (Elapsed Time: 0.00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sendhil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 15:41:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/issues-reconciling-and-posting-version-using/m-p/703581#M23332</guid>
      <dc:creator>SendhilKolandaivel</dc:creator>
      <dc:date>2012-10-24T15:41:23Z</dc:date>
    </item>
  </channel>
</rss>

