<?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 fails to complete task (no error) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-fails-to-complete-task-no-error/m-p/414330#M32624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you are running out of memory, which the ArcMap memory caches to disk but the python script isn't able to. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How long does it take before it totally bails out on you? after a substantial period of time or fairly soon? &lt;/LI&gt;&lt;LI&gt;Are you watching memory consumption while the script is running? &lt;/LI&gt;&lt;LI&gt;Did you completely delete previous attempts? &lt;/LI&gt;&lt;LI&gt;Destinations of file to a local disk or a network?&lt;/LI&gt;&lt;LI&gt;other pertinent information?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2015 10:55:57 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2015-11-17T10:55:57Z</dc:date>
    <item>
      <title>Python fails to complete task (no error)</title>
      <link>https://community.esri.com/t5/python-questions/python-fails-to-complete-task-no-error/m-p/414329#M32623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to Dissolve a feature class, which contains almost 2 million features, using a stand alone script.&amp;nbsp; However the script gives up before the dissolve is complete and the output feature class covers approx 75% of the input features - there is no error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I perform the same dissolve in ArcMap, using either the tool GUI or the python window, it completes fully.&amp;nbsp; So what gives?&amp;nbsp; Is there something I can do to stop the stand alone script finishing early?&amp;nbsp; - it is intended to become a longer script but at the moment it's set up to just perform the dissolve using all default settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Arc 10.2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 08:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-fails-to-complete-task-no-error/m-p/414329#M32623</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2015-11-17T08:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python fails to complete task (no error)</title>
      <link>https://community.esri.com/t5/python-questions/python-fails-to-complete-task-no-error/m-p/414330#M32624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you are running out of memory, which the ArcMap memory caches to disk but the python script isn't able to. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How long does it take before it totally bails out on you? after a substantial period of time or fairly soon? &lt;/LI&gt;&lt;LI&gt;Are you watching memory consumption while the script is running? &lt;/LI&gt;&lt;LI&gt;Did you completely delete previous attempts? &lt;/LI&gt;&lt;LI&gt;Destinations of file to a local disk or a network?&lt;/LI&gt;&lt;LI&gt;other pertinent information?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 10:55:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-fails-to-complete-task-no-error/m-p/414330#M32624</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-11-17T10:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Python fails to complete task (no error)</title>
      <link>https://community.esri.com/t5/python-questions/python-fails-to-complete-task-no-error/m-p/414331#M32625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I tried this dissolve a few more times (I did not delete previous attempts but am outputting to a different file each time) - &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if I run only the script:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;successful after approx 9 mins&lt;/LI&gt;&lt;LI&gt;Used physical memory around 21% throughout (max approx 25%)&lt;/LI&gt;&lt;LI&gt;Running on local disk&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if I also have ArcMap open:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;bailed out after approx 9 minutes - coverage of output is approx 75% of what it should be if I just have ArcMap open without using it; however if I do things like loading imagery off the network at the same time as running the script the output can be more like 50% of what it should be - no errrors are reported.&lt;/LI&gt;&lt;LI&gt;Used physical memory around 21% throughout (max approx 25%)&lt;/LI&gt;&lt;LI&gt;Running on local disk&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My computer is Intel Xeon E5-2620 2GHz (2 processors)&lt;/P&gt;&lt;P&gt;16 GB RAM&lt;/P&gt;&lt;P&gt;24 cores&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This behaviour is rather disturbing to me - it undermines the use of python as a reliable method of geoprocessing - how do I catch these errors? &lt;/P&gt;&lt;P&gt;I thought that one of the advantages of using scripts was that I could do other things while they run in the background.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 10:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-fails-to-complete-task-no-error/m-p/414331#M32625</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2015-11-18T10:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Python fails to complete task (no error)</title>
      <link>https://community.esri.com/t5/python-questions/python-fails-to-complete-task-no-error/m-p/414332#M32626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may depend on where you are running your scripts.&amp;nbsp; Are you using the python ide that is embedded in ArcMap? That may produce different results that running an ide separately (such as Pyscripter or PythonWin etc).&amp;nbsp; There are more questions on this background vs foreground processing... it almost rivals Define Projection vs Project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any event, this works for me.. I never work on, or use in a process, any file loaded in ArcMap.&amp;nbsp; If it has a table, I close it if open. If it is a large file, I remove the layer,then I incrementally save the project... I do python stuff in a separate IDE not the one built into ArcMap or Pro.&amp;nbsp; If I am using ArcMap this entails using python 2.7.&amp;nbsp; Since I have Pro installed, I have python 3.4 installed in which case, I can switch over to Pro and/or python 3.4 and let Arcmap and python 2.7 chug along.&amp;nbsp; I have never had issues, but I have only done dissolved on less than 1Gb, I prefer to tile anything larger either spatially or by attribute and reassemble the bits when a combined file is needed.&amp;nbsp; There are links (which I can't find now) on how to work with large data sets, ArcMap will only use 4 Gb of memory regardless of what you have installed so tiling in some form is often the solution whether using tools or by explicitly splitting your datasets and reassembling.&amp;nbsp; Sorry I can't be more helpful, but that's all I have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 11:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-fails-to-complete-task-no-error/m-p/414332#M32626</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-11-18T11:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python fails to complete task (no error)</title>
      <link>https://community.esri.com/t5/python-questions/python-fails-to-complete-task-no-error/m-p/414333#M32627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arecent post, updating an old post suggest ArcGIS Pro, may solve this problem &lt;A href="https://community.esri.com/thread/87567"&gt;Solution to: Dissolve tool does not fully dissolve medium-size dataset&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The Dissolve help topic... &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dissolve.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dissolve.htm"&gt;Dissolve—Data Management toolbox | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Tiling large datasets... &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/appendices/tiled-processing-of-large-datasets.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/appendices/tiled-processing-of-large-datasets.htm"&gt;Tiled processing of large datasets—Appendices | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Now you can Dice it yourself &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dice.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/dice.htm"&gt;Dice—Data Management toolbox | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;And the recommendation...don't do anything else, when processing large data set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 23:52:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-fails-to-complete-task-no-error/m-p/414333#M32627</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-11-18T23:52:57Z</dc:date>
    </item>
  </channel>
</rss>

