<?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 Select Layer By Location gives ERROR 000840: The value is not a Boolean in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296458#M22889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use ArcGIS 10.3&lt;/P&gt;&lt;P&gt;I have two layers :&amp;nbsp;&lt;STRONG&gt;Project\project.DBO.Qo&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;Project\project.DBO.Poly.&amp;nbsp;&lt;/STRONG&gt;I want to select&amp;nbsp;&lt;STRONG&gt;Project\project.DBO.Qo&amp;nbsp;&lt;/STRONG&gt;objects.&lt;/P&gt;&lt;P&gt;I got this error in Python Console:&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"Project\project.DBO.Qo"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;shapeType
Point
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"Project\project.DBO.Poly"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;shapeType
Polygon

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SelectLayerByLocation_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"Project\project.DBO.Qo"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"WITHIN"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"Project\project.DBO.Poly"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
Runtime error&amp;nbsp; Traceback &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;most recent call last&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; 
File &lt;SPAN class="string token"&gt;"&amp;lt;string&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;module&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; File &lt;SPAN class="string token"&gt;"C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;7279&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; SelectLayerByLocation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;raise&lt;/SPAN&gt; e ExecuteError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Failed to execute&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; Parameters are &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; valid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; ERROR &lt;SPAN class="number token"&gt;000840&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; The value &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; a Boolean&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; Failed to execute &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SelectLayerByLocation&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But &lt;STRONG&gt;Select By Location...&lt;/STRONG&gt; in graphical user interface of ArcGIS works fine with the same layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 14:13:11 GMT</pubDate>
    <dc:creator>georgemam</dc:creator>
    <dc:date>2021-12-11T14:13:11Z</dc:date>
    <item>
      <title>Select Layer By Location gives ERROR 000840: The value is not a Boolean</title>
      <link>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296458#M22889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use ArcGIS 10.3&lt;/P&gt;&lt;P&gt;I have two layers :&amp;nbsp;&lt;STRONG&gt;Project\project.DBO.Qo&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;Project\project.DBO.Poly.&amp;nbsp;&lt;/STRONG&gt;I want to select&amp;nbsp;&lt;STRONG&gt;Project\project.DBO.Qo&amp;nbsp;&lt;/STRONG&gt;objects.&lt;/P&gt;&lt;P&gt;I got this error in Python Console:&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"Project\project.DBO.Qo"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;shapeType
