AnsweredAssumed Answered

Python Script not working as Tool

Question asked by ziegenf2 on Nov 13, 2015
Latest reply on Nov 13, 2015 by lsturtevant

Hi All,

 

I have a script that works in python, but when I create a tool for it, it no longer works. I have attached the code, does anybody know what could be wrong? I have also copy and pasted the error I received. Thanks!

 

Executing: StreetNames "C:\Users\kziegenfuss\Desktop\PM\Segments Shapefile\Segments.shp" Street C:\Users\kziegenfuss\Desktop\PM\Clip\Clip.shp ROAD_NAME
Start Time: Fri Nov 13 07:54:58 2015
Running script StreetNames...
Failed script StreetNames...

Traceback (most recent call last):
  File "C:\Users\kziegenfuss\AppData\Roaming\ESRI\Desktop10.2\ArcToolbox\My Toolboxes\StreetName.tbx#StreetNames.py", line 29, in <module>
  File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\management.py", line 6812, in SelectLayerByLocation
    raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000368: Invalid input data.
Failed to execute (SelectLayerByLocation).

Failed to execute (StreetNames).
Failed at Fri Nov 13 08:02:24 2015 (Elapsed Time: 7 minutes 26 seconds)

Attachments

Outcomes