Hi all
I am getting this error when I try to process a specific Feature Class
for fc in fcList:
print "Feature: " + fc
#
#
# Process Process Feature Class X
#
if fc == 'SpecificFeatureClass':
.......
Please post your entire non-working script and error message. There does not appear to be an error in what you've posted. For example, this works:
>>> arcpy.env.workspace = r'C:/junk' ... fcList = arcpy.ListFeatureClasses() ... for fc in fcList: ... if fc == 'utms.shp': ... print fc ... # returns utms.shp
This is what I did and it works.
for fc in fcList:
print "Feature: " + fc
#
#
# Process Sewer Access Manhone
#
desc = arcpy.Describe(fc)
fname = desc.Name
print "Feature Name: " + fname
if fname == "SpecificFeatureClass":