<?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 Re: ERROR 999999: Error executing function. A column was specified that does not exis in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677449#M52466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might have some issues in your SQL formatting for your SelField between different data types. Differences between shapefile, personal or file GDB for example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See this for more info on it &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s500000033000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s500000033000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: But you don't really have any SQL in there so that probably isn't it. Does it only bomb out when you remove and readd the same layer? Under what other conditions does it not work? Have you tried running it as a stand-alone script with hard coded values and use a debugger to trace the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2011 16:53:24 GMT</pubDate>
    <dc:creator>MathewCoyle</dc:creator>
    <dc:date>2011-05-24T16:53:24Z</dc:date>
    <item>
      <title>ERROR 999999: Error executing function. A column was specified that does not exist.</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677446#M52463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the following script. Sometimes it runs and sometimes it does not. I think it might be the search cursor causing problems, but I am not sure. Other people, who do not have&amp;nbsp; GIS background knowledge will be running this scipt so I need it to work all the time, not just some of the time. The script works fine as long as I run my scripts one after another and don't touch anything. If I remove everything from the table of contents and add it again, the error occurs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any suggestions how to fix it or what to do so that it always runs?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really appriciate the help. Sorry the script is a little long:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; 
# ---------------------------------------------------------------------------
# NeighbourhoodSelect.py
# Created on: 2011-04-21 12:32:34.00000
#&amp;nbsp;&amp;nbsp; (generated by ArcGIS/ModelBuilder)
# Description: This script asks the user to input the geodatabase, Neighbourhood feature class
# and the CalcPop feature class. A GUI appears which asks the user to select a
# neighbourhood. Once the neighbbourhood is selected, the attributes from the CalcPop feature
# class are joined to the selected neighbourhood and a new feature class, containing only the
# the information for that neighbourhood is created.
# ---------------------------------------------------------------------------

# Import arcpy module
import arcpy, sys, os

from Tkinter import *

Title = "Neighbourhoods"

arcpy.env.workspace = sys.argv[1]

# Local variables:
Layer = sys.argv[2]
out_select = "selection"
Parcel_fc = sys.argv[3]

SelField = "NeighbourhoodName"
arcpy.env.overwriteOutput = True

#Create a GUI containing a listbox and buttons
class Application (Frame):
&amp;nbsp;&amp;nbsp;&amp;nbsp; def __init__(self, master=None):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Frame.__init__(self, master)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.grid()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.createWidgets(master)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; def createWidgets(self, master):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.yScroll1 = Scrollbar ( self, orient=VERTICAL )
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.yScroll1.grid ( row=0, column=1, sticky=N+S )
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.stList = Listbox (self, yscrollcommand=self.yScroll1.set)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.stList.grid(row=0, column=0, sticky=EW)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.yScroll1["command"] = self.stList.yview
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Populate list with choices in ascending order
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd=arcpy.mapping.MapDocument("C:\\Users\\me\\Desktop\\Project\\TEST\\POP.mxd")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for lyr in arcpy.mapping.ListLayers(mxd):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if lyr.name == Layer:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelTable = lyr.dataSource
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rows = arcpy.SearchCursor(SelTable, "", "", SelField, SelField + " A")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oldVal = ""
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newVal = row.getValue(SelField)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #only add value to Listbox if it is not a duplicate
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if newVal &amp;lt;&amp;gt; oldVal:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.stList.insert( END, row.getValue(SelField) )
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oldVal = newVal

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #add selection and quit buttons
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.selButton1=Button(self,text='Submit', command=self.selectNeighbourhood)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.selButton1.grid(row=0,column=2, sticky=N+ EW)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.quitButton = Button(self, text='Exit', command=master.destroy)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.quitButton.grid(row=0,column=2, sticky= S+EW)


&amp;nbsp;&amp;nbsp;&amp;nbsp; def selectNeighbourhood(self):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sel = self.stList.curselection()

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myFeature = self.stList.get(sel[0])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where_clause = "\"" + SelField + "\" = " + "'" + str(myFeature) + "'" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Select_analysis(Layer, out_select, where_clause)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print where_clause
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myFeature = myFeature.replace(' ', '_')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Intersect
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inFeatures = [out_select, Parcel_fc]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; neighbourhoods_Intersect = myFeature&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Intersect_analysis(inFeatures, neighbourhoods_Intersect, "ALL", "", "INPUT")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Intersect Complete")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NI_lyr = '"' + neighbourhoods_Intersect + '"'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeFeatureLayer_management(neighbourhoods_Intersect, NI_lyr)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("layer created")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(out_select)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.overwriteOutput = True

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #stats = myFeature
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unique_name = arcpy.CreateUniqueName(neighbourhoods_Intersect)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Summary Statistics
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Statistics_analysis(neighbourhoods_Intersect, unique_name, "CurrentPop SUM", "CurrentPop")

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Add Field
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(unique_name, "Total_Population", "DOUBLE", "", "", "", "", "NULLABLE", "REQUIRED", "")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Field is Added")

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rows = arcpy.SearchCursor(unique_name, "", "", "SUM_CurrentPop")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewList= []
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row = row.getValue("SUM_CurrentPop")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if row != None:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print row
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewList.append(row)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total = sum(NewList)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print total

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CalculateField_management(unique_name, "Total_Population", total, "PYTHON")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("All processes are completed. Please close GUI")

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except Exception, e:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tb = sys.exc_info()[2]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Line %i" % tb.tb_lineno
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print e.message

