RepairMosaicDatasetPaths_management and sde connections

05-27-2015 10:32 AM
New Contributor III

I'm using RepairMosaicDatasetPaths_management to change my mosaic datasets to use a new sde database.

Here's my code:

fullname = r"D:\services_mosaicdatasets\md.gdb\US_130EVC_1"

paths = r"D:\is_server_config\ D:\is_server_config\SDWCLUA_ARCIMS.sde"

query = "#"

arcpy.RepairMosaicDatasetPaths_management(fullname, paths, query)

After running the code I can see the new path in my mosaic dataset by exporting the paths however the mosaic dataset is still accessing the old sde database. I know this because the data isn't in the old sde db anymore and the mosaic dataset displays a checkerboard.  I've verified that the data does exist in the new database.

What am I doing wrong?  Why won't my mosaic dataset use the new sde connection?

Should I be using some other arcpy utility to change the source path?

I'm using ArcGIS 10.2.1 on Windows 2008 R2.

Thank you in advance for your help.

0 Kudos
0 Replies