Python script is failing. It's supposed to make a selection from a lyer based on attributes value and then select intersecting features of that selection and then make a copy of the selection as a new featureclass. I'm getting the error messages at the end but nothing in between and I can't figure out why. I got it working and then added some documentation and then it began failing again. I've tried running it from PythonWin and as a script tool in ArcMap and ultimately prefer to run it in the latter.
# this script selects digitized streets as well as the streets# they intersect with from outdated centerline files and exports# to a new featureclass to be merged with up to date centerline fileimport arcpyarcpy.env.overwriteoutput = Truetry: # Enter parameters and run tool inPath = arcpy.GetParameterAsText(0) outPath = arcpy.GetParameterAsText(1) inPathFL = arcpy.MakeFeatureLayer_management(inPath, "inPathFL") arcpy.SelectLayerByAttribute_management(inPathFL, "NEW_SELECTION", ' "Link_ID"
# this script selects digitized streets as well as the streets# they intersect with from outdated centerline files and exports# to a new featureclass to be merged with up to date centerline fileimport arcpyarcpy.env.overwriteoutput = Truetry: # Enter parameters and run tool inPath = arcpy.GetParameterAsText(0) outPath = arcpy.GetParameterAsText(1) inPathFL = arcpy.MakeFeatureLayer_management(inPath, "inPathFL") arcpy.SelectLayerByAttribute_management(inPathFL, "NEW_SELECTION", ' "Link_ID"