root = Tk()
app = Application(master=root)
app.master.title(Title)
app.mainloop()
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 21:26:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677446#M52463</guid>
      <dc:creator>kristinavucic</dc:creator>
      <dc:date>2011-05-19T21:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. A column was specified that does not exis</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677447#M52464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there any way you could edit your post and enclose the code in a code (the # symbol in the html editor) to make it easier to read?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 22:00:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677447#M52464</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-05-19T22:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. A column was specified that does not exis</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677448#M52465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry! here it is.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 22:09:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677448#M52465</guid>
      <dc:creator>kristinavucic</dc:creator>
      <dc:date>2011-05-19T22:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. A column was specified that does not exis</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677449#M52466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might have some issues in your SQL formatting for your SelField between different data types. Differences between shapefile, personal or file GDB for example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See this for more info on it &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s500000033000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s500000033000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: But you don't really have any SQL in there so that probably isn't it. Does it only bomb out when you remove and readd the same layer? Under what other conditions does it not work? Have you tried running it as a stand-alone script with hard coded values and use a debugger to trace the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 16:53:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677449#M52466</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-05-24T16:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. A column was specified that does not exis</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677450#M52467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, i´m peruvian, i have a posible solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Remove any special caracter of SHP file name [.][,][other] example: name.1.3.shp --&amp;gt; name.shp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Export to Data, Single GDB, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. enjoy!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2011 13:39:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677450#M52467</guid>
      <dc:creator>percyrojas</dc:creator>
      <dc:date>2011-06-25T13:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. A column was specified that does not exis</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677451#M52468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having this exact problem while using an arcscript to do Zonal Statistics or resampling of large raster datasets. Sometimes it works without a hitch and sometimes it fails with the message: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Workspace or data source is read only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Workspace or data source is read only. [The C:\Data2011\DATA\CRU3\hru\ workspace is read only.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010067: Error in executing grid expression. Zonal statistics program failed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (ZonalStatisticsAsTable).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is really weird. I modify the code so that it restarts from where it failed in the RasterLists and it works without any problem again until another random same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It stops randomly. When rerun, it stops at another file location...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated as it is really frustratin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 12:46:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677451#M52468</guid>
      <dc:creator>DagnachewLegesse</dc:creator>
      <dc:date>2011-07-22T12:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. workspace read only</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677452#M52469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever resolve this issue?&amp;nbsp; I am fighting the same problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 20:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677452#M52469</guid>
      <dc:creator>JoannaWhittier</dc:creator>
      <dc:date>2012-03-06T20:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. A column was specified that does not exis</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677453#M52470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This issue can happen if you create a feature layer (MakeFeatureLayer tool) from a a featureclass, add and populate a field to the featureclass, and then **for example** attempt to use the featurelayer as input to the Dissolve tool specifying the newly added field as the Dissolve field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The basic issue is that the feature layer is sort of like an in-memory snapshot reference to the featureclass. If the featureclass grows a soul patch and dyes its hair green, the feature layer (being a snapshot of sorts) is not aware of the change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To refresh the feature layer, just create it again (overwrite the old one) after you have added the field... or better yet, don't create it until your table schema is in it's final state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: The issue can happen with a table/table view just the same.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 20:54:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677453#M52470</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2012-03-06T20:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. A column was specified that does not exis</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677454#M52471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, but that does not answer the question for the problem with Zonal Stats. I got the same error, running a script with zstats as table in a loop. I tried it with feature classes as inputs, and then with rasters, and both times I received: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Workspace or data source is read only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Workspace or data source is read only. [The C:\Users\Jamie\Documents\ArcGIS\zstats.gdb workspace is read only.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010067: Error in executing grid expression. Zonal statistics program failed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (ZonalStatisticsAsTable).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea why this might occur? Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 21:11:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677454#M52471</guid>
      <dc:creator>JamieKass</dc:creator>
      <dc:date>2012-05-28T21:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. A column was specified that does not exis</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677455#M52472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, but that does not answer the question for the problem with Zonal Stats.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, for the original question posted, I did offer a plausable explaination for the error message (ERROR 999999: A column was specified that does not exist).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your error message, which is different than the error message in the original post, I speculate that you might have compressed your FGDB. Running the Compress FGDB tool (instead of a Compact) makes the FGDB read only. Try running the Uncompress FGDB tool on your .gdb, and see if you are then able to run the Zonal Stats tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 15:09:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677455#M52472</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2012-05-29T15:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. A column was specified that does not exis</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677456#M52473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much, Chris. I apologize for the false accusation! Your method worked perfectly, but I wonder what caused the gdb to compress itself, as I never ran code to specifically do that. All I did was open a search cursor, make some selections, and export new fcs. Can compression occur as a side-effect of another process?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 15:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677456#M52473</guid>
      <dc:creator>JamieKass</dc:creator>
      <dc:date>2012-05-29T15:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. A column was specified that does not exis</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677457#M52474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can compression occur as a side-effect of another process?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not that I know of.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 15:36:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677457#M52474</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2012-05-29T15:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. A column was specified that does not exis</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677458#M52475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Spoke too soon... The uncompress method worked like a charm the first time, but as other users found earlier, the loop fails midway at a random step and calls the "Workspace or data source is read only" error. I made sure to delete my row and cursor objects, which make the workspace read-only, and haven't had this issue with any tool besides Zonal Statistics as Table. Any ESRI folks know what the issue is?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 16:10:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677458#M52475</guid>
      <dc:creator>JamieKass</dc:creator>
      <dc:date>2012-05-29T16:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. A column was specified that does not exis</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677459#M52476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having this problem also (doing a zonal stats as table process). It errors out (the same error as posted above) in the MXD; the workaround for me is doing it out of catalog. Works like a charm there. Still, its frustrating not knowing what is causing it to bomb in the MXD.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 00:27:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-error-executing-function-a-column-was/m-p/677459#M52476</guid>
      <dc:creator>JoelThomas</dc:creator>
      <dc:date>2013-08-01T00:27:30Z</dc:date>
    </item>
  </channel>
</rss>

