<?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: Is there a tool to Recalculate Feature Extents in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464918#M26594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use modelbuilder to iterate through all the FC's in the FGDB that is then passed on to Recalculate FeatureClassExtent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2018 01:52:39 GMT</pubDate>
    <dc:creator>MikeCusi</dc:creator>
    <dc:date>2018-04-30T01:52:39Z</dc:date>
    <item>
      <title>Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464904#M26580</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;I have hundreds of feature datasets that have incorrect XY entents (unknown reason as to why), but I am hoping to save time by automating the pressing of the 'Recalculate' button as seen below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-01-13 165116 Feature Class Properties .jpg" class="image-1 jive-image" src="/legacyfs/online/167895_2016-01-13 165116 Feature Class Properties .jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of a tool that I can run with an iterator to run over each of my feature classes???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 05:54:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464904#M26580</guid>
      <dc:creator>BenVan_Kesteren1</dc:creator>
      <dc:date>2016-01-13T05:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464905#M26581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you know why it is wrong?&lt;/P&gt;&lt;P&gt;Are you sure that there is not some fluff somewhere out of sight?&lt;/P&gt;&lt;P&gt;Create Spatial Index might update the extent, but not sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 06:14:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464905#M26581</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-01-13T06:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464906#M26582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neil is right, if memory serves that was a problem solver when processing on shapefiles ( a translation, I think) were not reflected until the shape field index was recalculated.&lt;/P&gt;&lt;P&gt;And check your environment settings&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/environments/maintain-spatial-index.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/environments/maintain-spatial-index.htm"&gt;Maintain Spatial Index (Environment setting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or to rebuild &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/add-spatial-index.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/add-spatial-index.htm"&gt;Add Spatial Index&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 10:19:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464906#M26582</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-01-13T10:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464907#M26583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this thread &lt;A href="https://community.esri.com/thread/67848"&gt;Recalculate Extent&lt;/A&gt; jake provides some ways to do this (for featureclasses residing in SDE and other geodatabases).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And these threads &lt;A href="http://gis.stackexchange.com/questions/136944/pythonic-way-to-recalculate-feature-extent-in-arcgis-10-2" title="http://gis.stackexchange.com/questions/136944/pythonic-way-to-recalculate-feature-extent-in-arcgis-10-2"&gt;arcpy - Pythonic way to recalculate feature extent in ArcGIS 10.2 - Geographic Information Systems Stack Exchange&lt;/A&gt; and &lt;A href="http://gis.stackexchange.com/questions/24590/recalculating-full-extent-of-file-geodatabase-feature-class" title="http://gis.stackexchange.com/questions/24590/recalculating-full-extent-of-file-geodatabase-feature-class"&gt;arcgis desktop - Recalculating full extent of File Geodatabase feature class? - Geographic Information Systems Stack Exc…&lt;/A&gt; on GIS Stack Exchange might be interesting too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 11:33:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464907#M26583</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-01-13T11:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464908#M26584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The arcpy tool to do this is &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/recalculate-feature-class-extent.htm"&gt;Recalculate Feature Class Extent&lt;/A&gt;​.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14557476684323255" data-renderedposition="50_8_912_16" jivemacro_uid="_14557476684323255"&gt;&lt;P&gt;arcpy.RecalculateFeatureClassExtent_management(feature_class)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will still need exclusive lock on the feature class, but it should do the exact same thing as right clicking on the feature through the GUI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I have a help ticket in for the same thing and this is what they suggested, but I just went to try it and it appears to not be available until 10.4 which should be available any day now...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 22:21:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464908#M26584</guid>
      <dc:creator>JasonTipton</dc:creator>
      <dc:date>2016-02-17T22:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464909#M26585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, fun fact. If this is an Enterprise Geodatabase, it looks like you are just updating the shape column in the GDB_Items table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-oracle/system-tables-oracle.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-oracle/system-tables-oracle.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;System tables of a geodatabase stored in Oracle—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be really easy to just update that table... but probably not a supported workflow. At least you know what it is updating and can monitor it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have a lot of feature classes that don't have extent information. I can find that by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select name, sde.st_astext(shape) 
from gdb_items
where shape is null
or dbms_lob.compare(sde.st_astext(shape), 'POLYGON EMPTY') = 0&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:38:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464909#M26585</guid>
      <dc:creator>JasonTipton</dc:creator>
      <dc:date>2021-12-11T20:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464910#M26586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;P&gt;for version 10.4 yes .... but not for 10.3 or prior&lt;/P&gt;&lt;P&gt; &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/an-overview-of-the-feature-class-toolset.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/an-overview-of-the-feature-class-toolset.htm"&gt;An overview of the Feature Class toolset—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The help version numbers are defaulting to 10.4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:15:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464910#M26586</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-02-18T00:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464911#M26587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;Are the feature classes residing in a file geodatabase or an enterprise geodatabase?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 17:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464911#M26587</guid>
      <dc:creator>NanaDei</dc:creator>
      <dc:date>2016-02-18T17:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464912#M26588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everything resides in Enterprise GeoDB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 21:41:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464912#M26588</guid>
      <dc:creator>BenVan_Kesteren1</dc:creator>
      <dc:date>2016-02-18T21:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464913#M26589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, so if going ahead and getting 10.4 is possible, you can use the arcpy tool. I'm using it now. It's kind of slow, but it is getting the work done....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's some code I banged out real quick. It will loop over every feature class in a workspace and calculate new extents for them all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def calculate_extents(workspace):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = workspace


