<?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: 9.3.1 Script To Repair Broken Data Sources ? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/9-3-1-script-to-repair-broken-data-sources/m-p/90507#M3436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If there are not many .mxd documents, you can try using Set Data Source in ArcCatalog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/27425"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/27425&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2012 08:46:01 GMT</pubDate>
    <dc:creator>AlexeyTereshenkov</dc:creator>
    <dc:date>2012-05-24T08:46:01Z</dc:date>
    <item>
      <title>9.3.1 Script To Repair Broken Data Sources ?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/9-3-1-script-to-repair-broken-data-sources/m-p/90505#M3434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all, I am using ArcMap 9.3.1 and have recently moved from Microsoft Access based databases to ArcSDE. During the move all of my .mxd's data sources broke.&amp;nbsp; I am wondering if anyone knows of a useful script to make fixing the broken data sources easier ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have found a tool that expedites this process but it still is really slow.&amp;nbsp; The tool also has a 'find and replace' function but it doesn't work when redirecting to ArcSDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help, advice, or information is always greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jarrett&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 16:29:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/9-3-1-script-to-repair-broken-data-sources/m-p/90505#M3434</guid>
      <dc:creator>JarrettLivesey</dc:creator>
      <dc:date>2012-05-23T16:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: 9.3.1 Script To Repair Broken Data Sources ?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/9-3-1-script-to-repair-broken-data-sources/m-p/90506#M3435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might want to see if you could get ArcGIS v10.0.&amp;nbsp; This capability is nicely built into python scripting with examples and plenty of posts on this subject.&amp;nbsp; If you had 1 ArcGIS v10.0, you could always Save the mxds back to 9.3.1 after fixing the broken links.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 21:13:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/9-3-1-script-to-repair-broken-data-sources/m-p/90506#M3435</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2012-05-23T21:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: 9.3.1 Script To Repair Broken Data Sources ?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/9-3-1-script-to-repair-broken-data-sources/m-p/90507#M3436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If there are not many .mxd documents, you can try using Set Data Source in ArcCatalog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/27425"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/27425&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 08:46:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/9-3-1-script-to-repair-broken-data-sources/m-p/90507#M3436</guid>
      <dc:creator>AlexeyTereshenkov</dc:creator>
      <dc:date>2012-05-24T08:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: 9.3.1 Script To Repair Broken Data Sources ?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/9-3-1-script-to-repair-broken-data-sources/m-p/90508#M3437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We used this script: &lt;/SPAN&gt;&lt;A href="http://arcscripts.esri.com/details.asp?dbid=14888"&gt;http://arcscripts.esri.com/details.asp?dbid=14888&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It requres the VBA macro editor: &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/17844"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/17844&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We had to make some minor modifications to the script to include database prefix changes.&amp;nbsp; Give that a try.&amp;nbsp; You select a folder in ArcCatalog and launch the GUI window.&amp;nbsp; It asks for DB connection information and iterates through every MXD in the directory and swaps all vector/raster data to the connection information you provide.&amp;nbsp; We used this for 2.5 years to migrate services from dev-&amp;gt;test-&amp;gt;prod.&amp;nbsp; Quit using it when we upgraded to esri v10 software as this had expanded support for the arcpy mapping module that we could use python for accessing layers inside MXD files.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Patrick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 17:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/9-3-1-script-to-repair-broken-data-sources/m-p/90508#M3437</guid>
      <dc:creator>PF1</dc:creator>
      <dc:date>2012-07-06T17:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: 9.3.1 Script To Repair Broken Data Sources ?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/9-3-1-script-to-repair-broken-data-sources/m-p/90509#M3438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After a little further research - we did not use that script.&amp;nbsp; I cannot find the original source, but I attached a copy of the VB form.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basic Installinstructions (recomended to do this in a dev/test environment before you deploy this to a production system): &lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;Download and unzip the attachemt [ATTACH=CONFIG]15829[/ATTACH]&lt;/UL&gt;&lt;UL&gt;Verify that VBA is installed (from my link above in the KB).&amp;nbsp; You will know if you launch ArcCatalog -&amp;gt;Tools-&amp;gt;Macros.&amp;nbsp; If those are enabled (not greyed out) then you have it installed right.&amp;nbsp;&amp;nbsp; &lt;/UL&gt;&lt;UL&gt;Navigate to your application data directory for arccatalog.&amp;nbsp; On my 2003 server that is in "C:\Documents and Settings\USERNAME\Application Data\ESRI\ArcCatalog".&amp;nbsp; You might need to 'show hidden files/folders' in order to get there&lt;/UL&gt;&lt;UL&gt;Backup your 'Normal.gxt' file (Copy to Normal.gxt.original)&lt;/UL&gt;&lt;UL&gt;Launch ArcCatalog&lt;/UL&gt;&lt;UL&gt;Go to 'Tools-&amp;gt;Macros-&amp;gt;Visual Basic Editor...&lt;/UL&gt;&lt;UL&gt;From the MS VB editor: go to File-&amp;gt;Import File&lt;/UL&gt;&lt;UL&gt;Find the 'frmChangeArcSDEDataSource_v931.frm' that was in the attachment and click open&lt;/UL&gt;&lt;UL&gt;Close the MS VB editor&lt;/UL&gt;&lt;UL&gt;In ArcCatalog: Tools-&amp;gt;Customize-&amp;gt;Commands Tab&lt;/UL&gt;&lt;UL&gt;Pick [UIControls] in the very bottom and select 'New UIControl...'&lt;/UL&gt;&lt;UL&gt;Pick 'UIButtonControl' and select "Create and Edit".&amp;nbsp; This opens the VB Editor again&lt;/UL&gt;&lt;UL&gt;Paste this line into the subroutine (between the 'Private Sub ...' and 'End Sub'): &lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Call frmChangeArcSDEDataSource.Show&lt;/PRE&gt;&lt;/UL&gt;&lt;UL&gt;Save and close the VB Editor&lt;/UL&gt;&lt;UL&gt;In ArcCatalog: Tools-&amp;gt;Customize-&amp;gt;Commands Tab.&amp;nbsp; &lt;/UL&gt;&lt;UL&gt;Pick [UIControls] in the very bottom.&amp;nbsp; In the 'Commands' text box: click and drag (do not let go of the mouse) the 'Normal.UIButtonControl1' button and drop it on one of your current toolbars.&amp;nbsp; &lt;/UL&gt;&lt;UL&gt;You should now see a new button on the toolbar with no text in it.&amp;nbsp; &lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Basic Use Instructions: &lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;Stage your MXD's in a new folder (reccomending backing up your originals)&lt;/UL&gt;&lt;UL&gt;Navigate to your new folder and select the folder in the explorer pane (in ArcCatalog)&lt;/UL&gt;&lt;UL&gt;Click the new button in the toolbar.&amp;nbsp; This will prompt you for the SDE DB credentials.&amp;nbsp; &lt;/UL&gt;&lt;UL&gt;Click 'Process MXD's&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;That script should iterate through every MXD in the directory you selected and repoint the vector and raster data sources to a new data source.&amp;nbsp; Please let me know if you give this a try and need any further support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 18:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/9-3-1-script-to-repair-broken-data-sources/m-p/90509#M3438</guid>
      <dc:creator>PF1</dc:creator>
      <dc:date>2012-07-06T18:39:41Z</dc:date>
    </item>
  </channel>
</rss>

