Hi all,
I am using arcpy to list feature classes to push them into a merge function. I keep being a return value of none. To trouble shoot I split the arcpy.ListFeatureClasses function into a new script and tested it standalone. When I did it came up with none on multiple geodatabases that all contained data. I have double checked the environments to make sure I am using the same FGDB as is in the script.
Has anyone had issues with arcpy.ListFeatureClasses recently? Any suggestions?
Below is my test code:
import arcpy
import os
from arcpy import env
arcpy.env.workspace = r"\C:\GIS\Projects\TetonRange\SplitQuarters.gdb"
env.overwriteOutput = True
fsc = arcpy.ListFeatureClasses("c*")
print(fsc)
results are none.
thanks!
Solved! Go to Solution.
r"\C:\GIS\Projects\TetonRange\SplitQuarters.gdb"
should probably be
r"C:\GIS\Projects\TetonRange\SplitQuarters.gdb"
r"\C:\GIS\Projects\TetonRange\SplitQuarters.gdb"
should probably be
r"C:\GIS\Projects\TetonRange\SplitQuarters.gdb"
Bingo. Thank you Dan!