<?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 Check if  Enterprise Geodatabase is reconcilied in ArcPy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707374#M54808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a python/arcpy script I have to do a compress database and a regenerate index. I don't have to do a reconcilied version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But previously I have to validate if users have&amp;nbsp;reconcilied&amp;nbsp;the&amp;nbsp;data in the default version of the enterprise database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this with ArcPy?. Maybe doing a query to the sde.version table or other table. But I do not how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. Greetings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jan 2020 10:01:03 GMT</pubDate>
    <dc:creator>AlbertoLópez</dc:creator>
    <dc:date>2020-01-21T10:01:03Z</dc:date>
    <item>
      <title>Check if  Enterprise Geodatabase is reconcilied in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707374#M54808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a python/arcpy script I have to do a compress database and a regenerate index. I don't have to do a reconcilied version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But previously I have to validate if users have&amp;nbsp;reconcilied&amp;nbsp;the&amp;nbsp;data in the default version of the enterprise database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this with ArcPy?. Maybe doing a query to the sde.version table or other table. But I do not how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. Greetings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 10:01:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707374#M54808</guid>
      <dc:creator>AlbertoLópez</dc:creator>
      <dc:date>2020-01-21T10:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Check if  Enterprise Geodatabase is consolidated in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707375#M54809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you mean arcpy specific functions or workflows?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/using-python-scripting-to-batch-reconcile-and-post-versions.htm" title="https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/using-python-scripting-to-batch-reconcile-and-post-versions.htm"&gt;Using Python scripting to batch reconcile and post traditional versions—Geodatabases | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 10:36:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707375#M54809</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-01-21T10:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Check if  Enterprise Geodatabase is consolidated in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707376#M54810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dan;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;specific arcpy functions, I think.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I had already read the link. But in it, there are no code to check if the&amp;nbsp; database is consolidated and my script&amp;nbsp; code can not do the&amp;nbsp;reconcile because there are conflict that the user&amp;nbsp;has to resolve (not the python script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do a compres an regenerate index database only &lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if the users have consolidated the&amp;nbsp;data in the enterprise database.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 12:53:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707376#M54810</guid>
      <dc:creator>AlbertoLópez</dc:creator>
      <dc:date>2020-01-21T12:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Check if  Enterprise Geodatabase is consolidated in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707377#M54811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/219054"&gt;Alberto López&lt;/A&gt;‌ I didn't find anything specific and I kept coming back to tools in Arctoolbox.&amp;nbsp; So if there is a way to do it through a workflow in arctoolbox, then that can be scripted by calling those tools piecewise.&amp;nbsp; Your best luck is to have someone that has done your workflow before, jump on board.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 13:18:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707377#M54811</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-01-21T13:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Check if  Enterprise Geodatabase is consolidated in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707378#M54812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sharing with &lt;A href="https://community.esri.com/group/1680"&gt;Geodatabase&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must admit I am not quite following both what you are trying to do and what issue you seem to be having.&amp;nbsp; You use the term "consolidate", but that isn't a geodatabase term.&amp;nbsp; Can you elaborate on what you mean by "users have consolidated data in the enterprise geodatabase"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you looking to do a full compress of the enterprise geodatabase?&amp;nbsp; Even if an enterprise geodatabase cannot be fully compressed, there are advantages to doing partial compresses, so why not just compress the database whether all the users have reconciled and posted their data or not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 14:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707378#M54812</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-01-21T14:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Check if  Enterprise Geodatabase is consolidated in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707379#M54813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to do a query in the&amp;nbsp; "sde.version" table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if status field contains&amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;3355443X maybe the database is consolidated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;nbsp;if status field does not&amp;nbsp;&lt;SPAN&gt;contains&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;3355443X maybe the database is not consolidated&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 11.0pt; "&gt;&lt;A href="https://community.esri.com/thread/47331"&gt;Arcsde 10 - versions table, status 33554433&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 14:31:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707379#M54813</guid>
      <dc:creator>AlbertoLópez</dc:creator>
      <dc:date>2020-01-21T14:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Check if  Enterprise Geodatabase is consolidated in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707380#M54814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joshua;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I said "consolidated" I mean that if the users have reconciled and posted their data in the default version of the geodatabase?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to compress all geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not compress the geodatabase if all users&amp;nbsp;&lt;SPAN&gt;have not&amp;nbsp; reconciled and posted their data in the default version of the geodatabase, because there are&amp;nbsp;&lt;SPAN style="color: #222222; background-color: #f8f9fa;"&gt;an esri recommendation about it:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #fefefe; color: #4d4d4d;"&gt;"To maintain good performance in a geodatabase containing versions, there are a few key administrative tasks that should be run regularly. A recommended workflow for administrators is to frequently reconcile and post, compress the geodatabase, then run the Analyze Datasets and Rebuild Indexes geoprocessing tools. This sort of routine maintenance can be set up to run nightly as a script or by building a model."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/10.5/manage-data/geodatabases/recommended-version-administration-workflow.htm" title="https://desktop.arcgis.com/en/arcmap/10.5/manage-data/geodatabases/recommended-version-administration-workflow.htm"&gt;Recommended version administration workflow—ArcGIS Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that it is better &lt;SPAN&gt;reconciled and posted&lt;/SPAN&gt; before that do the database&amp;nbsp;compress, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 14:47:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707380#M54814</guid>
      <dc:creator>AlbertoLópez</dc:creator>
      <dc:date>2020-01-21T14:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Check if  Enterprise Geodatabase is reconcilied in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707381#M54815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/10.3/manage-data/geodatabases/using-python-scripting-to-batch-reconcile-and-post-versions.htm" title="https://desktop.arcgis.com/en/arcmap/10.3/manage-data/geodatabases/using-python-scripting-to-batch-reconcile-and-post-versions.htm"&gt;Using Python scripting to batch reconcile and post versions—ArcGIS Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have used this approach for some time; seems like I modified ESRI's approach such that once the versions are reconciled and posted I delete them and recreate them at the end.&amp;nbsp; Sorry, since I recently switched jobs I don't have access to the actual code I wrote anymore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 15:42:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707381#M54815</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-01-21T15:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Check if  Enterprise Geodatabase is reconcilied in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707382#M54816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Thanks Joe;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;But I had already read the link. In it, there are no code to check if the&amp;nbsp; users have reconciled and posted versions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;I can not do the&amp;nbsp;reconcile because there are conflict that the user&amp;nbsp;has to resolve with ArcMap (not the python script).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;I need to verify if the users&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;have reconciled and posted versions, in this case I have to compress and regenerate index&amp;nbsp; database, If the users have not reconciled and posted versions, the script stop (no compress, no regenerate index).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; font-weight: inherit; "&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 16:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707382#M54816</guid>
      <dc:creator>AlbertoLópez</dc:creator>
      <dc:date>2020-01-21T16:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Check if  Enterprise Geodatabase is reconcilied in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707383#M54817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay... Sorry about that.&amp;nbsp; In our case, each of the editors work in various areas so the likelihood of a conflict is minimized if not eliminated; each of the editors has his/her own version as well.&amp;nbsp; When it comes to automating the reconciliation process, there comes a point where you need to make a decision how to handle conflicts; we settled on last edit wins; in other words, accept the edit version when it comes to conflicts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 16:10:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707383#M54817</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-01-21T16:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Check if  Enterprise Geodatabase is consolidated in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707384#M54818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/geodatabase-compress-operation.htm" title="https://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/geodatabase-compress-operation.htm"&gt;Geodatabase compression—Help | ArcGIS Desktop&lt;/A&gt; states:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;It may not always be possible to reconcile, post, delete versions, and disconnect all users before compressing. For instance, if you are tracking history using versions or need to maintain design versions for a project, the historic and design versions hold a state within the state tree; therefore, these states are not removed during compression of the geodatabase. You can successfully compress without doing all these steps, and you will still see performance improvements.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't let the "best workflow" get in the way of a "good workflow."&amp;nbsp; Ideally, a geodatabase would be compressed to State 0 every time, but that can be a huge undertaking when an enterprise geodatabase has even a modest number of users.&amp;nbsp; If regular, partial compressions aren't doing enough; you can always reconcile and post all the versions as the geodatabase administrator, but you would need to make assumptions about how to handle conflicts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 16:37:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/check-if-enterprise-geodatabase-is-reconcilied-in/m-p/707384#M54818</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-01-21T16:37:53Z</dc:date>
    </item>
  </channel>
</rss>

