I have tried run this script but i get the following error, <type 'exceptions.IndexError'>: list index out of rangeFailed to execute (Script).I would like to enter a Parcel number and have it select and zoom to that parcel. I would like to make a script tool out of this.ACCTEXT is the filed i am searching in are are follows. P12345, P12346, P98745 etc..TAXPARCELS is they layer i am searching in.import arcpy arcpy.AddMessage("Starting") pu = arcpy.GetParameterAsText(0) arcpy.AddMessage(pu) mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "Main Map")[0] lyr = arcpy.mapping.ListLayers(mxd, "TAXPARCELS", df)[0] arcpy.AddMessage(lyr.name) expression = "ACCTEXT = '"+p+"'" arcpy.AddMessage(expression) arcpy.SelectLayerByAttribute_management(lyr,"NEW_SELECTION",expression) df.extent = lyr.getSelectedExtent() df.scale = df.scale*1.1 for elm in arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "P"): if elm.name == "P": elm.text = (p) arcpy.SelectLayerByAttribute_management(lyr,"CLEAR_SELECTION") arcpy.RefreshActiveView() arcpy.AddMessage("Completed")