Exclude = ['shape_area','shape_length','globalid','Shape.len'] field_list = [f.name for f in arcpy.ListFields(in_fc) if f.name.lower() not in Exclude]
Solved! Go to Solution.
Exclude = ['shape_area','shape_length','globalid','shape.len']
Exclude = ['shape_area','shape_length','globalid','shape.len']
I think you would want to change it to:
Exclude = ['shape_area','shape_length','globalid','shape.len']
You had the 'S' capitalized, but in your list comprehension you are casting all field names to lower case for matching.