<?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 for Dissolving Geodatabase Feature Classes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-script-for-dissolving-geodatabase-feature/m-p/1197850#M65108</link>
    <description>&lt;P&gt;Without too many checks I would say that:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;output_name + "\" + fc + "_Dissolve"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Should be&amp;nbsp;output_name + "\\" + fc + "_Dissolve"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have fun&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 04:54:07 GMT</pubDate>
    <dc:creator>mody_buchbinder</dc:creator>
    <dc:date>2022-08-01T04:54:07Z</dc:date>
    <item>
      <title>Python Script for Dissolving Geodatabase Feature Classes</title>
      <link>https://community.esri.com/t5/python-questions/python-script-for-dissolving-geodatabase-feature/m-p/1197729#M65105</link>
      <description>&lt;P class=""&gt;Hello,&lt;/P&gt;&lt;P class=""&gt;I have been trying to create a script for dissolving several geodatabase feature classes on ArcGIS pro. However, the script does not seem to be working. Could someone tell me what the problem is. I have tried two versions (I am new to python and arcgis pro) :&lt;/P&gt;&lt;P class=""&gt;arcpy.env.workspace = "D:\WB_Data\WB_gp.gdb"&lt;/P&gt;&lt;P class=""&gt;fcList = arcpy.ListFeatureClasses()&lt;/P&gt;&lt;P class=""&gt;output_name = "C:\\Users\\Bart Manders\\Documents\\ArcGIS\\Projects\\MyProject_Dissolve\\MyProject_Dissolve.gdb\\%s_Dissolve"&lt;/P&gt;&lt;P class=""&gt;fields= ['gp']&lt;/P&gt;&lt;P class=""&gt;for fc in fcList:&amp;nbsp; &amp;nbsp; arcpy.Dissolve_management(fc, output_name % fc, "gp FIRST", "MULTI_PART", "DISSOLVE_LINES", '')&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;&amp;nbsp;I get an&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;error 00622:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;Failed to execute (Dissolve). Parameters are not valid.&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;**Error 000800&lt;/STRONG&gt;&lt;SPAN&gt;:**The value is not a member of MULTI_PART| SINGLE_PART.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;U&gt;&lt;STRONG&gt;another version is:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;arcpy.env.workspace = "D:\WB_Data\WB_gp.gdb"&lt;/P&gt;&lt;P class=""&gt;fcList = arcpy.ListFeatureClasses()&lt;/P&gt;&lt;P class=""&gt;fields= ["gp"]&lt;/P&gt;&lt;P class=""&gt;for fc in fcList:&lt;BR /&gt;arcpy.management.Dissolve(fc, output_name + "\" + fc + "_Dissolve", "gp FIRST", "MULTI_PART", "DISSOLVE_LINES", "")&lt;/P&gt;&lt;P class=""&gt;For this version I get the error&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;SyntaxError Traceback (most recent call last)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\ast.py, in parse:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Line 50: return compile(source, filename, mode, flags,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;SyntaxError&lt;/SPAN&gt;: invalid syntax (&amp;lt;string&amp;gt;, line 2)&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2022 19:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-for-dissolving-geodatabase-feature/m-p/1197729#M65105</guid>
      <dc:creator>BartManders</dc:creator>
      <dc:date>2022-07-30T19:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script for Dissolving Geodatabase Feature Classes</title>
      <link>https://community.esri.com/t5/python-questions/python-script-for-dissolving-geodatabase-feature/m-p/1197736#M65107</link>
      <description>&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-blog/code-formatting-the-community-version/ba-p/1007633" target="_blank"&gt;Code formatting ... the Community Version - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is this the full code?&amp;nbsp; Is it being used in a model? ( the&amp;nbsp;&lt;SPAN&gt;% thing in the script)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jul 2022 00:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-for-dissolving-geodatabase-feature/m-p/1197736#M65107</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-07-31T00:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script for Dissolving Geodatabase Feature Classes</title>
      <link>https://community.esri.com/t5/python-questions/python-script-for-dissolving-geodatabase-feature/m-p/1197850#M65108</link>
      <description>&lt;P&gt;Without too many checks I would say that:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;output_name + "\" + fc + "_Dissolve"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Should be&amp;nbsp;output_name + "\\" + fc + "_Dissolve"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have fun&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 04:54:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-for-dissolving-geodatabase-feature/m-p/1197850#M65108</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2022-08-01T04:54:07Z</dc:date>
    </item>
  </channel>
</rss>

