Good day everyone,
I have a python script that:
The following layers in the source file geodatabase have the following database locations:
In the python script I use copytree to copy the file geodatabase to the destination location:
Somehow the database location for these 2 layers is being changed in the file geodatabase when it is in the new location. For example:
Of course H:\geo_databases does not exist, so the layers display with red exclamation marks:
Does anybody have any idea why this path may be changing to a folder that doesn't exist. Is there something in how the database source path is defined that the layer is looking to what ever drive it happens to be mapped to? Although it's not just a difference of the drive letter, the change is from X:\GIS\geo_databases to H:\geo_databases.
Thanks for the help,
Chris
Solved! Go to Solution.
I will have to come back to this later, but it appears you have some layers with relative paths. When the MXD gets copied to a new location, it is deriving a new path based on a relative path that was stored in the layer, but the new path doesn't exist.
I will have to come back to this later, but it appears you have some layers with relative paths. When the MXD gets copied to a new location, it is deriving a new path based on a relative path that was stored in the layer, but the new path doesn't exist.
Thanks Joshua, I'll look into absolute pathing.
Chris
Sent from my iPhone