Failed to execute. Parameters are not valid. ERROR 000814: Invalid file type Failed to execute (JSONToFeatures). I cannot figure out why the file is "Invalid file type". It is a json serialized (type is "Feature Layer" and geometryType is "esriGeometryPolygon"). I can run the script under ArcGIS Pro 2.94 and 3.0 successfully.
Traceback (most recent call last): File "<string>", line 48, in main File "C:\Program Files\ArcGIS SDKs\LocalServer100.14\64\Pro\Resources\ArcPy\arcpy\conversion.py", line 1169, in JSONToFeatures raise e File "C:\Program Files\ArcGIS SDKs\LocalServer100.14\64\Pro\Resources\ArcPy\arcpy\conversion.py", line 1166, in JSONToFeatures retval = convertArcObjectToPythonObject(gp.JSONToFeatures_conversion(*gp_fixargs((in_json_file, out_features, geometry_type), True))) File "C:\Program Files\ArcGIS SDKs\LocalServer100.14\64\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in <lambda> return lambda *args: val(*gp_fixargs(args, True)) arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid. ERROR 000814: Invalid file type Failed to execute (JSONToFeatures). During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 75, in <module> File "<string>", line 51, in main File "C:\AEDT\Temp\NETLOC~1\Documents\ArcGIS\Pkgs\jsontofeature_6393\p20\jsontofeature\aedt.py", line 101, in handleExceptions arcpy.AddError(e.message) AttributeError: 'ExecuteError' object has no attribute 'message'
Problem solved. LocalServer100.14 does not support JSON serialized type being "Feature Layer". When I changed the type to "JsonFeatures", it worked. Backward compatibility is broken in LocalServer100.14.
Glad you found the solution to your problem.
But I'm curious what file type / content you're using as input - Is it GeoJson?
Thanks