Insert NULL into GDB feature class field using Insert Cursor in 9.3?

Discussion created by ebrightc on Jan 4, 2011
Latest reply on Jan 5, 2011 by achapkowski-esristaff
I am developing a Python script that takes a tab delimited text file and creates a File Geodatabase feature class using an Insert Cursor with arcgisscripting 9.3. I cannot figure out how to insert a NULL value into a numeric field. I can insert a dummy number, but i would rather have the NULL. If i try using a pass statement within an if statement, I end up populating the field with the value from the previous row. Here is an abbreviated verison of the code:

if value[1] == "":
    feature.Distance = long(value[1])