minerjoe

Replacing datasource does not work through arcpy

Discussion created by minerjoe on May 1, 2019
Latest reply on Jan 18, 2020 by minerjoe

Writing a script to replace the datasource in a project.  I have tried doing this by replacing the .sde file path on the apex object.  Tried by replacing at the map level and also at the layer level.  none of these methods work.  It runs without error but open the project back up and everything still pints to the original source.

 

Following samples located here:

Updating and fixing data sources—ArcPy | ArcGIS Desktop 

 

Has anyone ever gotten this to actually work?

Outcomes