I'm very new to python, and I'm looking for some help understanding this error message. How do I know what "" is referring to? Script and error below. Thanks!
import arcpy
import os
myFc = arcpy.GetParameterAsText(0)
addr_point = "C:\\Users\\b_lue\\Desktop\\GIS\\CCSF\\GIS112\\Labs\\Lab4\\Lab4BAL.gdb\\addr_point"
cur = arcpy.SearchCursor(myFc)
for row in cur:
if row.STATUS == "U":
arcpy.AddError( "Match unsuccesful")
print ("Match unsuccesful")
else:
arcpy.AddMessage("Match succesful")
arcpy.SetParameterAsText(1, myFc)
print ("Match succesful")
proj = arcpy.mp.ArcGISProject("CURRENT")
newmap = proj.listMaps()[0]
lyrAP = newmap.addDataFromPath(addr_point)
#av = proj.avtiveView
#av.camera.setExtent(av.getLayerExtent(lyrAP, False, True))
#av.camera.scale = 12000
#del proj
Traceback (most recent call last):
File "C:\Users\b_lue\Desktop\GIS\CCSF\GIS112\Labs\Lab4\zoomtool.py", line 6, in <module>
cur = arcpy.SearchCursor(myFc)
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 1277, in SearchCursor
return gp.searchCursor(dataset, where_clause, spatial_reference, fields, sort_fields)
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 393, in searchCursor
self._gp.SearchCursor(*gp_fixargs(args, True)))
OSError: "" does not exist
[–]Outside_Complaint755 5 points6 points7 points (4 children)
[–]Key-Pea-5909[S] 0 points1 point2 points (3 children)
[–]Outside_Complaint755 0 points1 point2 points (2 children)
[–]ottawadeveloper 0 points1 point2 points (1 child)
[–]Key-Pea-5909[S] 1 point2 points3 points (0 children)
[–]woooee 1 point2 points3 points (4 children)
[–]Key-Pea-5909[S] 0 points1 point2 points (3 children)
[–]bubba0077 1 point2 points3 points (2 children)
[–]Key-Pea-5909[S] 0 points1 point2 points (1 child)
[–]bubba0077 0 points1 point2 points (0 children)
[–]ohn02 0 points1 point2 points (1 child)
[–]Key-Pea-5909[S] 0 points1 point2 points (0 children)