<?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: Python Script Dissolve (in_)memory Error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1379726#M69811</link>
    <description>&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>Thu, 08 Feb 2024 15:47:05 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2024-02-08T15:47:05Z</dc:date>
    <item>
      <title>Python Script Dissolve (in_)memory Error</title>
      <link>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1379375#M69803</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The following code produces an the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fc_mem_1 = r"memory\temp_1"
...
fc_mem_2 = r"memory\temp_2" # memory fails, use in_memory
arcpy.analysis.PairwiseDissolve(fc_mem_1, fc_mem_2, 'cl_id', statistics_fields=stat_fields, multi_part='MULTI_PART')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerT_0-1707340078538.png" style="width: 504px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93994iF45D4C4753A067C9/image-dimensions/504x58?v=v2" width="504" height="58" role="button" title="TylerT_0-1707340078538.png" alt="TylerT_0-1707340078538.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;While the following code does not produce an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fc_mem_1 = r"memory\temp_1"
...
fc_mem_2 = r"in_memory\temp_2"
arcpy.analysis.PairwiseDissolve(fc_mem_1, fc_mem_2, 'cl_id', statistics_fields=stat_fields, multi_part='MULTI_PART')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand in_memory to be a legacy workspace.&amp;nbsp; Is this expected behavior with PairwiseDissolve and Dissolve?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;P&gt;ArcGIS Pro 3.1.0&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 16:56:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1379375#M69803</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2024-02-08T16:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Dissolve (in_)memory Error</title>
      <link>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1379722#M69810</link>
      <description>&lt;P&gt;Somehow I missed the boat on "IN_MEMORY" becoming "MEMORY".&amp;nbsp; Do you have sources on that?&amp;nbsp; Because I clearly need to catch up on some reading.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 15:40:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1379722#M69810</guid>
      <dc:creator>MErikReedAugusta</dc:creator>
      <dc:date>2024-02-08T15:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Dissolve (in_)memory Error</title>
      <link>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1379726#M69811</link>
      <description>&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>Thu, 08 Feb 2024 15:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1379726#M69811</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2024-02-08T15:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Dissolve (in_)memory Error</title>
      <link>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1380827#M69837</link>
      <description>&lt;P&gt;Save (in_)memory for simple tasks. It is a lot of people's experience that it does not always work for complex tasks like Dissolve. It did not work for me with geometry objects or reprojections.&amp;nbsp; If you have an SSD then define a partition or just a disk letter and use that for the scratch.gdb and other temporary featureclasses. Since it is effectively equivalent hardware you will get all the benefits of cached read/writes and more reliable operation with the same speed and not run out of memory.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2024 10:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1380827#M69837</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2024-02-11T10:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Dissolve (in_)memory Error</title>
      <link>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1380828#M69838</link>
      <description>&lt;P&gt;Yes, well the Pro developers forgot to read the ArcMap manuals.... there is now a synonym to patch up the syntax. I presume that it is a different mechanism under the hood. It never worked reliably for me anyway, so I just use an SSD drive as my scratch.gdb. You can easily run out of memory if you do not release the features, and who does that? Also projections did not work etc.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2024 10:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1380828#M69838</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2024-02-11T10:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Dissolve (in_)memory Error</title>
      <link>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1561408#M73229</link>
      <description>&lt;P&gt;I just ran into the same with with&amp;nbsp;arcpy.analysis.Union().&amp;nbsp; The out_feature_class will not accept memory\ but will accept the legacy in_memory.&lt;BR /&gt;&lt;BR /&gt;ESRI?&amp;nbsp; Thoughts?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Tyler&lt;BR /&gt;ArcGIS Pro 3.3&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 19:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1561408#M73229</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2024-11-21T19:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Dissolve (in_)memory Error</title>
      <link>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1596628#M73931</link>
      <description>&lt;P&gt;Well, you definitely cannot have file extensions when you're using the memory workspace(s). And more generally speaking, I have found it pretty difficult to manage arcpy memory datasets unless they're being consumed almost immediately. In addition, there are certain spatial GP - Dissolve included - with which I never use memory. The need for an index (or something) means the tool doesn't usually work right.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 16:11:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-dissolve-in-memory-error/m-p/1596628#M73931</guid>
      <dc:creator>KevinGabelman</dc:creator>
      <dc:date>2025-03-18T16:11:35Z</dc:date>
    </item>
  </channel>
</rss>

