I am trying to write a Python script that will only run processes on a shapefile if there are more than 0 records in it.
I tried to use the Get Count tool (rows = arcpy.GetCount_management(file)) but if you try to run this on an empty shapefile (0 records), it returns:
ERROR 000229: Cannot open [insert shapefile path]
Failed to execute (GetCount).
It only runs on shapefiles that contain records. So what alternate code can I use to check a shapefile has records in it before attempting to run a process?
I have attached the empty shapefile.