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:

FeatureClassToNumPyArray
NumPyArrayToFeatureClass.
My code as below:
import arcpy
import numpy as np
in_file='C:/ios/OneDrive/siatki_obliczeniowe/siatki.gdb/siatka_005'
a = arcpy.da.FeatureClassToNumPyArray(in_file, ["*"], explode_to_points=False)
out_file='C:/ios/OneDrive/siatki_obliczeniowe/siatki.gdb/xxxx3'

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

I got an error:

Traceback (most recent call last):
  File "C:/ios/OneDrive/python/feature_to_point.py", 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?

Outcomes