Below is the abbreviated copy of my code. I take an Excel file, read into a panda dataframe, convert that to a spatial dataframe and write it out as a point featureclass. If I write a shapefile it works but when I write to a File GDB it writes nothing and doesn't even show an error.
My Code:
import pandas as pd
from arcgis.features import GeoAccessor, GeoSeriesAccessor
df = pd.read_excel (filename)
# convert Pandas dataframe to Spatial Data Frame
sdf= pd.DataFrame.spatial.from_xy(df=df,
x_column='Structure_Lng',
y_column='Structure Lat',
sr=4326)
# show first 5 records in SDF
print(sdf.head()) # looks good
#Convert SDF to Featureclass. ### This fails
sdf.spatial.to_featureclass(location="C:/temp/test.fdb/myPts", overwrite=True);
# this works
sdf.spatial.to_featureclass(location="C:/temp/myPts.shp", overwrite=True)