Chapter 3. Finding and Fixing Broken Data Links

In this chapter, we will cover the following recipes:

  • Finding broken data sources in your map document and layer files
  • Fixing broken data sources with MapDocument.findAndReplaceWorkspacePaths()
  • Fixing broken data sources with MapDocument.replaceWorkspaces()
  • Fixing inpidual layer and table objects with replaceDataSource()
  • Finding broken data sources in all map documents in a folder