<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Changing a Data source for all layers/feature classes in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625675#M35378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the manual side, it is possible to repair all the links in one shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"When the repair to the data link is made from the table of contents, ArcMap repairs the selected layer using the data source you browse to and automatically repairs other broken layers if it can find their data sources in the same location of the data source you specified."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the Section "&lt;EM&gt;Repairing broken links for multiple layers&lt;/EM&gt;" in this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s500000020000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s500000020000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the automating side, I know many folks have the same issue you have in that they need to update many mxds, so have written &lt;EM&gt;Python&lt;/EM&gt; code to automatically do the re-linking. There is some information on that approach in the link above, in the section "&lt;EM&gt;Using the arcpy.mapping module to find and repair data links for a number of map documents&lt;/EM&gt;".&amp;nbsp; Hopefully some folks here on GeoNet can post some example code also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Mar 2017 17:04:16 GMT</pubDate>
    <dc:creator>ChrisDonohue__GISP</dc:creator>
    <dc:date>2017-03-07T17:04:16Z</dc:date>
    <item>
      <title>Changing a Data source for all layers/feature classes</title>
      <link>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625674#M35377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a single data source attached to an ArcMap .mxd file. &amp;nbsp;It contains 6 layers/feature classes. &amp;nbsp;I want to be able to change the data source location easily for all layers in one step. &amp;nbsp;I can select each layer and pick the new data source but I'm looking for a way to do them all at once. &amp;nbsp;I tried right clicking on the Data source but can not find an option to point to a new location. &amp;nbsp;Reason is I have 100's of mxd files to update and would like to do this quickly. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently trying to just see if I can change the data source from one File based GeoDatabase to another (same name) in a new location/path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also looking at connecting to an SDE server rather than the File based GeoDatabase we currently connect to that would contain the same layer names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 16:24:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625674#M35377</guid>
      <dc:creator>MarkItil</dc:creator>
      <dc:date>2017-03-07T16:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Data source for all layers/feature classes</title>
      <link>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625675#M35378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the manual side, it is possible to repair all the links in one shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"When the repair to the data link is made from the table of contents, ArcMap repairs the selected layer using the data source you browse to and automatically repairs other broken layers if it can find their data sources in the same location of the data source you specified."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the Section "&lt;EM&gt;Repairing broken links for multiple layers&lt;/EM&gt;" in this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s500000020000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s500000020000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the automating side, I know many folks have the same issue you have in that they need to update many mxds, so have written &lt;EM&gt;Python&lt;/EM&gt; code to automatically do the re-linking. There is some information on that approach in the link above, in the section "&lt;EM&gt;Using the arcpy.mapping module to find and repair data links for a number of map documents&lt;/EM&gt;".&amp;nbsp; Hopefully some folks here on GeoNet can post some example code also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 17:04:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625675#M35378</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2017-03-07T17:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Data source for all layers/feature classes</title>
      <link>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625676#M35379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change data source for layers that have same name&amp;nbsp;in &amp;nbsp;the new source or different name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 17:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625676#M35379</guid>
      <dc:creator>AbdullahAnter</dc:creator>
      <dc:date>2017-03-07T17:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Data source for all layers/feature classes</title>
      <link>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625677#M35380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arcpy has a cool function that does this called &lt;STRONG&gt;&lt;EM&gt;r&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;&lt;STRONG&gt;&lt;EM&gt;eplaceDataSource&lt;/EM&gt;&lt;/STRONG&gt;. &amp;nbsp;&lt;/SPAN&gt;Check here: &amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/layer-class.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/layer-class.htm"&gt;Layer—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 18:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625677#M35380</guid>
      <dc:creator>MitchHolley1</dc:creator>
      <dc:date>2017-03-07T18:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Data source for all layers/feature classes</title>
      <link>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625678#M35381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same name at this time. &amp;nbsp;There may be a time when we need to change name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 18:17:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625678#M35381</guid>
      <dc:creator>MarkItil</dc:creator>
      <dc:date>2017-03-07T18:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Data source for all layers/feature classes</title>
      <link>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625679#M35382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good that is the name in the new source like the old one.&lt;/P&gt;&lt;P&gt;so the easy method to change all layer at once is :&lt;/P&gt;&lt;P&gt;change the folder name of the old source. so when you open arc map you will find exclamation mark beside each layer&lt;/P&gt;&lt;P&gt;set one of this layers source to the new one and all layer will change automatically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 18:43:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625679#M35382</guid>
      <dc:creator>AbdullahAnter</dc:creator>
      <dc:date>2017-03-07T18:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Data source for all layers/feature classes</title>
      <link>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625680#M35383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you to everyone that replied. &amp;nbsp;I have some great options!! &amp;nbsp;Many thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 19:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/changing-a-data-source-for-all-layers-feature/m-p/625680#M35383</guid>
      <dc:creator>MarkItil</dc:creator>
      <dc:date>2017-03-07T19:00:16Z</dc:date>
    </item>
  </channel>
</rss>

