<?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: SelectLayerByLocation not working after moving my script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/selectlayerbylocation-not-working-after-moving-my/m-p/487959#M38099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Christopher,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You sir, must be some kind of genius. Alls I did was copy the script, but somehow this resulted in my templates losing their links. What confuses me even more is that the original copy (in original location) worked fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In any case, I went back into the templates and fixed their links and it works like a charm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Jul 2012 21:25:22 GMT</pubDate>
    <dc:creator>GIS1</dc:creator>
    <dc:date>2012-07-29T21:25:22Z</dc:date>
    <item>
      <title>SelectLayerByLocation not working after moving my script</title>
      <link>https://community.esri.com/t5/python-questions/selectlayerbylocation-not-working-after-moving-my/m-p/487957#M38097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi friends,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recently moved one of my scripts from one folder to another. Well I copied it actually. After updating the source in Arc, and running the script, I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Traceback (most recent call last): &amp;nbsp; File "U:\Tools\Toolbox\GeoPDFMaker\GeoPDFMaker.py", line 472, in &amp;lt;module&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; selection = arcpy.SelectLayerByLocation_management(lyr, "INTERSECT", dfAsFeature, "", "NEW_SELECTION") &amp;nbsp; File "c:\program files\arcgis\desktop10.1\arcpy\arcpy\management.py", line 6585, in SelectLayerByLocation &amp;nbsp;&amp;nbsp;&amp;nbsp; raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000368: Invalid input data. Failed to execute (SelectLayerByLocation).&amp;nbsp;&amp;nbsp; Failed to execute (GeoPDFMaker). &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas why this might be happening???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 01:08:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/selectlayerbylocation-not-working-after-moving-my/m-p/487957#M38097</guid>
      <dc:creator>GIS1</dc:creator>
      <dc:date>2012-07-27T01:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: SelectLayerByLocation not working after moving my script</title>
      <link>https://community.esri.com/t5/python-questions/selectlayerbylocation-not-working-after-moving-my/m-p/487958#M38098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;your tool is referencing two layer objects - &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;lyr&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;dfAsFeature&lt;/SPAN&gt;&lt;SPAN&gt; - have you gone back and looked at how you set these up to make sure that the linkages to them weren't somehow broken when you moved things around? Did you move just the script or did any of the data get moved as well (like a whole folder being copied from one place to another)... presumably the script worked before you copied it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 10:56:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/selectlayerbylocation-not-working-after-moving-my/m-p/487958#M38098</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2012-07-27T10:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: SelectLayerByLocation not working after moving my script</title>
      <link>https://community.esri.com/t5/python-questions/selectlayerbylocation-not-working-after-moving-my/m-p/487959#M38099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Christopher,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You sir, must be some kind of genius. Alls I did was copy the script, but somehow this resulted in my templates losing their links. What confuses me even more is that the original copy (in original location) worked fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In any case, I went back into the templates and fixed their links and it works like a charm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2012 21:25:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/selectlayerbylocation-not-working-after-moving-my/m-p/487959#M38099</guid>
      <dc:creator>GIS1</dc:creator>
      <dc:date>2012-07-29T21:25:22Z</dc:date>
    </item>
  </channel>
</rss>

