Hi,
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:
Does anyone know of a tool that I can run with an iterator to run over each of my feature classes???
Thanks
Solved! Go to Solution.
That's that infinite loop I was talking about. The tool seems to error out a lot. 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.
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.
I could have created a boolean something like...
for feature in dataList: succeeded = False while succeeded == False: try: # recalculate succeeded = True except: # disconnect users
And it would accomplish the same thing without the "infinite loop" and "break"
Hi Ben,
Are the feature classes residing in a file geodatabase or an enterprise geodatabase?
Thanks
Everything resides in Enterprise GeoDB
Cheers
There is a new geoprocessing tool at 10.4 'Recalculate Feature Class Extent'
Note this tool requires an exclusive lock for it to successfully execute.
This was already mentioned by Jason Tipton in this thread...
You can also use modelbuilder to iterate through all the FC's in the FGDB that is then passed on to Recalculate FeatureClassExtent.