<?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: Merging features in feature class with arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/1688924#M75147</link>
    <description>&lt;P&gt;Jumping in with the same question.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Mar 2026 11:54:39 GMT</pubDate>
    <dc:creator>TobiSellekaerts</dc:creator>
    <dc:date>2026-03-06T11:54:39Z</dc:date>
    <item>
      <title>Merging features in feature class with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/466856#M36486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to merge all polygon features in a given feature class into a single polygon. The intended functionality is similar to the "Merge" tool under the Edit-&amp;gt;Tools tab. The Merge_management tool takes feature classes as an input and I cannot find documentation on the difference/command for this "Edit-&amp;gt;Merge."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figure I will have to iterate through my feature class using a search cursor and use the dissolve tool to merge the features.&amp;nbsp;I have tried iterations of the following to no avail:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;with ap.da.SearchCursor(feature_class, "*") as cursor:
    feature_list = []
    for row in cursor:
        feature_list.append(row)
    ap.Dissolve_management(feature_list, out_feature_class, {dissolve_field},{statistics_fields}, {multi_part}, {unsplit_lines})‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My question is what do I use as my in_features (first field in ap.Dissolve_management)? How do I pass the features into the ap.Dissolve_management function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:43:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/466856#M36486</guid>
      <dc:creator>ThomasBlankinship</dc:creator>
      <dc:date>2021-12-11T20:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Merging features in feature class with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/466857#M36487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ArcGIS Pro you can access the Merge tool from the edit ribbon and Merge will be under the tools section.&amp;nbsp;&lt;IMG __jive_id="459891" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/459891_merge.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also access the merge tool in arcpy from arcpy.Merge_Management() and the documentation can be found here :&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/merge.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/tool-reference/data-management/merge.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is a one off process and not being incorporated into a automated workflow it would probably be easier just to do it in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still want to do it within python let us know. I can give you a hand with the dissolve tool or the merge tool. Which ever fits the bill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the documentation it looks like you do not have to iterate through a feature inside of a feature class to get dissolve to work. It's documentation is here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dissolve.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dissolve.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your code should look something like this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;import arcpy as ap

ap.env.workspace = r"Path To Your Featureclass"
feature_name = "The name of the feature to dissolve all polygons into one"

ap.Dissolve_management(feature_name, out_feature_class, {dissolve_field}, {statistics_fields}, {multi_part}, {unsplit_lines})‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:43:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/466857#M36487</guid>
      <dc:creator>Jeremy_Moore</dc:creator>
      <dc:date>2021-12-11T20:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Merging features in feature class with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/466858#M36488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you a ton! The documentation confused me, but that works&amp;nbsp;exactly as I wanted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2019 04:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/466858#M36488</guid>
      <dc:creator>ThomasBlankinship</dc:creator>
      <dc:date>2019-09-20T04:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Merging features in feature class with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/466859#M36489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're very welcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2019 15:41:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/466859#M36489</guid>
      <dc:creator>Jeremy_Moore</dc:creator>
      <dc:date>2019-09-20T15:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Merging features in feature class with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/1197503#M65100</link>
      <description>&lt;P&gt;Greetings Jeremy,&lt;/P&gt;&lt;P&gt;As best I can tell, the&amp;nbsp;&lt;SPAN&gt;arcpy.Merge_Management() gp tool does not function the same as the "esri_editing_MergeFeatures" tool available from the ribbon, in that the gp tool will not permit features to be merged &lt;EM&gt;within&lt;/EM&gt; the originating feature class.&lt;BR /&gt;&lt;BR /&gt;Is there any way to Merge features as one might do from the Modify Features pane in ArcGIS Pro, but&amp;nbsp;&lt;/SPAN&gt;programmatically from a stand-alone Python script?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 17:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/1197503#M65100</guid>
      <dc:creator>JTBatSLO</dc:creator>
      <dc:date>2022-07-29T17:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merging features in feature class with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/1276781#M67381</link>
      <description>&lt;P&gt;were you able to do this&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 17:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/1276781#M67381</guid>
      <dc:creator>mgeguner</dc:creator>
      <dc:date>2023-04-08T17:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Merging features in feature class with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/1285061#M67573</link>
      <description>&lt;P&gt;Same question here ^^&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 07:27:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/1285061#M67573</guid>
      <dc:creator>wolfvincent</dc:creator>
      <dc:date>2023-05-03T07:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Merging features in feature class with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/1593352#M73877</link>
      <description>&lt;P&gt;Any updates on this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;As best I can tell, the&amp;nbsp;arcpy.Merge_Management() gp tool does not function the same as the "esri_editing_MergeFeatures" tool available from the ribbon, in that the gp tool will not permit features to be merged&amp;nbsp;within&amp;nbsp;the originating feature class.&lt;BR /&gt;&lt;BR /&gt;Is there any way to Merge features as one might do from the Modify Features pane in ArcGIS Pro, but&amp;nbsp;programmatically from a stand-alone Python script?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 15:12:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/1593352#M73877</guid>
      <dc:creator>Koeller_Christine_A_-_DOT</dc:creator>
      <dc:date>2025-03-07T15:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Merging features in feature class with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/1688924#M75147</link>
      <description>&lt;P&gt;Jumping in with the same question.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 11:54:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-features-in-feature-class-with-arcpy/m-p/1688924#M75147</guid>
      <dc:creator>TobiSellekaerts</dc:creator>
      <dc:date>2026-03-06T11:54:39Z</dc:date>
    </item>
  </channel>
</rss>

