<?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 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-000732/m-p/748925#M57877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I am calling any of the tools in the Toolbox using Python&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;per example: AddField_management or Buffer_analysis I am getting the 000732 error saying that this feature class doesn't exist, I went and checked the feature class is there and I made sure that the path is correct ! so do you know what might cause this error ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Zareh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Nov 2011 18:34:51 GMT</pubDate>
    <dc:creator>ZarehDemirdjian</dc:creator>
    <dc:date>2011-11-25T18:34:51Z</dc:date>
    <item>
      <title>Error 000732</title>
      <link>https://community.esri.com/t5/python-questions/error-000732/m-p/748925#M57877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I am calling any of the tools in the Toolbox using Python&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;per example: AddField_management or Buffer_analysis I am getting the 000732 error saying that this feature class doesn't exist, I went and checked the feature class is there and I made sure that the path is correct ! so do you know what might cause this error ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Zareh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 18:34:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000732/m-p/748925#M57877</guid>
      <dc:creator>ZarehDemirdjian</dc:creator>
      <dc:date>2011-11-25T18:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000732</title>
      <link>https://community.esri.com/t5/python-questions/error-000732/m-p/748926#M57878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/35151"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/35151&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cause&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most often this is due to the input data path being entered incorrectly (i.e. misspelled folder names, using backslashes instead of forward slashes)or possibly a result of having spaces in the path names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check the file path closely to confirm this is not the issue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If everything is correct, it could be locked because it is in use elsewhere, so make sure its not in an MXD somewhere.&amp;nbsp; Make sure its located in a directory that you have write access to also.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 20:13:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000732/m-p/748926#M57878</guid>
      <dc:creator>JamesHood</dc:creator>
      <dc:date>2011-11-29T20:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000732</title>
      <link>https://community.esri.com/t5/python-questions/error-000732/m-p/748927#M57879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post the code that you're using? It should look something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
arcpy.AddField_management(r"C:\data\airport.gdb\schools", "ref_ID", "LONG", 9, "", "", "refcode", "NULLABLE", "REQUIRED")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:50:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000732/m-p/748927#M57879</guid>
      <dc:creator>RuthEmerick</dc:creator>
      <dc:date>2021-12-12T07:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000732</title>
      <link>https://community.esri.com/t5/python-questions/error-000732/m-p/748928#M57880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is the code I am using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = "C:\\Database\\Redlands.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inputFC = "Hospitals"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field = "Full_Address"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lstFlds = arcpy.ListFields (inputFC, field)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if len(lstFlds) ==0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(inputFC, field, "Text")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.............&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate your help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 08:09:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000732/m-p/748928#M57880</guid>
      <dc:creator>ZarehDemirdjian</dc:creator>
      <dc:date>2011-12-06T08:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000732</title>
      <link>https://community.esri.com/t5/python-questions/error-000732/m-p/748929#M57881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is the code I am using:&lt;BR /&gt;&lt;BR /&gt;arcpy.env.workspace = "C:\\Database\\Redlands.gdb"&lt;BR /&gt;&lt;BR /&gt;inputFC = "Hospitals"&lt;BR /&gt;field = "Full_Address"&lt;BR /&gt;&lt;BR /&gt;lstFlds = arcpy.ListFields (inputFC, field)&lt;BR /&gt;&lt;BR /&gt;if len(lstFlds) ==0:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(inputFC, field, "Text")&lt;BR /&gt;.............&lt;BR /&gt;&lt;BR /&gt;I appreciate your help&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont know if the arcpy.env.workspace will automatically populate the featureclass with with its directory.&amp;nbsp; I think that's the problem.&amp;nbsp; You probably need to create a variable that contains the directory, or else hard code it into the featureclass string.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could be wrong, but this should work.&amp;nbsp;&amp;nbsp; Double check tabbing , I spaced 4 but maybe you need 5?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I changed the format of the directory string to clean it up a bit.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy

arcpy.env.workspace = r"C:\Database\Redlands.gdb\"

dir = r"C:\Database\Redlands.gdb\"
inputFC = "Hospitals"
field = "Full_Address"
FC = dir + inputFC

lstFlds = arcpy.ListFields(FC, field)

if len(lstFlds) == 0:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(FC, field, "Text")
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "len = zero. Field added."
else:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "len does not = zero. field not added.""
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:50:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000732/m-p/748929#M57881</guid>
      <dc:creator>JamesHood</dc:creator>
      <dc:date>2021-12-12T07:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000732</title>
      <link>https://community.esri.com/t5/python-questions/error-000732/m-p/748930#M57882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I will just mention that I am having a similar problem with JoinField_management.&amp;nbsp; I am specifying data sets with the full directory names.&amp;nbsp; I have tried forward slashes and back slashes.&amp;nbsp; I have tried one and two slashes.&amp;nbsp; I have tried .shp, .dbf and no suffix.&amp;nbsp; Nothing seems to work in a python script.&amp;nbsp; I get error 000732.&amp;nbsp; I am told that&amp;nbsp; contributer.shp does not exist or is not supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am able to do the JOINFIELD through the GUI.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 15:02:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000732/m-p/748930#M57882</guid>
      <dc:creator>WayneHajas</dc:creator>
      <dc:date>2011-12-16T15:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000732</title>
      <link>https://community.esri.com/t5/python-questions/error-000732/m-p/748931#M57883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have something that gets rid of some 000732 errors.&amp;nbsp; I set access to readonly for the files that arcpy complained about.&amp;nbsp; My scripts are working now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This solution does not support the degree of automation that I had hoped for - but I'm getting by.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wayne Hajas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 14:55:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000732/m-p/748931#M57883</guid>
      <dc:creator>WayneHajas</dc:creator>
      <dc:date>2011-12-19T14:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000732</title>
      <link>https://community.esri.com/t5/python-questions/error-000732/m-p/748932#M57884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a 000732 data not supported or does not exist error. Turns out I had multiple instances of the Python IDLE GUI open and running when trying to run the script. This must create locks on the dataset. So closing the other python consoles down solved this issue for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ESRI need to update this error as it's currently misleading. The dataset IS supported (it was an excel spreadsheet) and the data DOES exist (trust me, it did!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 09:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000732/m-p/748932#M57884</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2017-03-27T09:08:27Z</dc:date>
    </item>
  </channel>
</rss>

