AnsweredAssumed Answered

NumPyArrayToFeatureClass gives RuntimeError: create table

Question asked by skalikurek on Feb 26, 2019
Latest reply on Feb 26, 2019 by Dan_Patterson

I've tried to change polygon feautre  to point by using tools:

My code as below:
import arcpy
import numpy as np
a = arcpy.da.FeatureClassToNumPyArray(in_file, ["*"], explode_to_points=False)

arcpy.da.NumPyArrayToFeatureClass(a, out_file,["shape"])

I got an error:

Traceback (most recent call last):
  File "C:/ios/OneDrive/python/", line 7, in <module>
    arcpy.da.NumPyArrayToFeatureClass(a, out_file,["shape"])
RuntimeError: create table

I had changed out_file to shp file and it works but it is not solution for me. I would like to be able write to .gdb.
Any idea how to solve this problem?