Hi All,
I'm trying to do the following:
- Convert a non-spatial pandas dataframe to a spatial dataframe
- Export the spatial dataframe to a feature class in an ESRI file geodatabase, based on the instructions provided in ESRI's Introduction to the Spatially Enabled DataFrame
However, I get the error "SystemError: <da.funcInfo object at 0x0000029FA43C52A0> returned NULL without setting an error".
I googled the error and the only hits I got implied the issue has something to do with making a C extension. Do any of you have any insights on this?
Here's the full code for context:
out_fc_path = 'I:\\Projects\\Darren\\EmpInventory\\EmploymentInventory.gdb\\testrecs9581720210407_1435'
sdft = GeoAccessor.from_xy(master_df, fld_lat, fld_lon) # no issues here!
sdft.spatial.to_featureclass(location=out_fc_path)
Traceback (most recent call last):
File "<ipython-input-29-2e5a93021399>", line 1, in <module>
sdft.spatial.to_featureclass(location=out_fc_path)
File "C:\Users\dconly\AppData\Local\ESRI\conda\envs\arcgispro-py3-dcmar21\lib\site-packages\arcgis\features\geo\_accessor.py", line 2122, in to_featureclass
has_m=has_m)
File "C:\Users\dconly\AppData\Local\ESRI\conda\envs\arcgispro-py3-dcmar21\lib\site-packages\arcgis\features\geo\_io\fileops.py", line 708, in to_featureclass
arcpy.da.ExtendTable(fc, oidfld, array, join_dummy, append_only=False)
SystemError: <da.funcInfo object at 0x0000029FA43C52A0> returned NULL without setting an error