<?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 replaceDataSource Not Working in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572520#M18869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I have a map with a bunch of ASC files that have been updated and I need to relink them all.&amp;nbsp; I am trying to use replaceDataSource, but it just links all the files to the first ASC file in the folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
for lyr in arcpy.mapping.ListLayers(mxd, "SSPA_RIFS_Alt*"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; if lyr.supports("DATASOURCE"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.replaceDataSource(r"C:\Folder", "NONE", file_name)
del mxd
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ignore "file_name" but it's a variable I've set to collect the right name for each ASC based on the layer name in the map.&amp;nbsp; (it works, I've checked it with print messages). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also tried using "RASTER_WORKSPACE" instead of "NONE" for the workspace type, but I get the same results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2012 19:40:15 GMT</pubDate>
    <dc:creator>JohnStephens1</dc:creator>
    <dc:date>2012-04-02T19:40:15Z</dc:date>
    <item>
      <title>replaceDataSource Not Working</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572520#M18869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I have a map with a bunch of ASC files that have been updated and I need to relink them all.&amp;nbsp; I am trying to use replaceDataSource, but it just links all the files to the first ASC file in the folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
for lyr in arcpy.mapping.ListLayers(mxd, "SSPA_RIFS_Alt*"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; if lyr.supports("DATASOURCE"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.replaceDataSource(r"C:\Folder", "NONE", file_name)
del mxd
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ignore "file_name" but it's a variable I've set to collect the right name for each ASC based on the layer name in the map.&amp;nbsp; (it works, I've checked it with print messages). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also tried using "RASTER_WORKSPACE" instead of "NONE" for the workspace type, but I get the same results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 19:40:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572520#M18869</guid>
      <dc:creator>JohnStephens1</dc:creator>
      <dc:date>2012-04-02T19:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource Not Working</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572521#M18870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could try using "TEXT_WORKSPACE" since .asc files are text. Also, did you try using an mxd.save() or mxd.saveACopy(...)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 19:49:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572521#M18870</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-04-02T19:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource Not Working</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572522#M18871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You could try using "TEXT_WORKSPACE" since .asc files are text. Also, did you try using an mxd.save() or mxd.saveACopy(...)?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I use "TEXT_WORKSPACE" it throws a ValueError exception.&amp;nbsp; And saving the mxd doesn't have any affect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 11:13:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572522#M18871</guid>
      <dc:creator>JohnStephens1</dc:creator>
      <dc:date>2012-04-03T11:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource Not Working</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572523#M18872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Posting your full code may help, I suspect a problem with your file_name variable, as well as the specific errors you are receiving. The code you posted works fine for me, modified thusly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
changedir = r"D:\GIS\ascii"
mxd = arcpy.mapping.MapDocument("CURRENT")
for lyr in arcpy.mapping.ListLayers(mxd):
&amp;nbsp;&amp;nbsp;&amp;nbsp; if lyr.supports("DATASOURCE"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file_name = lyr.name
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.replaceDataSource(changedir, "NONE", file_name)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:39:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572523#M18872</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-12T00:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource Not Working</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572524#M18873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;BLOCKQUOTE&gt;mzcoyle;186689 wrote:&lt;BR /&gt;Posting your full code may help, I suspect a problem with your file_name variable, as well as the specific errors you are receiving. The code you posted works fine for me, modified thusly.&lt;/BLOCKQUOTE&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's a bit clunky.&amp;nbsp; Some of the information is sensitive, so here is the best I can do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(I just made things a bit more generic)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
for lyr in arcpy.mapping.ListLayers(mxd, "Plume_Layer*"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; if lyr.supports("DATASOURCE"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr_name = lyr.name
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name_parts = lyr_name.split("_")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var1 = name_parts[2]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var2 = name_parts[5]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; years = int(name_parts[7])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var3 = name_parts[9].lstrip("L")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if years &amp;lt;= 5:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; months = "0" + str(years*12)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif years == 48:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; months = "313"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif years == 76:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; months = "313"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; months = str(years*12)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if years &amp;lt;&amp;gt; 48:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; days = years * 365
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; days = str(days) + ".00"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; days = "17699.84"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file_name = var1 + "_" + "BC" + "_" + "SP0" + months + "_" + "L000" + var3 + "_T" + days + ".ASC"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.replaceDataSource(r"C:\Folder", "NONE", file_name)
del mxd
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So a sample layer in the map is just a bunch of variables separated by underscores, like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"XXX_XXX_[var1]_XXX_XXX_[var2]_XXX_[years]_XXX_[var3]"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And a file name in the folder is like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"[var1]_BC_SP0[months]_L000[var3]_T[days].ASC"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you tried the code you had, did you run it on multiple files?&amp;nbsp; Mine runs, it just links everything to the same file (which is incorrect obviously).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:39:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572524#M18873</guid>
      <dc:creator>JohnStephens1</dc:creator>
      <dc:date>2021-12-12T00:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource Not Working</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572525#M18874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes mine ran on multiple .asc files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did the names of your files change when you moved them? You could do something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;filename = os.path.basename(lyr.dataSource)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:39:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572525#M18874</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-12T00:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource Not Working</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572526#M18875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes mine ran on multiple .asc files.&lt;BR /&gt;&lt;BR /&gt;Did the names of your files change when you moved them? You could do something like this&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;filename = os.path.basename(lyr.dataSource)
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's kind of difficult to explain.&amp;nbsp; They didn't change, but more layers were added.&amp;nbsp; So it's necessary to code in the "new" filenames.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572526#M18875</guid>
      <dc:creator>JohnStephens1</dc:creator>
      <dc:date>2021-12-12T00:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource Not Working</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572527#M18876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure what else to suggest. It seems a very odd workflow to have source filenames that depend on the layer name as a process. I'm not sure why you are assigning the same month value for different year values, &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif years == 48:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; months = "313"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif years == 76:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; months = "313"&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;but without seeing actual examples of filenames/paths etc I can't help much more.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572527#M18876</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-12T00:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource Not Working</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572528#M18877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Not sure what else to suggest. It seems a very odd workflow to have source filenames that depend on the layer name as a process. I'm not sure why you are assigning the same month value for different year values, &lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif years == 48:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; months = "313"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif years == 76:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; months = "313"&lt;/PRE&gt;&lt;BR /&gt;but without seeing actual examples of filenames/paths etc I can't help much more.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's a run for a model that simulates predicted outputs.&amp;nbsp; The model has 4 layers.&amp;nbsp; There are also 4 versions of the models with different parameters.&amp;nbsp; So, you have many file names that use the same year.&amp;nbsp; Why the modelers have the month count screwed up for those different years, I don't know.&amp;nbsp; That's just how it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We continuously run the model when the client wants to tweak new things.&amp;nbsp; That used to be an easy fix, because I would just change the folder the files are pointed at.&amp;nbsp; However, for recent runs they want exports for all the layers (it used to be just 1).&amp;nbsp; So, without having to reset the symbology on hundreds of layers, I just copied the layers in the TOC and changed their names.&amp;nbsp; Then I was hoping to get this script to link the files based on the layer name to the file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might seem backwards, but the alternative solutions are much, much more time consuming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for trying.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572528#M18877</guid>
      <dc:creator>JohnStephens1</dc:creator>
      <dc:date>2021-12-12T00:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource Not Working</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572529#M18878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I found the problem.&amp;nbsp; Python apparently does not like to see ".00." in a path or filename.&amp;nbsp; I have no idea, but that's where the code was hanging up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A simple batch script to change my filenames and get rid of ".00." worked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 15:47:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/replacedatasource-not-working/m-p/572529#M18878</guid>
      <dc:creator>JohnStephens1</dc:creator>
      <dc:date>2012-04-03T15:47:45Z</dc:date>
    </item>
  </channel>
</rss>

