Broken data sources are a very common problem with map document files. You can use
arcpy.mapping to identify data sources that have moved, been deleted, or changed format.
In ArcMap, a broken data connection is signified by a red exclamation point just before the layer name. This is illustrated in the following screenshot. The
ListBrokenDataSources() function in
arcpy.mapping returns a list of layer objects from a map document or layer file that have a broken data connection:
Follow the steps below to learn how to find broken data sources in a map document ...