import arcpy from arcpy import env env.workspace = r"C:\temp\python\test.gdb" fc = "Req_Test" lstFields = arcpy.ListFields(fc, "*") for field in lstFields: if field.required == True: field_name = field.name rows = arcpy.SearchCursor(fc, "", "", field_name) for row in rows: val = row.getValue(field_name) if val == " ": print field_name + " contains a blank row for OBJECTID " + str(row.OBJECTID) del row, rows
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.