I am using ArcGIS Desktop 10.5.
I have had this work for me before, so I am confused as to what problem I am -running into now. When making a selection to copy to a new dataset in Arcpy, -here is the important part of the code:
sortoutput = 'c:/Users/srcha/Desktop/Cluster_Analysis/output/Ld_Playas_extracted1_sorted.shp'
sortedftr = 'C:/Users/srcha/Desktop/Cluster_Analysis/output/Ld_Play_extra_sort_ftr.shp'
arcpy.MakeFeatureLayer_management(sortoutput,sortedftr)
arcpy.SelectLayerByAttribute_management(sortedftr, selection_type="NEW_SELECTION", where_clause='"AREA_ADJ" >=0.07957')
This yields the following error:
ExecuteError: Failed to execute. Parameters are not valid. Error 000732: Layer Name of Table View: data set C:/Users/srcha/Desktop/Cluster_Analysis/output/Ld_Play_extra_sort_ftr.shp does not exist or is not supported
Failed to execute (SelectLayerByAttribute)