AnsweredAssumed Answered

'in_table' is not a table or a featureclass

Question asked by jpilbeam Champion on Jul 8, 2020
Latest reply on Aug 18, 2020 by bixb0012

Why is this Table not a table? 

 

At first I had 'Table' in the type parameter and got [ ]. Then I found out the Table is actually a 'Feature Layer Collection'.

 

So, that's great. Or so I thought. But, then I get an error telling me the table is not a table?

with arcpy.da.SearchCursor(table, fields) as cursor:
    for row in cursor:
        description_dict[row[1]] = row[0]
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-21-bdc66f453653> in <module>
     13 description_dict = {}
     14
---> 15 with arcpy.da.SearchCursor(table, fields) as cursor:
     16     for row in cursor:
     17         description_dict[row[1]] = row[0]

RuntimeError: 'in_table' is not a table or a featureclass

 

I then tried the Green Descriptions CSV but got the same error.

with arcpy.da.SearchCursor(csv, fields) as cursor:
    for row in cursor:
        description_dict[row[1]] = row[0]
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-22-b36d2a96d554> in <module>
     13 description_dict = {}
     14
---> 15 with arcpy.da.SearchCursor(csv, fields) as cursor:
     16     for row in cursor:
     17         description_dict[row[1]] = row[0]

RuntimeError: 'in_table' is not a table or a featureclass

 

I've came across a similar thread posted earlier this year that was never answered Convert from Feature Collection to Feature Class 

Outcomes