<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Cannot create JSONToFeatures output in memory in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/cannot-create-jsontofeatures-output-in-memory/m-p/1148230#M63877</link>
    <description>&lt;P&gt;Hi, I need to create a memory featureclass from a JSON file (Esri).&lt;/P&gt;&lt;P&gt;My code looks like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;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")&lt;/LI-CODE&gt;&lt;P&gt;This yields&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcgisscripting.ExecuteError: ERROR 000206: Cannot create FeatureClass 'memory\temp_fc'.&lt;/LI-CODE&gt;&lt;P&gt;I've tried giving it a geometry_type (unnecessary, it's EsriJSON) with no change.&lt;/P&gt;&lt;P&gt;Ideas?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 22:56:04 GMT</pubDate>
    <dc:creator>EricEagle</dc:creator>
    <dc:date>2022-02-25T22:56:04Z</dc:date>
    <item>
      <title>Cannot create JSONToFeatures output in memory</title>
      <link>https://community.esri.com/t5/python-questions/cannot-create-jsontofeatures-output-in-memory/m-p/1148230#M63877</link>
      <description>&lt;P&gt;Hi, I need to create a memory featureclass from a JSON file (Esri).&lt;/P&gt;&lt;P&gt;My code looks like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;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")&lt;/LI-CODE&gt;&lt;P&gt;This yields&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcgisscripting.ExecuteError: ERROR 000206: Cannot create FeatureClass 'memory\temp_fc'.&lt;/LI-CODE&gt;&lt;P&gt;I've tried giving it a geometry_type (unnecessary, it's EsriJSON) with no change.&lt;/P&gt;&lt;P&gt;Ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 22:56:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-create-jsontofeatures-output-in-memory/m-p/1148230#M63877</guid>
      <dc:creator>EricEagle</dc:creator>
      <dc:date>2022-02-25T22:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create JSONToFeatures output in memory</title>
      <link>https://community.esri.com/t5/python-questions/cannot-create-jsontofeatures-output-in-memory/m-p/1148235#M63878</link>
      <description>&lt;P&gt;It could be that only current and scratch workspace are supported environments&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 23:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-create-jsontofeatures-output-in-memory/m-p/1148235#M63878</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-02-25T23:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create JSONToFeatures output in memory</title>
      <link>https://community.esri.com/t5/python-questions/cannot-create-jsontofeatures-output-in-memory/m-p/1148262#M63879</link>
      <description>&lt;P&gt;I had a python toolbox that used the memory workspace for&amp;nbsp;&amp;nbsp;arcpy.JSONToFeatures_conversion. It worked fine in Pro 2.3 but stopped working when we moved to 2.6. I haven't tried in 2.8.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 08:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-create-jsontofeatures-output-in-memory/m-p/1148262#M63879</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2022-02-26T08:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create JSONToFeatures output in memory</title>
      <link>https://community.esri.com/t5/python-questions/cannot-create-jsontofeatures-output-in-memory/m-p/1148270#M63880</link>
      <description>&lt;P&gt;&lt;EM&gt;in_memory is the legacy memory-based workspace built for ArcMap that supports output feature classes, tables, and raster datasets.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;perhaps that was around the time of transition to the new memory workspace.&amp;nbsp; apparently it is still around and supported within Pro, might be worth a shot&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 12:28:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-create-jsontofeatures-output-in-memory/m-p/1148270#M63880</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-02-26T12:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create JSONToFeatures output in memory</title>
      <link>https://community.esri.com/t5/python-questions/cannot-create-jsontofeatures-output-in-memory/m-p/1149389#M63901</link>
      <description>&lt;P&gt;Thanks Dan, I switched to in_memory and it worked.&amp;nbsp; Hopefully that won't be deprecated any time soon (or at least not before memory supports all the same operations)!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 00:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-create-jsontofeatures-output-in-memory/m-p/1149389#M63901</guid>
      <dc:creator>EricEagle</dc:creator>
      <dc:date>2022-03-02T00:42:11Z</dc:date>
    </item>
  </channel>
</rss>

