TomGeo

ListFeatureClasses comes back empty

Discussion created by TomGeo on Oct 11, 2012
Latest reply on Oct 11, 2012 by TomGeo
Dear all,

I have a problem that comes and go's. Currently is is again immanent and I wonder what's causing it.

Working with ArcGIS 10 and using straight the IDLE from Python...

>>> import arcpy
>>> from arcpy import env
>>> env.workspace = r"Path\\to\\database.gdb"
>>> lstFDS = arcpy.ListDatasets("*", "FEATURES") # returns list of three items - correct
>>> lstPOLY = arcpy.ListFeatureClasses("*", "POLYGON", lstFDS[2])
>>> lstPOLY
[]


The dataset requested is holding almost 200 feature classes, all of them loaded with polygons.
I see all of them in ArcCatalog, but not in Python!

Anybody an idea? I already had a took care of remaining objects and invoked the garbage collector by hand but nothing.

Cheers Thomas

Outcomes