Fixing data sources troubles

Discussion created by arbird on Jul 20, 2011
We recently moved our SDE to a new server with a new IP address and have to remap all our data sources.  I am trying to use the findAndReplaceWorkspacePaths function but the problem is that it takes a VERY LONG time to update a map that has only a few layers (15-20 minutes).  Could it be that arcpy is opening the map and is trying to connect to the old workspace?  I would think that the script would just open the mxd and replace the workspace without accessing anything.  Maybe I'm wrong.  Is there any way to speed up the process?


P.S. I'm basically using the code from the findAndReplaceWorkspacePaths function from here: