AnsweredAssumed Answered

Trying to use if/elif logic to update mxd's of varying data sources

Question asked by pgillard on May 22, 2017
Latest reply on May 30, 2017 by rastrauch

I'm trying to update a number of mxd's from a variety of software versions/ folder/server locations/ ArcGIS server (i.e. ArcGIS 9.2 - 10.5). I can get it to work if I do them separately (the 9.2 gdb to sde, or 10.3 to 10.5 on different servers). It crashes when I threw them altogether (thought it would just ignore paths not relevant, but it doesn't (ALSO ! seems to crash if there's an esri basemap in the mxd?!). so thought I'd try an if/elif logic, but can't get it to read the workspace for the layer (as in: for ly in layer:

               if ly.something(?).. == some path:

                    findAndReplaceWorkspacePaths (or replaceWorkspaces) )


Any ideas would be helpful.