<?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 Python Script error 000732 in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/python-script-error-000732/m-p/62825#M2986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to run a Python Script for a batch of radar shapefiles to do a hotspot analysis, but after one of my lines, I get a 000732 error saying my feature class does not exist or is not supported. Here is the text up until I receive the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy, sys, traceback&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.env.workspace="D:\\THESIS WORK\\IL Tower Mortality Profile\\Thesis\\"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; in_path="D:\\THESIS WORK\\IL Tower Mortality Profile\\Thesis\\centILradarF16"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; out_path="D:\\THESIS WORK\\IL Tower Mortality Profile\\Thesis\\centILhotspotsF16"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; site="KILX"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; year="2016"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; season="Fall"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; time="peak"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; feat_class="KILX_V06_20160902_233310.shp"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; in_fc=site+year+season+time+"_5pcnt.shp"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; out_shp=out_path+in_fc&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; if arcpy.Exists(out_shp):arcpy.Delete_management(out_shp)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.CopyFeatures_management(feat_class,out_shp)&lt;/P&gt;&lt;P&gt;Runtime error&amp;nbsp; Traceback (most recent call last):&amp;nbsp; &amp;nbsp;File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&amp;nbsp; &amp;nbsp;File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\management.py", line 2586, in CopyFeatures&amp;nbsp; &amp;nbsp; &amp;nbsp;raise e ExecuteError: ERROR 000732: Input Features: Dataset KILX_V06_20160902_233310.shp does not exist or is not supported&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the ArcGIS Help on unsupported data types, and Personal Geodatabases and Excel files were listed. I am working from a File Geodatabase, and the data types I am working with are shapefiles. I also checked for a Subtypes tab in the feature class properties to re-enter the default subtype code, but there was no Subtypes tab. The pathway in the in_path is the correct location for the shapefile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Python, so there could easily be something I am missing here. Any help would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Dec 2017 03:47:05 GMT</pubDate>
    <dc:creator>RachelDiPietro</dc:creator>
    <dc:date>2017-12-09T03:47:05Z</dc:date>
    <item>
      <title>Python Script error 000732</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/python-script-error-000732/m-p/62825#M2986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to run a Python Script for a batch of radar shapefiles to do a hotspot analysis, but after one of my lines, I get a 000732 error saying my feature class does not exist or is not supported. Here is the text up until I receive the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy, sys, traceback&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.env.workspace="D:\\THESIS WORK\\IL Tower Mortality Profile\\Thesis\\"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; in_path="D:\\THESIS WORK\\IL Tower Mortality Profile\\Thesis\\centILradarF16"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; out_path="D:\\THESIS WORK\\IL Tower Mortality Profile\\Thesis\\centILhotspotsF16"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; site="KILX"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; year="2016"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; season="Fall"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; time="peak"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; feat_class="KILX_V06_20160902_233310.shp"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; in_fc=site+year+season+time+"_5pcnt.shp"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; out_shp=out_path+in_fc&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; if arcpy.Exists(out_shp):arcpy.Delete_management(out_shp)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.CopyFeatures_management(feat_class,out_shp)&lt;/P&gt;&lt;P&gt;Runtime error&amp;nbsp; Traceback (most recent call last):&amp;nbsp; &amp;nbsp;File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&amp;nbsp; &amp;nbsp;File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\management.py", line 2586, in CopyFeatures&amp;nbsp; &amp;nbsp; &amp;nbsp;raise e ExecuteError: ERROR 000732: Input Features: Dataset KILX_V06_20160902_233310.shp does not exist or is not supported&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the ArcGIS Help on unsupported data types, and Personal Geodatabases and Excel files were listed. I am working from a File Geodatabase, and the data types I am working with are shapefiles. I also checked for a Subtypes tab in the feature class properties to re-enter the default subtype code, but there was no Subtypes tab. The pathway in the in_path is the correct location for the shapefile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Python, so there could easily be something I am missing here. Any help would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Dec 2017 03:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/python-script-error-000732/m-p/62825#M2986</guid>
      <dc:creator>RachelDiPietro</dc:creator>
      <dc:date>2017-12-09T03:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script error 000732</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/python-script-error-000732/m-p/62826#M2987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pretty long filename&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;'D:\\THESIS WORK\\IL Tower Mortality Profile\\Thesis\\centILhotspotsF16KILX2016Fallpeak_5pcnt.shp'&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- did you mean this?&lt;/SPAN&gt;

