AnsweredAssumed Answered

Detecting Corrupt MXDs in Python

Question asked by on Apr 9, 2012
Latest reply on Oct 20, 2014 by kbuckvold_ch2mhill
I have a python script that loops through all the MXDs in folder and subfolders and writes details of the layers to a text file.  The script works quite well, unless an MXD is corrupt at which point it fails (which I can completely understand!).   The corrupt MXD caused ArcGIS to crash when I tried to open the document in ArcMap and also when I attempted to preview it in ArcCatalog.  I am not sure if it can be done, however can anyone suggest a way to check the MXD before making an attempt to process it by the script.