<?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 ERROR 000732: Selecting Features: Dataset inpath2 does not exist or is not supported in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/error-000732-selecting-features-dataset-inpath2/m-p/1243700#M26645</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am trying to create a script tool using python where I will select location by area and export the area in the directory. To do so I have used this script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;EM&gt;import&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt; arcpy
arcpy.env.overwriteOutput = &lt;SPAN class=""&gt;True&lt;/SPAN&gt;

&lt;SPAN class=""&gt;try&lt;/SPAN&gt;:
    inPath = arcpy.GetParameterAsText(&lt;SPAN class=""&gt;0&lt;/SPAN&gt;)
    inpath2 = arcpy.GetParameterAsText(&lt;SPAN class=""&gt;1&lt;/SPAN&gt;)
    outPath = arcpy.GetParameterAsText(&lt;SPAN class=""&gt;2&lt;/SPAN&gt;)
    selection = arcpy.SelectLayerByLocation_management(&lt;SPAN class=""&gt;"inPath"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;"WITHIN_A_DISTANCE"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;"inpath2"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;"50 meter"&lt;/SPAN&gt;,&lt;SPAN class=""&gt;"NEW_SELECTION"&lt;/SPAN&gt;,&lt;SPAN class=""&gt;"NOT_INVERT"&lt;/SPAN&gt;)
    copySelection = arcpy.CopyFeatures_management(selection,outPath)
    arcpy.GetMessage(&lt;SPAN class=""&gt;"All Done"&lt;/SPAN&gt;)
&lt;SPAN class=""&gt;except&lt;/SPAN&gt;:
    arcpy.AddError(&lt;SPAN class=""&gt;"Could not colplete the process"&lt;/SPAN&gt;)
    arcpy.AddMessage(arcpy.GetMessages())&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;but it gives following message&lt;BR /&gt;ERROR: Could not complpete the process&lt;BR /&gt;Start Time: Monday, December 26, 2022 3:54:13 PM&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000368: Invalid input data.&lt;BR /&gt;ERROR 000732: Selecting Features: Dataset inpath2 does not exist or is not supported&lt;BR /&gt;Failed to execute (SelectLayerByLocation).&lt;BR /&gt;Failed at Monday, December 26, 2022 3:54:13 PM (Elapsed Time: 0.00 seconds)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 26 Dec 2022 10:16:58 GMT</pubDate>
    <dc:creator>ArannaykFoundation</dc:creator>
    <dc:date>2022-12-26T10:16:58Z</dc:date>
    <item>
      <title>ERROR 000732: Selecting Features: Dataset inpath2 does not exist or is not supported</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-000732-selecting-features-dataset-inpath2/m-p/1243700#M26645</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am trying to create a script tool using python where I will select location by area and export the area in the directory. To do so I have used this script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;EM&gt;import&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt; arcpy
arcpy.env.overwriteOutput = &lt;SPAN class=""&gt;True&lt;/SPAN&gt;

&lt;SPAN class=""&gt;try&lt;/SPAN&gt;:
    inPath = arcpy.GetParameterAsText(&lt;SPAN class=""&gt;0&lt;/SPAN&gt;)
    inpath2 = arcpy.GetParameterAsText(&lt;SPAN class=""&gt;1&lt;/SPAN&gt;)
    outPath = arcpy.GetParameterAsText(&lt;SPAN class=""&gt;2&lt;/SPAN&gt;)
    selection = arcpy.SelectLayerByLocation_management(&lt;SPAN class=""&gt;"inPath"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;"WITHIN_A_DISTANCE"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;"inpath2"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;"50 meter"&lt;/SPAN&gt;,&lt;SPAN class=""&gt;"NEW_SELECTION"&lt;/SPAN&gt;,&lt;SPAN class=""&gt;"NOT_INVERT"&lt;/SPAN&gt;)
    copySelection = arcpy.CopyFeatures_management(selection,outPath)
    arcpy.GetMessage(&lt;SPAN class=""&gt;"All Done"&lt;/SPAN&gt;)
&lt;SPAN class=""&gt;except&lt;/SPAN&gt;:
    arcpy.AddError(&lt;SPAN class=""&gt;"Could not colplete the process"&lt;/SPAN&gt;)
    arcpy.AddMessage(arcpy.GetMessages())&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;but it gives following message&lt;BR /&gt;ERROR: Could not complpete the process&lt;BR /&gt;Start Time: Monday, December 26, 2022 3:54:13 PM&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000368: Invalid input data.&lt;BR /&gt;ERROR 000732: Selecting Features: Dataset inpath2 does not exist or is not supported&lt;BR /&gt;Failed to execute (SelectLayerByLocation).&lt;BR /&gt;Failed at Monday, December 26, 2022 3:54:13 PM (Elapsed Time: 0.00 seconds)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Dec 2022 10:16:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-000732-selecting-features-dataset-inpath2/m-p/1243700#M26645</guid>
      <dc:creator>ArannaykFoundation</dc:creator>
      <dc:date>2022-12-26T10:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000732: Selecting Features: Dataset inpath2 does not exist or is not supported</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-000732-selecting-features-dataset-inpath2/m-p/1243701#M26646</link>
      <description>&lt;P&gt;selection = arcpy.SelectLayerByLocation_management("inPath", "WITHIN_A_DISTANCE", "inpath2",&amp;nbsp; ......&lt;/P&gt;&lt;P&gt;inPath and inpath2&amp;nbsp; should not be in double quotes ( " ") since they are variables&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 10:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-000732-selecting-features-dataset-inpath2/m-p/1243701#M26646</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-12-26T10:32:35Z</dc:date>
    </item>
  </channel>
</rss>

