<?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 Re: Why am I getting the error that &amp;quot;in_memory&amp;quot; does not exist? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683795#M101862</link>
    <description>&lt;P&gt;Try using the replacement tool&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/export-features.htm" target="_blank"&gt;Export Features (Conversion)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/feature-class-to-feature-class.htm" target="_blank"&gt;Feature Class To Feature Class (Conversion)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;has been deprecated.&amp;nbsp; Perhaps there are some subtle differences between the two.&amp;nbsp; Note that output is usually written as ... r"memory\SomeName"&lt;/P&gt;&lt;P&gt;For limitations on "memory" workspaces, see the information in the following&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/the-in-memory-workspace.htm" target="_blank"&gt;Write geoprocessing output to memory—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Feb 2026 20:34:24 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2026-02-11T20:34:24Z</dc:date>
    <item>
      <title>Why am I getting the error that "in_memory" does not exist?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683721#M101841</link>
      <description>&lt;P&gt;Hello, I'm getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Start Time: Wednesday, February 11, 2026 12:39:31 PM&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;Traceback (most recent call last):
  File "\\", line 14, in &amp;lt;module&amp;gt;
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\conversion.py", line 2936, in FeatureClassToFeatureClass
    raise e
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\conversion.py", line 2933, in FeatureClassToFeatureClass
    retval = convertArcObjectToPythonObject(gp.FeatureClassToFeatureClass_conversion(*gp_fixargs((in_features, out_path, out_name, where_clause, field_mapping, config_keyword), True)))
                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in &amp;lt;lambda&amp;gt;
    return lambda *args: val(*gp_fixargs(args, True))
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;ERROR 000732:&lt;SPAN class=""&gt; Output Location: Dataset in_memory does not exist or is not supported
Failed to execute (FeatureClassToFeatureClass).&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I have the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
#get input layer and fields:
arcpy.env.workspace = "in_memory"
input_lyr = arcpy.GetParameterAsText(0)
fld_rank_1 = arcpy.GetParameterAsText(1)
fld_rank_2 = arcpy.GetParameterAsText(2)
out_loc = 
#Search for all records, looking at OBJECTID, first rank and second rank
fields = ["OBJECTID",fld_rank_1, fld_rank_2]
with arcpy.da.UpdateCursor(input_lyr, fields) as cursor:
    for row in cursor:
        if row[1] == row[2]:
            Temp_Selected = "Temp"
            arcpy.conversion.FeatureClassToFeatureClass(input_lyr, "in_memory","Temp_Selector","OBJECTID" +"=" +str(row[0]))
            Temp_Selected = arcpy.management.SelectLayerByLocation(input_lyr,"CONTAINS","Temp_Selector")
            arcpy.conversion.FeatureClassToFeatureClass(input_lyr, "in_memory",Temp_Selected)
            rank_lst = []
            with arcpy.da.UpdateCursor(Temp_Selected, fields) as cursor_1:
                for row_inner in cursor_1:
                    rank_lst.append(row_inner[1])
            if len(rank_lst) == 0:
                pass
            if len(rank_lst) &amp;gt; 0:
                if max(rank_lst) &amp;gt; row[1]:
                    cursor.deleteRow()
                if max(rank_lst) &amp;lt; row[1]:
                    pass
            arcpy.management.Delete(Temp_Selected)
            arcpy.management.Delete("Temp_Selector")
        if row[1] &amp;lt; row[2] or row[1] &amp;gt; row[2]:
            cursor.deleteRow()&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Feb 2026 17:46:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683721#M101841</guid>
      <dc:creator>rescobar</dc:creator>
      <dc:date>2026-02-11T17:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting the error that "in_memory" does not exist?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683724#M101843</link>
      <description>&lt;P&gt;Try using 'memory' workspace instead of 'in_memory' as it's a legacy component.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/the-in-memory-workspace.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/the-in-memory-workspace.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 17:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683724#M101843</guid>
      <dc:creator>RViruet</dc:creator>
      <dc:date>2026-02-11T17:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting the error that "in_memory" does not exist?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683748#M101850</link>
      <description>&lt;P&gt;I still get the same error using this line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.conversion.FeatureClassToFeatureClass(input_lyr, "memory","Temp_Selector","OBJECTID" +"=" +str(row[0]))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Feb 2026 19:00:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683748#M101850</guid>
      <dc:creator>rescobar</dc:creator>
      <dc:date>2026-02-11T19:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting the error that "in_memory" does not exist?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683795#M101862</link>
      <description>&lt;P&gt;Try using the replacement tool&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/export-features.htm" target="_blank"&gt;Export Features (Conversion)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/feature-class-to-feature-class.htm" target="_blank"&gt;Feature Class To Feature Class (Conversion)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;has been deprecated.&amp;nbsp; Perhaps there are some subtle differences between the two.&amp;nbsp; Note that output is usually written as ... r"memory\SomeName"&lt;/P&gt;&lt;P&gt;For limitations on "memory" workspaces, see the information in the following&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/the-in-memory-workspace.htm" target="_blank"&gt;Write geoprocessing output to memory—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 20:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683795#M101862</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2026-02-11T20:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting the error that "in_memory" does not exist?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683802#M101865</link>
      <description>&lt;P&gt;To piggyback on this, memory workspaces aren't available for some tools. It's possible that this was one of them&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 20:43:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683802#M101865</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2026-02-11T20:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting the error that "in_memory" does not exist?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683818#M101869</link>
      <description>&lt;P&gt;Export Features works and even supports selections (see pre and post script images&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="export01.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/148303i0EB027DAFF991B46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="export01.png" alt="export01.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="export02.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/148304i109D4D369E12C0B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="export02.png" alt="export02.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 21:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683818#M101869</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2026-02-11T21:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting the error that "in_memory" does not exist?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683880#M101879</link>
      <description>&lt;P&gt;Doing heavy actions inside Update Cursors like creating a new feature class is a bit buggy from what I remember. Fortunately there's a solution: don't! The only thing you're doing with those new feature classes is capturing a single feature and then using that to location select the input data. Instead, try using &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-feature-layer.htm" target="_self"&gt;Make Feature Layer&lt;/A&gt; to make lightweight views into your data that you can select freely, this should avoid the issue you have&amp;nbsp;&lt;EM&gt;and&lt;/EM&gt; speed up your script by a good deal.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 00:46:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-am-i-getting-the-error-that-quot-in-memory/m-p/1683880#M101879</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2026-02-12T00:46:19Z</dc:date>
    </item>
  </channel>
</rss>

