Cannot overwriteOutput with arcpy.da.NumPyArrayToFeatureClass

591
1
Jump to solution
07-02-2017 09:30 AM
OliverDaniel
New Contributor

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

0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Emeritus

That is because you can't... check the warning in the help topic same in arcmap or in Pro

View solution in original post

1 Reply
DanPatterson_Retired
MVP Emeritus

That is because you can't... check the warning in the help topic same in arcmap or in Pro