The current code I have simply lists ALL fields in the feature class and seems to ignore my logic of
if row is not None:
Why does it do this?
fields = arcpy.ListFields('\\\\Bvweb104draco\\e\\03_MapServices\\SDE_CONNECTIONS\\bvcolumbusdev.sde\\bvcolumbusdev.sde.Telecom\\bvcolumbusdev.sde.AREAS') featureClass = '\\\\Bvweb104draco\\e\\03_MapServices\\SDE_CONNECTIONS\\bvcolumbusdev.sde\\bvcolumbusdev.sde.Telecom\\bvcolumbusdev.sde.AREAS' with arcpy.da.SearchCursor(featureClass, str(fields)) as cursor: for field in fields: if row is not None: print(field.name)
I want the cursor to loop through each field and if it stumbles upon a row that has a value other than NULL, print that field name.