<?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: Lyr.replaceDataSource in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/lyr-replacedatasource/m-p/171854#M13216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan... the code sample here&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/listlayoutelements.htm"&gt;http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/listlayoutelements.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;shows looking for the text element then replacing it with a new value... not sure that is what you are trying to do&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Feb 2018 13:18:31 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-02-14T13:18:31Z</dc:date>
    <item>
      <title>Lyr.replaceDataSource</title>
      <link>https://community.esri.com/t5/python-questions/lyr-replacedatasource/m-p/171853#M13215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&amp;nbsp;I'm having problems with Lyr.replaceDataSource - it doesn’t seem to update as I’d hoped. See some testing below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it had worked we should have seen&amp;nbsp;&lt;SPAN&gt;C:\Scratch\CarPositions\Import\239PM\temp\p1500_1510.txt on&amp;nbsp;2nd output line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help appreciated. Cheers Dan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/4811"&gt;Richard Fairhurst&lt;/A&gt;‌?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;... import os&lt;BR /&gt;... mxd = arcpy.mapping.MapDocument("CURRENT")&lt;BR /&gt;... df = arcpy.mapping.ListDataFrames(mxd, "*")[0]&lt;BR /&gt;... lyr = arcpy.mapping.ListLayers(mxd, "*", df)[0]&lt;BR /&gt;... for file in os.listdir(r"C:\Scratch\CarPositions\Import\239PM\temp"):&lt;BR /&gt;... print file&lt;BR /&gt;... lyr.replaceDataSource(r"C:\Scratch\CarPositions\Import\239PM\temp", "TEXT_WORKSPACE", str(file))&lt;BR /&gt;... TextElement = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "MapTitleText")[0]&lt;BR /&gt;... TextElement.text = 'Paramics Vehicle Data: ' + str(file)[1:-11]+':'+str(file)[3:-9]+' - '+str(file)[6:-6]+':'+str(file)[8:-4]&lt;BR /&gt;... arcpy.RefreshActiveView()&lt;BR /&gt;... arcpy.RefreshTOC()&lt;BR /&gt;... print lyr.dataSource&lt;BR /&gt;... &lt;BR /&gt;p1500_1510.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1510_1520.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1520_1530.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1530_1540.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1540_1550.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1550_1600.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1600_1610.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1610_1620.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1620_1630.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1630_1640.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1640_1650.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1650_1700.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1700_1710.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1710_1720.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1720_1728.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1720_1730.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1730_1739.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1730_1740.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1740_1750.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;P1750_1800.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1800_1805.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1805_1810.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1810_1815.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1815_1820.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1820_1825.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1825_1830.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1830_1840.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1840_1850.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1850_1900.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1900_1910.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1910_1920.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1920_1930.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1930_1940.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1940_1950.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;BR /&gt;p1950_2000.txt&lt;BR /&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 12:00:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/lyr-replacedatasource/m-p/171853#M13215</guid>
      <dc:creator>DanielTuck</dc:creator>
      <dc:date>2018-02-14T12:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Lyr.replaceDataSource</title>
      <link>https://community.esri.com/t5/python-questions/lyr-replacedatasource/m-p/171854#M13216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan... the code sample here&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/listlayoutelements.htm"&gt;http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/listlayoutelements.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;shows looking for the text element then replacing it with a new value... not sure that is what you are trying to do&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 13:18:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/lyr-replacedatasource/m-p/171854#M13216</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-14T13:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lyr.replaceDataSource</title>
      <link>https://community.esri.com/t5/python-questions/lyr-replacedatasource/m-p/171855#M13217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan, The text element part&amp;nbsp;is working. What I'm trying to do is loop through a folder of CSV's and set the data source of the 1st layer in my TOC to each of the CSV files in \&lt;EM style="background-color: #ffffff;"&gt;239PM\temp&lt;/EM&gt;. There&amp;nbsp;would then be an ExportToJPG line but I've left it out while I try and fix the main problem which is that this line...&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff;"&gt;lyr.replaceDataSource(r"C:\Scratch\CarPositions\Import\239PM\temp", "TEXT_WORKSPACE", str(file))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;doesn't update from&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt &amp;nbsp;to &amp;nbsp;&lt;EM&gt;C:\Scratch\CarPositions\Import\239PM\temp\p1500_1510.txt&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Dan,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 13:27:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/lyr-replacedatasource/m-p/171855#M13217</guid>
      <dc:creator>DanielTuck</dc:creator>
      <dc:date>2018-02-14T13:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lyr.replaceDataSource</title>
      <link>https://community.esri.com/t5/python-questions/lyr-replacedatasource/m-p/171856#M13218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure I follow since I don't do the mapping thing often&lt;/P&gt;&lt;DIV&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;a &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\Scratch\CarPositions\Import\239PM\proc1\p1600_1615.txt"&lt;/SPAN&gt;
