AnsweredAssumed Answered

SelectLayerByLocation not working after moving my script

Question asked by gismarty on Jul 26, 2012
Latest reply on Jul 29, 2012 by gismarty
Hi friends,

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:




Traceback (most recent call last):   File "U:\Tools\Toolbox\GeoPDFMaker\GeoPDFMaker.py", line 472, in <module>     selection = arcpy.SelectLayerByLocation_management(lyr, "INTERSECT", dfAsFeature, "", "NEW_SELECTION")   File "c:\program files\arcgis\desktop10.1\arcpy\arcpy\management.py", line 6585, in SelectLayerByLocation     raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000368: Invalid input data. Failed to execute (SelectLayerByLocation).   Failed to execute (GeoPDFMaker). 



Any ideas why this might be happening???

Thanks!

Outcomes