AnsweredAssumed Answered

Select Layer By Location gives ERROR 000840: The value is not a Boolean

Question asked by _george_ on Sep 14, 2018
Latest reply on Sep 15, 2018 by bixb0012

I use ArcGIS 10.3

I have two layers : Project\project.DBO.Qo and Project\project.DBO.Poly. I want to select Project\project.DBO.Qo objects.

I got this error in Python Console: 

print arcpy.Describe(r"Project\project.DBO.Qo").shapeType
Point
print arcpy.Describe(r"Project\project.DBO.Poly").shapeType
Polygon

arcpy.SelectLayerByLocation_management(r"Project\project.DBO.Qo", "WITHIN", r"Project\project.DBO.Poly")
Runtime error  Traceback (most recent call last):  
File "<string>", line 1, in <module>   File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py", line 7279, in SelectLayerByLocation     raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000840: The value is not a Boolean. Failed to execute (SelectLayerByLocation).

 

 

But Select By Location... in graphical user interface of ArcGIS works fine with the same layers.

Outcomes