out_shp &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; out_path &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\\"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; in_fc

out_shp &lt;SPAN class="string token"&gt;'D:\\THESIS WORK\\IL Tower Mortality Profile\\Thesis\\centILhotspotsF16\\KILX2016Fallpeak_5pcnt.shp'&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>Fri, 10 Dec 2021 22:24:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/python-script-error-000732/m-p/62826#M2987</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-10T22:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script error 000732</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/python-script-error-000732/m-p/62827#M2988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for assembling filenames, you can use os.path functions or simply&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;args &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;site&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; year&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; season&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; time&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;args&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# ---- join the elements in the args list with no space/separation&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;'KILX2016Fallpeak'&lt;/SPAN&gt;

fn &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;args&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# ---- it can be generated and assigned to a variable for future use&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;"\\"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;out_path&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fn&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# ---- and put to work when needed&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;'D:\\THESIS WORK\\IL Tower Mortality Profile\\Thesis\\centILhotspotsF16\\KILX2016Fallpeak'&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- but I would be remiss if I didn't point out that you should never use paths&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#&amp;nbsp; with spaces in them...they work when they feel like it, but can fail when you&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#&amp;nbsp; need them to work.&amp;nbsp; Plus keep them short and simple&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;/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>Fri, 10 Dec 2021 22:24:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/python-script-error-000732/m-p/62827#M2988</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-10T22:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script error 000732</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/python-script-error-000732/m-p/62828#M2989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the error states that the&amp;nbsp;dataset "KILX_V06_20160902_233310.shp" was not found, the first thing to check is to see if that shapefile exists in the workspace&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;D:\\THESIS WORK\\IL Tower Mortality Profile\\Thesis\\&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Dec 2017 02:51:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/python-script-error-000732/m-p/62828#M2989</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-12-10T02:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script error 000732</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/python-script-error-000732/m-p/62829#M2990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you are trying to do is this (as far as I can deduce from your code):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

in_shp &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'D:\THESIS WORK\IL Tower Mortality Profile\Thesis\KILX_V06_20160902_233310.shp'&lt;/SPAN&gt;
out_shp &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'D:\THESIS WORK\IL Tower Mortality Profile\Thesis\centILhotspotsF16\KILX2016Fallpeak_5pcnt.shp'&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Exists&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;out_shp&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Delete_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;out_shp&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CopyFeatures_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_shp&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_shp&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or is the input shape located here?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;in_shp &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'D:\THESIS WORK\IL Tower Mortality Profile\Thesis\centILradarF16\KILX_V06_20160902_233310.shp'&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&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;There are a lot of redundant lines, but surely there are there for a reason (for instance to process multiple datasets later on).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend you to use format or join as Dan pointed out when combining strings to generate the name and to use os.path.join to create the path to an input or output featureclass. Example:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os

site&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"KILX"&lt;/SPAN&gt;
year&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"2016"&lt;/SPAN&gt;
season&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Fall"&lt;/SPAN&gt;
time&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"peak"&lt;/SPAN&gt;
fc_name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'{0}{1}{2}{3}_5pcnt.shp'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;site&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; year&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; season&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; time&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

ws &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'D:\THESIS WORK\IL Tower Mortality Profile\Thesis'&lt;/SPAN&gt;
fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ws&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fc_name&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;/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>Fri, 10 Dec 2021 22:24:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/python-script-error-000732/m-p/62829#M2990</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-10T22:24:10Z</dc:date>
    </item>
  </channel>
</rss>

