I am trying to perform a spatial query using Python in ArcGIS, here is my code:
I'm getting the following error:
Traceback (most recent call last): File "C:\Users\acarr\Documents_PYTHON SCRIPTS\2016SCRIM\02_SPATIAL_QUERY.py", line 19, in arcpy.SelectLayerByLocation_management(ExpNod + "/MERGED_NODES.shp","WITHIN_A_DISTANCE",SCRIMNet,SelDist + " Meters","NEW_SELECTION") 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).
I'm guessing this is due to the layers not actually being in ArcMap itself. How would I resolve this?