# Import arcpy module
import arcpy
# Check out any necessary licenses
arcpy.CheckOutExtension("spatial")
inputFS = arcpy.GetParameterAsText(0)
tableResult = arcpy.GetParameterAsText(1)
downtown_solar3pt5_Year = "D:\\TorontoData\\ArcServer Published Data\\Map Data\\Toronto Solar Main.gdb\\downtown_solar3pt5_Year"
arcpy.gp.ZonalStatisticsAsTable_sa(inputFS, "OBJECTID", downtown_solar3pt5_Year, tableResult, "DATA", "ALL")
I had the same conversion error when iterating feature classes through zonal statistics as table on a raster layer. After a long period of troubleshooting, I determined the fix was the processing extent of the model. It successfully ran once I set the zonal stat as table tool processing extent to the same extent as the shapefile layer that defined the zones. I hope this helps someone out there.