Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

ListTables does not work...

$
0
0
Hi,

I am working with ArcGIS 10.1 SP1 and I try to list tables from within a file geodatabase.
I set the workspace to the specific geodatabase and write:

Code:

lstTables = arcpy.ListTables()
len(lstTables)

The result of this is an empty list. I can reproduce this using external scripts, and when using the Python window within ArcMap or ArcCatalog. I can see all the tables in ArcCatalog and I can have a preview of them... However, to list them is impossible.
it is also impossible to copy them into another FGDB. The attempt to copy the tables ends in crashing ArcMap or ArcCatalog.

When I try to list all the feature classes in the same FGDB then I have no problem and I get the correct result.

Any solution for this problem?

Bests Tom

Viewing all articles
Browse latest Browse all 2485

Trending Articles