I'm migrating several feature datasets from file geodatabases to SDE, but the datasets are tied to several map documents. Is there a faster way to update the data source for these layers than one by one?
Solved! Go to Solution.
Move the File geodatabases from their original location. Then, when you open an MXD, the link of the database to the layers will be missing. Right-click any layer in TOC > Data > Repair Data Source. Point to the corresponding Feature Class in the Enterprise Geodatabase.
All the layers having the data source in the same Geodatabase/dataset will get restored.
Move the File geodatabases from their original location. Then, when you open an MXD, the link of the database to the layers will be missing. Right-click any layer in TOC > Data > Repair Data Source. Point to the corresponding Feature Class in the Enterprise Geodatabase.
All the layers having the data source in the same Geodatabase/dataset will get restored.
Thank you, Jayanta! I'm glad the answer is so simple. Hopefully this question can stick around to be helpful to others.
You may want to check out my addin /blogs/myAlaskaGIS/2015/08/31/python-addin-for-data-inventory-and-broken-link-repair?sr=search&searc... As Jayanta mentions, you will want to move or rename the original fgdb so they show as broken. This addin may be overkill if you only have a couple mxd, but handy if you have many. It does have a few more utils that might help too.