Hello All,
I am trying to open an existing .mxd--> add some layers to it--> then save it to a new location. I keep getting the same error over and over which is :
I've tried using arcpy.mapdocument.saveACopy() as well as shutil.copy(). But I get the same error.
I'm sure it's a simple syntax error, but I've tried re-naming the file, changing the output location... and I still get the same error.
Any help is greatly appreciated. Please excuse my elementary knowledge of Python and my ugly script!
Solved! Go to Solution.
Try changing your path references to r'C:\...' style. Your path may be getting escaped by the backslashes.
mxd = arcpy.mapping.MapDocument(r"C:\Users\holleym\Desktop\Projects\temp.mxd")
Try changing your path references to r'C:\...' style. Your path may be getting escaped by the backslashes.
mxd = arcpy.mapping.MapDocument(r"C:\Users\holleym\Desktop\Projects\temp.mxd")
Thanks so much @DarrenWiens! It worked!
What exactly did that do? Make it readable?