&amp;nbsp;&amp;nbsp;&amp;nbsp; # Get the user name for the workspace
&amp;nbsp;&amp;nbsp;&amp;nbsp; user_name = arcpy.Describe(workspace).connectionProperties.user.lower()
&amp;nbsp;&amp;nbsp;&amp;nbsp; print user_name


&amp;nbsp;&amp;nbsp;&amp;nbsp; # Get a list of all the datasets the user owns.
&amp;nbsp;&amp;nbsp;&amp;nbsp; dataList = arcpy.ListFeatureClasses('{}*'.format(user_name.upper()))
&amp;nbsp;&amp;nbsp;&amp;nbsp; print(len(dataList))
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Next, for feature datasets get all of the datasets and featureclasses
&amp;nbsp;&amp;nbsp;&amp;nbsp; # from the list and add them to the master list.
&amp;nbsp;&amp;nbsp;&amp;nbsp; for dataset in arcpy.ListDatasets('{}*'.format(user_name.upper()), "Feature"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = os.path.join(workspace,dataset)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataList += arcpy.ListFeatureClasses()


&amp;nbsp;&amp;nbsp;&amp;nbsp; # reset the workspace
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = workspace
&amp;nbsp;&amp;nbsp;&amp;nbsp; print('Setting Accept Connections =&amp;gt; False')
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AcceptConnections(workspace, False)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print('Disconnecting Users {}'.format(arcpy.ListUsers(workspace)))
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.DisconnectUser(workspace, "ALL")
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for feature in dataList:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while True:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print feature
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&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; extent1 = str(arcpy.Describe(feature).extent)
&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; arcpy.RecalculateFeatureClassExtent_management(feature)
&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; extent2 = str(arcpy.Describe(feature).extent)
&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; updated = 'UPDATED'
&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; if (extent1 == extent2):
&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; updated = 'SAME'
&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; print('{}: {} =&amp;gt;\t{}'.format(updated, extent1,extent2))
&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; break
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except arcgisscripting.ExecuteError:
&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; print('ERROR -- Attempting to disconnect users')
&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; arcpy.DisconnectUser(workspace, "ALL")


&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AcceptConnections(workspace, True)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using an Oracle database with no datasets. All feature classes are top level, so I'm not sure if this will traverse the datasets. It should, but I didn't have any to test it with. Also, I am filtering only the tables owned by the current user (ex: current_user.table_name). You can get rid of that on lines 11 and 16. I'm not sure how SQL Server handles all that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, it seems to error out a lot, so I'm infinitely looping until it succeeds so it could stick forever on a bad feature class, but I haven't had it do that yet. Just be aware if it keeps printing the same feature class over and over, it's stuck...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:38:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464913#M26589</guid>
      <dc:creator>JasonTipton</dc:creator>
      <dc:date>2021-12-11T20:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464914#M26590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, what's this doing in the code?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;while True:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Looks like it will just keep going around and around forever.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 07:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464914#M26590</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-02-19T07:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464915#M26591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's that infinite loop I was talking about. The tool seems to error out &lt;STRONG&gt;a lot&lt;/STRONG&gt;. So I loop until it doesn't which is mostly the 1st time, but often it has to loop back a 2nd. It could be from some process trying to make a connection to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "break" after the recalculate extent will break the loop on a successful run and move on to the next feature class. Otherwise, it will disconnect all connected users and loop back around to try again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could have created a boolean something like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for feature in dataList:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; succeeded = False
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while succeeded == False:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&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; # recalculate
&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; succeeded = True
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except:
&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; # disconnect users&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it would accomplish the same thing without the "infinite loop" and "break"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:38:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464915#M26591</guid>
      <dc:creator>JasonTipton</dc:creator>
      <dc:date>2021-12-11T20:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464916#M26592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a new geoprocessing tool at &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/recalculate-feature-class-extent.htm"&gt;10.4 'Recalculate Feature Class Extent' &lt;/A&gt;​&lt;/P&gt;&lt;P&gt;Note this tool requires an exclusive lock for it to successfully execute. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 20:15:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464916#M26592</guid>
      <dc:creator>MelissaJarman</dc:creator>
      <dc:date>2016-02-25T20:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464917#M26593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was already mentioned by &lt;A href="https://community.esri.com/migrated-users/14165"&gt;Jason Tipton&lt;/A&gt;&amp;nbsp; in this thread...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 22:34:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464917#M26593</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-02-25T22:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464918#M26594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use modelbuilder to iterate through all the FC's in the FGDB that is then passed on to Recalculate FeatureClassExtent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 01:52:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464918#M26594</guid>
      <dc:creator>MikeCusi</dc:creator>
      <dc:date>2018-04-30T01:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to Recalculate Feature Extents</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464919#M26595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a 0,0 point.&amp;nbsp; I deleted and the Extent still will not recal properly.&amp;nbsp; I tried removing the Spatial Index and it still will not recalc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DB is part of a replica but I have replicated several times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&amp;nbsp; It is doing it on 3 FCs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have has ones in the past that I tried for years to fix and never did get it.&amp;nbsp; If I export to a new GDB the extent is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2019 19:37:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-recalculate-feature-extents/m-p/464919#M26595</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-07-25T19:37:20Z</dc:date>
    </item>
  </channel>
</rss>

