i have a huge problem with an error . when i use getparameterastext and use it for searchcursor , i encounter to an error .for example the below code
import arcpy
featureClass = arcpy.GetParameterAsText(0)
populationField = arcpy.GetParameterAsText(1)
rows = arcpy.SearchCursor(featureClass)
the error is :
Runtime error : ERROR 999999: Error executing function.
the error is different in pythonwin . the error is :
Traceback (most recent call last): File "", line 1, in File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy__init__.py", line 804, in SearchCursor return gp.searchCursor(*args) File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing_base.py", line 357, in searchCursor self._gp.SearchCursor(*gp_fixargs(args))) RuntimeError: ERROR 999999: Error executing function.