AnsweredAssumed Answered

Rebuild indexes tool hanging in Python but not ArcCatalog

Question asked by aroust on Mar 6, 2015
Latest reply on Mar 12, 2015 by aroust

I'm using a Python script to do routine geodatabase maintenance overnight. Everything has functioned normally until this week, when it started to hang on rebuilding indexes for datasets owned by the geodatabase owner. I know that the Python syntax is correct, the unique parameters are correct, the database connection file with the permissions to rebuild the relevant datasets are correct.


If I manually run the rebuild indexes tool on this database in ArcCatalog, it works. But if I run it in Python, the script never completes. I'm not sure how to troubleshoot this because I can't see the normal processing log that you see in the processing window in ArcCatalog.


I have two questions for the user community:


1. Has anyone had an issue with arcpy.RebuildIndexes_management failing in Python 2.7.5 and ArcGIS 10.2.2?


2. Does anyone know how I can capture the processing window comments in Python? Even a simple print statement would be fine - I don't need it to write to a log file.


Thanks in advance for your thoughts!