I am trying to achieve print all featureclass, total count, notNullvalues. I am trying hard on this code.
but getting Error:
suggest how can I code better and working. I am not regular python user.
RuntimeError: ERROR 999999: Error executing function.
import arcpy import arcpy import collections arcpy.env.workspace = r"path" arcpy.env.overwriteOutput = True #time.sleep(5) #StartTime = time.clock() fclist = arcpy.ListFeatureClasses("*Rebok*") for fc in fclist: fields = [f.name for f in arcpy.ListFields(fc)] Tcount = str(arcpy.GetCount_management(fc)) # Loop through Table and see which fields are NOT NULL or Non Blank cur = arcpy.SearchCursor(fc) count = 0 for row in cur: if not row.getValue(fields) in [None, " ", ""]: count += 1 print count