<?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 Problems with ArcPy replaceWorkspaces and findAndReplaceWorkspacePaths validation in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-arcpy-replaceworkspaces-and/m-p/436360#M14677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Our ArcSDE/SQL servers are 6 years old so we are migrating to new hardware.&amp;nbsp; The server name and IP address are changing so all MXDs are going to break.&amp;nbsp; We are also taking the "opportunity" to implement windows authentication for SDE connecitons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been testing out ArcPy scripts using both the replaceWorkspaces and findAndReplaceWorkspacePaths commands but have run into problems with each.&amp;nbsp; The findAndReplaceWorkspacePaths command seems to ingore the validation setting when set to false.&amp;nbsp; It works in the replaceWorkspaces command but python crashs at the mxd.saveACopy command whenever the MXD contains a image services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone else experiencing these problems?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# This works where there are image services in the MXD &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for myDataSource in uniqueDataSourceList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.replaceWorkspaces(myDataSource, "SDE_WORKSPACE", outputGDB, "SDE_WORKSPACE") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd.saveACopy(outputMXD, '9.3')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# This crashes if there are images services in the MXD &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for myDataSource in uniqueDataSourceList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.replaceWorkspaces(myDataSource, "SDE_WORKSPACE", outputGDB, "SDE_WORKSPACE", False) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd.saveACopy(outputMXD, '9.3')&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Aug 2010 22:13:05 GMT</pubDate>
    <dc:creator>RandyKreuziger</dc:creator>
    <dc:date>2010-08-12T22:13:05Z</dc:date>
    <item>
      <title>Problems with ArcPy replaceWorkspaces and findAndReplaceWorkspacePaths validation</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-arcpy-replaceworkspaces-and/m-p/436360#M14677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Our ArcSDE/SQL servers are 6 years old so we are migrating to new hardware.&amp;nbsp; The server name and IP address are changing so all MXDs are going to break.&amp;nbsp; We are also taking the "opportunity" to implement windows authentication for SDE connecitons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been testing out ArcPy scripts using both the replaceWorkspaces and findAndReplaceWorkspacePaths commands but have run into problems with each.&amp;nbsp; The findAndReplaceWorkspacePaths command seems to ingore the validation setting when set to false.&amp;nbsp; It works in the replaceWorkspaces command but python crashs at the mxd.saveACopy command whenever the MXD contains a image services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone else experiencing these problems?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# This works where there are image services in the MXD &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for myDataSource in uniqueDataSourceList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.replaceWorkspaces(myDataSource, "SDE_WORKSPACE", outputGDB, "SDE_WORKSPACE") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd.saveACopy(outputMXD, '9.3')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# This crashes if there are images services in the MXD &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for myDataSource in uniqueDataSourceList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.replaceWorkspaces(myDataSource, "SDE_WORKSPACE", outputGDB, "SDE_WORKSPACE", False) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd.saveACopy(outputMXD, '9.3')&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 22:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-arcpy-replaceworkspaces-and/m-p/436360#M14677</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2010-08-12T22:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ArcPy replaceWorkspaces and findAndReplaceWorkspacePaths validation</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-arcpy-replaceworkspaces-and/m-p/436361#M14678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/content/nimbus-bug?bugID=TklNMDYwMzE1"&gt;NIM060315 &lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Our ArcSDE/SQL servers are 6 years old so we are migrating to new hardware.&amp;nbsp; The server name and IP address are changing so all MXDs are going to break.&amp;nbsp; We are also taking the "opportunity" to implement windows authentication for SDE connecitons.&lt;BR /&gt;&lt;BR /&gt;I've been testing out ArcPy scripts using both the replaceWorkspaces and findAndReplaceWorkspacePaths commands but have run into problems with each.&amp;nbsp; The findAndReplaceWorkspacePaths command seems to ingore the validation setting when set to false.&amp;nbsp; It works in the replaceWorkspaces command but python crashs at the mxd.saveACopy command whenever the MXD contains a image services.&lt;BR /&gt;&lt;BR /&gt;Anyone else experiencing these problems?&lt;BR /&gt;&lt;BR /&gt;# This works where there are image services in the MXD &lt;BR /&gt;for myDataSource in uniqueDataSourceList:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.replaceWorkspaces(myDataSource, "SDE_WORKSPACE", outputGDB, "SDE_WORKSPACE") &lt;BR /&gt;mxd.saveACopy(outputMXD, '9.3')&lt;BR /&gt;&lt;BR /&gt;# This crashes if there are images services in the MXD &lt;BR /&gt;for myDataSource in uniqueDataSourceList:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.replaceWorkspaces(myDataSource, "SDE_WORKSPACE", outputGDB, "SDE_WORKSPACE", False) &lt;BR /&gt;mxd.saveACopy(outputMXD, '9.3')&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 19:13:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-arcpy-replaceworkspaces-and/m-p/436361#M14678</guid>
      <dc:creator>JayCummins</dc:creator>
      <dc:date>2010-09-21T19:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ArcPy replaceWorkspaces and findAndReplaceWorkspacePaths validation</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-arcpy-replaceworkspaces-and/m-p/436362#M14679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes.&amp;nbsp; &lt;A href="http://resources.arcgis.com/content/nimbus-bug?bugID=TklNMDYwMzE1"&gt;NIM060315 &lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, this bug is not among the listed bug fixes for SP1&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 14:46:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-arcpy-replaceworkspaces-and/m-p/436362#M14679</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2010-09-23T14:46:46Z</dc:date>
    </item>
  </channel>
</rss>

