AnsweredAssumed Answered

Overwrite input not working

Question asked by vonmoosa Champion on Sep 10, 2018
Latest reply on Sep 10, 2018 by Dan_Patterson

Below is the script I'm trying to run but it will not overwrite the input layer. I'm not sure what I'm doing wrong.....

# Import arcpy module
import arcpy, datetime, os
arcpy.env.overwriteOutput = True

arcpy.env.workspace = r"G:\****************************\Files"

arcpy.MakeFeatureLayer_management("ApprovedApproachesCy2.shp", "ApprovedApproachesCy2")

arcpy.SelectLayerByAttribute_management("ApprovedApproachesCy2", "NEW_SELECTION", "Culvert_Re = 'yes' AND Date_Appro = CURRENT_DATE")

arcpy.CopyFeatures_management ("ApprovedApproachesCy2", "ApprovedApproachesCy2")
print "Complete"