b &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"p1500_1510.txt"&lt;/SPAN&gt;
c &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\\"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;a&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"\\"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\\{}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;b&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;'C:\\Scratch\\CarPositions\\Import\\239PM\\proc1\\p1500_1510.txt'&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:53:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/lyr-replacedatasource/m-p/171856#M13218</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T08:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Lyr.replaceDataSource</title>
      <link>https://community.esri.com/t5/python-questions/lyr-replacedatasource/m-p/171857#M13219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, Just to clarify as I haven't said what the purpose of this script was for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a folder of text files with OSGRs and I want to produce a plot of each one by setting the data source of the 1st layer in the TOC to each file. With some help from&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;&amp;nbsp;yesterday I have this script below that creates a new layer for each text file. Not quite as I had planned but it does work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;... import os&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... df = arcpy.mapping.ListDataFrames(mxd, "*")[0]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... inputSRS = arcpy.SpatialReference(27700) #BNG&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... for file in os.listdir(r'C:\Scratch\CarPositions\Import\239PM\temp'):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... &amp;nbsp;&amp;nbsp;&amp;nbsp;print file&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... &amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.MakeXYEventLayer_management(file, 'ADJ_X', 'ADJ_Y', str(file), inputSRS)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... &amp;nbsp;&amp;nbsp;&amp;nbsp;lyr = arcpy.mapping.ListLayers(mxd, "*", df)[0]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... &amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.ApplySymbologyFromLayer_management(file, "TEMPLATE")&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... &amp;nbsp;&amp;nbsp;&amp;nbsp;TextElement = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "MapTitleText")[0]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... &amp;nbsp;&amp;nbsp;&amp;nbsp;TextElement.text = 'Paramics Vehicle Data: ' + str(file)[1:-11]+':'+str(file)[3:-9]+' - '+str(file)[6:-6]+':'+str(file)[8:-4]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... &amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.RefreshActiveView()&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... &amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.RefreshTOC()&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... &amp;nbsp;&amp;nbsp;&amp;nbsp;print lyr.dataSource&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... &amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.mapping.ExportToJPEG(mxd, r"C:\TempXX\p" + str(file)[1:-4] + ".jpg", resolution=600)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;... &amp;nbsp;&amp;nbsp;&amp;nbsp;lyr.visible=False&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 09:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/lyr-replacedatasource/m-p/171857#M13219</guid>
      <dc:creator>DanielTuck</dc:creator>
      <dc:date>2018-02-15T09:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lyr.replaceDataSource</title>
      <link>https://community.esri.com/t5/python-questions/lyr-replacedatasource/m-p/171858#M13220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have had a look at your Original issue and I can confirm the same results. Simplifying this down to the most basic code and components&amp;nbsp;possible. I created a simple X,Y,Comment text file with 1 row of data and added to a map as XY Event and saved out to layer file. I then duplicated the source text file and renamed. While the code ran successfully and the new source validated (I tested&amp;nbsp;with and without Valid Flag and changed names etc.)&amp;nbsp;it did not update the layer source. Appears to be a bug in replaceDataSource when datasource is a text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using 10.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

lyr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Layer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"H:\Scratch\mylayer.lyr"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dataSource
lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;replaceDataSource&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"H:\Scratch\perm"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"TEXT_WORKSPACE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"p1500_1510_temp.txt"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dataSource‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H:\Scratch\perm\p1500_1510_perm.txt&lt;BR /&gt;H:\Scratch\perm\p1500_1510_perm.txt&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; should have been updated to H:\Scratch\perm\p1500_1510_&lt;STRONG&gt;temp.&lt;/STRONG&gt;txt&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:53:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/lyr-replacedatasource/m-p/171858#M13220</guid>
      <dc:creator>PaulSmith8</dc:creator>
      <dc:date>2021-12-11T08:53:56Z</dc:date>
    </item>
  </channel>
</rss>

