<?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: Dissolve Syntax (Statistics) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/dissolve-syntax-statistics/m-p/622997#M48528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's strange Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's working on my end. Maybe you could try using the full path to the file (r"C:\Data\stuff.gdb\DAT_263_49_13_wD"). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems like there's something wrong with the fields in your "DAT_263_49_13_wD" file. Have to tried adding a really simple field (or two) and using those?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Dec 2013 18:20:13 GMT</pubDate>
    <dc:creator>JoshuaChisholm</dc:creator>
    <dc:date>2013-12-20T18:20:13Z</dc:date>
    <item>
      <title>Dissolve Syntax (Statistics)</title>
      <link>https://community.esri.com/t5/python-questions/dissolve-syntax-statistics/m-p/622994#M48525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey People,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been working on trying to perform a large dissolve analysis using statistics within my script.&amp;nbsp; I can get a simple dissolve to work with with doing statistics for one field but not multiple fields.&amp;nbsp; The resource center doesn't have any examples of using statistics for the dissolve (data management).&amp;nbsp; I need to do the dissolve a few different times but it would be a chore to manually setup 39 fields for statistics.&amp;nbsp; I am looking for a little help on syntax of my code snippet.&amp;nbsp; See the code below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.Dissolve_management("DAT_263_49_13_wD", "A:/Projects/Location-Allocation/Final_Output/District49.shp", "N_Dist_ID", "'ORG_NO_ID COUNT';
'HIO_Total SUM';'MIO_Total SUM';'MIC_HAR SUM';'MIC_Industry SUM';'SWR_RY1 SUM';'SWR_RY2 SUM';'SWR_RY3 SUM';'Used_total SUM';'AA SUM';'AA_50k SUM';
'Core SUM';'Core_50k SUM';'Hispanic SUM';'Hispanic_50k SUM';'Women SUM';'Women_50k SUM';'Young_Adult SUM';'Young_Adult_50k SUM';'Asian SUM';
'Asian_50k SUM';'Nat_Amer SUM';'Nat_Amer_50k SUM';'Unknown SUM';'Sum SUM';'S_BMW SUM';'S_CanAM SUM';'S_Ducati SUM';'S_Honda SUM';
'S_Indian SUM';'S_Kawasaki SUM';'S_KTM SUM';'S_PGroup SUM';'S_PVictory SUM';'S_Suzuki SUM';'S_Triumph SUM';'S_Yamaha SUM';'S_T_CompDlrs SUM';'PnA_Total SUM';'GM_Total SUM'","MULTI_PART","DISSOLVE_LINES")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(added spaces for the sake of reading the code)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried just using double quote instead of single quotes and no quotes inside of the a pair of double quotes.&amp;nbsp; Let me know if this makes since and I can provide more info if needed.&amp;nbsp; Any help would be greatly appreciated, and I would be very thankful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 13:50:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dissolve-syntax-statistics/m-p/622994#M48525</guid>
      <dc:creator>ChrisDickerson</dc:creator>
      <dc:date>2013-12-20T13:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dissolve Syntax (Statistics)</title>
      <link>https://community.esri.com/t5/python-questions/dissolve-syntax-statistics/m-p/622995#M48526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Chris&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you have to give the fields as an array of field names. Like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
inFC="DAT_263_49_13_wD"
outFC="A:/Projects/Location-Allocation/Final_Output/District49.shp"

dissolveFields=["N_Dist_ID","ORG_NO_ID COUNT","HIO_Total SUM","MIO_Total SUM","MIC_HAR SUM","MIC_Industry SUM","SWR_RY1 SUM","SWR_RY2 SUM","SWR_RY3 SUM","Used_total SUM","AA SUM","AA_50k SUM","Core SUM","Core_50k SUM","Hispanic SUM","Hispanic_50k SUM","Women SUM","Women_50k SUM","Young_Adult SUM","Young_Adult_50k SUM","Asian SUM"]

arcpy.Dissolve_management(inFC,outFC,dissolveFields)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:32:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dissolve-syntax-statistics/m-p/622995#M48526</guid>
      <dc:creator>JoshuaChisholm</dc:creator>
      <dc:date>2021-12-12T02:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dissolve Syntax (Statistics)</title>
      <link>https://community.esri.com/t5/python-questions/dissolve-syntax-statistics/m-p/622996#M48527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No luck using an array. Set up the variable with the statistics and fields but got an execute error when testing in the code in the Python window.&amp;nbsp; Getting error code 000369 which is invalid input field(s). Ran just the dissolve with two fields for statistics and was still throwing the same error with the array.&amp;nbsp; This is the same error that I get when hard coding the the two fields with the statistics function as well as using an array with one field and stats function. I went back and tried my original code in the Python window and it throws the same error to.&amp;nbsp; I also check all my fields and the spelling is correct, wondering if the issue is concatenating two or more fields for the stats function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 14:46:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dissolve-syntax-statistics/m-p/622996#M48527</guid>
      <dc:creator>ChrisDickerson</dc:creator>
      <dc:date>2013-12-20T14:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dissolve Syntax (Statistics)</title>
      <link>https://community.esri.com/t5/python-questions/dissolve-syntax-statistics/m-p/622997#M48528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's strange Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's working on my end. Maybe you could try using the full path to the file (r"C:\Data\stuff.gdb\DAT_263_49_13_wD"). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems like there's something wrong with the fields in your "DAT_263_49_13_wD" file. Have to tried adding a really simple field (or two) and using those?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 18:20:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dissolve-syntax-statistics/m-p/622997#M48528</guid>
      <dc:creator>JoshuaChisholm</dc:creator>
      <dc:date>2013-12-20T18:20:13Z</dc:date>
    </item>
  </channel>
</rss>

