sdf = pd.DataFrame.spatial.from_featureclass(os.path.join(gdb_file, gdb_layers[1]))
sdf.head()
# Describe the input feature and extract the extent
description = arcpy.Describe(os.path.join(gdb_file, gdb_layers[1]))
extent = description.extent
tessellation_extent = sdf.spatial.full_extent
spatial_ref = extent.spatialReference
I am trying to generate a Feature Class with hexagons by using the method GenerateTessellation_management with this code:
arcpy.GenerateTessellation_management(Output_Feature_Class=gdb_file+r"\hex_tessellation",
Extent=tessellation_extent,
Shape_Type="HEXAGON",
Size="1000000 Square Foot",
Spatial_Reference=spatial_ref
)
And I am getting this error:

I am following the documentation as per the following website:
https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/generatetesellation.htm
Any idea why this is not working?
Thanks in advanced.
Dario