<?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_boundaries() error - Connection reset by peer: socket write error in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/dissolve-boundaries-error-connection-reset-by-peer/m-p/1375509#M9592</link>
    <description>&lt;P&gt;It looks like the dissolve call only accepts service layers, not feature collections? The docs are little confusing, but that is, apparently, the only thing that works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2024 17:07:08 GMT</pubDate>
    <dc:creator>NickNuebel</dc:creator>
    <dc:date>2024-01-29T17:07:08Z</dc:date>
    <item>
      <title>dissolve_boundaries() error - Connection reset by peer: socket write error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/dissolve-boundaries-error-connection-reset-by-peer/m-p/1366088#M9473</link>
      <description>&lt;P&gt;I trying to write a script that queries a feature layer, crosswalks some attributes, dissolves the crosswalked features, then adds them to another layer. Everything seems to be working up to the dissolve call. I'm trying to feed a feature collection to arcgis.features.analysis.dissolve_boundaries(), but I keep getting an error that I can't fix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The jobs fails and the error it produces is "Connection reset by peer: socket write error". What does that even mean? What could be causing this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;There more to the script, but here's the bit that makes the feature collection and tries to call dissolve_boundaries():&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;tfset = arcgis.features.FeatureSet(tfeatures)
tfcollection = arcgis.features.FeatureCollection.from_featureset(tfset) 
result = arcgis.features.analysis.dissolve_boundaries(input_layer=tfcollection)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and here's the traceback:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Connection reset by peer: socket write error
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
/tmp/ipykernel_27/2488076861.py in &amp;lt;cell line: 249&amp;gt;()
    354     tfcollection = arcgis.features.FeatureCollection.from_featureset(tfset)
    355 
--&amp;gt; 356     diss = arcgis.features.manage_data.dissolve_boundaries(tfcollection)
    357 
    358     print('uploading features\n')

/opt/conda/lib/python3.9/site-packages/arcgis/features/manage_data.py in dissolve_boundaries(input_layer, dissolve_fields, summary_fields, output_name, context, gis, estimate, multi_part_features, future)
    277         fn=gis._tools.featureanalysis._tbx.dissolve_boundaries, **kwargs
    278     )
--&amp;gt; 279     return gis._tools.featureanalysis.dissolve_boundaries(**params)
    280 
    281 

/opt/conda/lib/python3.9/site-packages/arcgis/_impl/tools.py in dissolve_boundaries(self, input_layer, dissolve_fields, summary_fields, output_name, context, estimate, multi_part_features, future)
   3308         if future:
   3309             return gpjob
-&amp;gt; 3310         return gpjob.result()
   3311 
   3312     # ----------------------------------------------------------------------

/opt/conda/lib/python3.9/site-packages/arcgis/geoprocessing/_job.py in result(self)
    230             return None
    231         if self._is_fa:
--&amp;gt; 232             return self._process_fa(self._future.result())
    233         elif self._is_ra:
    234             return self._process_ra(self._future.result())

/opt/conda/lib/python3.9/concurrent/futures/_base.py in result(self, timeout)
    444                     raise CancelledError()
    445                 elif self._state == FINISHED:
--&amp;gt; 446                     return self.__get_result()
    447                 else:
    448                     raise TimeoutError()

/opt/conda/lib/python3.9/concurrent/futures/_base.py in __get_result(self)
    389         if self._exception:
    390             try:
--&amp;gt; 391                 raise self._exception
    392             finally:
    393                 # Break a reference cycle with the exception in self._exception

/opt/conda/lib/python3.9/concurrent/futures/thread.py in run(self)
     56 
     57         try:
---&amp;gt; 58             result = self.fn(*self.args, **self.kwargs)
     59         except BaseException as exc:
     60             self.future.set_exception(exc)

/opt/conda/lib/python3.9/site-packages/arcgis/geoprocessing/_support.py in _future_op(gptool, task_url, job_info, job_id, param_db, return_values, return_messages)
    326     return_messages,
    327 ):
--&amp;gt; 328     job_info = _analysis_job_status(gptool, task_url, job_info)
    329     resp = _analysis_job_results(gptool, task_url, job_info, job_id)
    330 

/opt/conda/lib/python3.9/site-packages/arcgis/geoprocessing/_support.py in _analysis_job_status(gptool, task_url, job_info)
    244 
    245                     if job_response.get("jobStatus") == "esriJobFailed":
--&amp;gt; 246                         raise Exception("Job failed.")
    247                     elif job_response.get("jobStatus") == "esriJobCancelled":
    248                         raise Exception("Job cancelled.")

Exception: Job failed.

​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 00:32:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/dissolve-boundaries-error-connection-reset-by-peer/m-p/1366088#M9473</guid>
      <dc:creator>NickNuebel</dc:creator>
      <dc:date>2024-01-04T00:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: dissolve_boundaries() error - Connection reset by peer: socket write error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/dissolve-boundaries-error-connection-reset-by-peer/m-p/1375509#M9592</link>
      <description>&lt;P&gt;It looks like the dissolve call only accepts service layers, not feature collections? The docs are little confusing, but that is, apparently, the only thing that works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 17:07:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/dissolve-boundaries-error-connection-reset-by-peer/m-p/1375509#M9592</guid>
      <dc:creator>NickNuebel</dc:creator>
      <dc:date>2024-01-29T17:07:08Z</dc:date>
    </item>
  </channel>
</rss>

