Hi, I need to create a memory featureclass from a JSON file (Esri).
My code looks like this:
json_out = f"C:/Temp/feats_{datetime.strftime(now, '%Y-%m-%dT%H%M%S')}.json"
with open(json_out, 'w') as outfile:
outfile.write(str(feature_set)) # feature_set is validated Esri JSON
# The JSON file loads fine and the conversion works
# without issue in the ArcGIS Pro GUI when writing to a file geodatabase.
new_fc = arcpy.JSONToFeatures_conversion(json_out, r"memory\temp_fc")
This yields
arcgisscripting.ExecuteError: ERROR 000206: Cannot create FeatureClass 'memory\temp_fc'.
I've tried giving it a geometry_type (unnecessary, it's EsriJSON) with no change.
Ideas?