Point
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"Project\project.DBO.Poly"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;shapeType
Polygon

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SelectLayerByLocation_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"Project\project.DBO.Qo"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"WITHIN"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"Project\project.DBO.Poly"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
Runtime error&amp;nbsp; Traceback &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;most recent call last&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; 
File &lt;SPAN class="string token"&gt;"&amp;lt;string&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;module&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; File &lt;SPAN class="string token"&gt;"C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;7279&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; SelectLayerByLocation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;raise&lt;/SPAN&gt; e ExecuteError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Failed to execute&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; Parameters are &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; valid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; ERROR &lt;SPAN class="number token"&gt;000840&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; The value &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; a Boolean&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; Failed to execute &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SelectLayerByLocation&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But &lt;STRONG&gt;Select By Location...&lt;/STRONG&gt; in graphical user interface of ArcGIS works fine with the same layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:13:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296458#M22889</guid>
      <dc:creator>georgemam</dc:creator>
      <dc:date>2021-12-11T14:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select Layer By Location gives ERROR 000840: The value is not a Boolean</title>
      <link>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296459#M22890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need layers.. try MakeFeatureLayer in your code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 12:18:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296459#M22890</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-09-14T12:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select Layer By Location gives ERROR 000840: The value is not a Boolean</title>
      <link>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296460#M22891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried, but the same error:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"Project\project.DBO.Qo"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Qolyr"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;Result &lt;SPAN class="string token"&gt;'Qolyr'&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"Project\project.DBO.Poly"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Polylyr"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;Result &lt;SPAN class="string token"&gt;'Polylyr'&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; 
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SelectLayerByLocation_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Qolyr"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"WITHIN"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Polylyr"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
Runtime error&amp;nbsp; Traceback &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;most recent call last&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; File &lt;SPAN class="string token"&gt;"&amp;lt;string&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;module&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; File &lt;SPAN class="string token"&gt;"C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;7279&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; SelectLayerByLocation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;raise&lt;/SPAN&gt; e ExecuteError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Failed to execute&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; Parameters are &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; valid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; ERROR &lt;SPAN class="number token"&gt;000840&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; The value &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; a Boolean&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; Failed to execute &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SelectLayerByLocation&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:13:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296460#M22891</guid>
      <dc:creator>georgemam</dc:creator>
      <dc:date>2021-12-11T14:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select Layer By Location gives ERROR 000840: The value is not a Boolean</title>
      <link>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296461#M22892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cross posted to SE:&amp;nbsp; &lt;A class="link-titled" href="https://gis.stackexchange.com/questions/295921/select-layer-by-location-gives-error-000840-select-features-as-arcpy-polygon" title="https://gis.stackexchange.com/questions/295921/select-layer-by-location-gives-error-000840-select-features-as-arcpy-polygon"&gt;arcgis 10.3 - Select Layer By Location gives ERROR 000840 ({select_features} as arcpy.Polygon) - Geographic Information …&lt;/A&gt;&amp;nbsp;&amp;nbsp; The OP's final comment at SE is:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgba(248, 248, 248, 0.6); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;I experimented with different layers and overlap_types. It comes out that from Python console Select By Location doesn't work&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 14:46:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296461#M22892</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-09-14T14:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select Layer By Location gives ERROR 000840: The value is not a Boolean</title>
      <link>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296462#M22893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Poly you are using in the code snippet above was created using the code you have posted at SE:&lt;/P&gt;&lt;PRE class="" style="margin: 0px 0px 1em; padding: 5px; border: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-weight: 400; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; vertical-align: baseline; box-sizing: inherit; width: auto; max-height: 600px; overflow: auto; background-color: #eff0f1; display: block; color: #393318; overflow-wrap: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;CODE style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; vertical-align: baseline; box-sizing: inherit; background-color: #eff0f1; white-space: inherit;"&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;poly &lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #2b91af;"&gt;Polygon&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #2b91af;"&gt;Array&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;([&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;p1&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt; p2&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt; p3&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt; p4&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;]))&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then your issue could be tied to the fact you have not defined a spatial reference when creating the polygon.&amp;nbsp; Check to make sure all of your feature classes have valid spatial references.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 14:59:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296462#M22893</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-09-14T14:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select Layer By Location gives ERROR 000840: The value is not a Boolean</title>
      <link>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296463#M22894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Poly is a another layer.&amp;nbsp;I experimented a lot with layers.&lt;/P&gt;&lt;P&gt;Why Select By Location doesn't work in Python console ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way in&amp;nbsp;&lt;SPAN style="color: #242729; background-color: rgba(248, 248, 248, 0.6);"&gt;ArcGIS Help we read: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;IMG __jive_id="422109" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/422109_selfea.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;poly &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px;"&gt;Polygon&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px;"&gt;Array&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;([&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;p1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; p2&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; p3&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; p4&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;]))
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px;"&gt;SelectLayerByLocation_management&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"Qolyr"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"WITHIN"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; poly&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG style="background-color: rgba(248, 248, 248, 0.6); : ; color: #242729;"&gt;Qolyr&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN style="background-color: rgba(248, 248, 248, 0.6); color: #242729;"&gt;is a point object layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;SPAN style="color: #242729;"&gt;So&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;arcpy.Polygon&lt;/CODE&gt;&lt;SPAN style="color: #242729;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #242729;"&gt;is feature class, right ? Is everything OK with this code snippet ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(248, 248, 248, 0.6); color: #242729;"&gt;Thanks for your attention !&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:13:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296463#M22894</guid>
      <dc:creator>georgemam</dc:creator>
      <dc:date>2021-12-11T14:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select Layer By Location gives ERROR 000840: The value is not a Boolean</title>
      <link>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296464#M22895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcpy.Polygon&lt;/SPAN&gt; is not a feature class, it is an ArcPy Polygon object.&amp;nbsp; Most geoprocessing tools that operate on features with geometries will also accept either an ArcPy geometry or a list of ArcPy geometries, but that doesn't make an ArcPy geometry object a feature class or feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is best practice to use a spatial reference when building ArcPy geometries.&amp;nbsp; Although Select Layer By Attribute may work when the selection features don't have a spatial reference, the user is taking a risk because projection on the fly cannot work without a spatial reference assigned, which introduces the chance results won't be accurate if projections of the dataframe or other layers are changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless you can share some subsets of your data, even just cleanse so only geometries remain, I am all out of ideas.&amp;nbsp; I regularly use &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcpy.SelectLayerByLocation_management &lt;/SPAN&gt;without incident, and I am sure many other ArcGIS users do as well.&amp;nbsp; ArcGIS 10.3 is an older product about to enter Mature Support.&amp;nbsp; It could very well be there was a bug in 10.3 that has since been addressed in a subsequent release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2018 15:48:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-layer-by-location-gives-error-000840-the/m-p/296464#M22895</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-09-15T15:48:31Z</dc:date>
    </item>
  </channel>
</rss>

