AnsweredAssumed Answered

Cannot overwriteOutput with arcpy.da.NumPyArrayToFeatureClass

Question asked by omd7cesri on Jul 2, 2017
Latest reply on Jul 2, 2017 by Dan_Patterson

When I try to run NumPyArrayToFeatureClass from both and ArcGIS Pro interactive session (built in python console) or from a script, it does not let me overwrite output despite setting the env.overwriteOutput variable to True

>>> arcpy.env.overwriteOutput = True
>>> arcpy.da.NumPyArrayToFeatureClass(arr,fc,['xy'],sr)
Traceback (most recent call last):
File "<pyshell#28>", line 1, in <module>
arcpy.da.NumPyArrayToFeatureClass(arr,fc,['xy'],sr)
RuntimeError: table 'C:\Users\olive\OneDrive\Documents\ArcGIS\Projects\MyProject\MyProject.gdb\charlie' Exists

Outcomes