<?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: arcpy 10.1 Tabulate Area fails unpredictably in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650900#M50660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK. I will contact support. I do have SP1, and I also have virus software installed. I'm not sure what indexing is. I never got this problem with 10.0, so maybe it's a 10.1 thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another weird thing, though, is that it works perfectly if I do it manually in ArcMap. I need to use python, however, to repeat the task many times over...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jun 2013 19:36:48 GMT</pubDate>
    <dc:creator>MichaelMcWilliams</dc:creator>
    <dc:date>2013-06-18T19:36:48Z</dc:date>
    <item>
      <title>arcpy 10.1 Tabulate Area fails unpredictably</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650896#M50656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am creating python scripts that make use of the Tabulate Area tool (ArcGIS 10.1). I have lately been experiencing odd behavior where a script will work initially, and then not work for a period of time... and then it will work again somewhat unexpectedly. When it fails, it fails on the TabulateArea line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use PyScripter as my IDE, and a script failure generates the message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"[Errno 10054] An existing connection was forcibly closed by the remote host"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also experimented using IDLE, and I get the same failure behavior, but I do not receive an error message... it just doesn't complete the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a simplified version of the code that will itself generate errors (and sometimes work):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
import arcpy
from arcpy.sa import *

arcpy.env.overwriteOutput = True

zones = r'F:\...\zones.shp'
input_raster = r'F:\...\raster.shp'
outTable = r'F:\...\table.dbf'

arcpy.CheckOutExtension("Spatial")
TabulateArea(zones, 'zone_id', input_raster, 'raster_value', outTable, '#')
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not experienced this problem with any other arcpy functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any ideas what could be going on? What is the "forcibly closed" message all about?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time and help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 18:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650896#M50656</guid>
      <dc:creator>MichaelMcWilliams</dc:creator>
      <dc:date>2013-06-18T18:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy 10.1 Tabulate Area fails unpredictably</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650897#M50657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are these files located on a network drive or server? That error seems to indicate you lost connection to that location temporarily. Try copying your data to a local drive to see if you get the same errors.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 18:54:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650897#M50657</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-06-18T18:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy 10.1 Tabulate Area fails unpredictably</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650898#M50658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your response. The files are located on an external hard drive. I just moved them to the local drive, and I still get the error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been wondering if the problem could be related to locked files or folders, but I often get the error message on the first run after turning on my computer... not sure if that makes a difference though. Still, other arcpy functions will always work on the zone and raster files, e.g. changing the projection. It seems to be specific to Tabulate Area.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 19:22:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650898#M50658</guid>
      <dc:creator>MichaelMcWilliams</dc:creator>
      <dc:date>2013-06-18T19:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy 10.1 Tabulate Area fails unpredictably</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650899#M50659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That seems like very odd behaviour if you are getting a socket closed error on local files. Are you using SP1? Do you have ArcGIS indexing on? Have an anti-virus program? I'd recommend contacting Esri support, the only bug I found for Tabluate Area was NIM002809 with this solution &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The user's feature zone data had a range of 127707. Making a subscene of the data where the range was reduced below 100,000 (99,340 actually), the operation could complete. &lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 19:29:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650899#M50659</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-06-18T19:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy 10.1 Tabulate Area fails unpredictably</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650900#M50660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK. I will contact support. I do have SP1, and I also have virus software installed. I'm not sure what indexing is. I never got this problem with 10.0, so maybe it's a 10.1 thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another weird thing, though, is that it works perfectly if I do it manually in ArcMap. I need to use python, however, to repeat the task many times over...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 19:36:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650900#M50660</guid>
      <dc:creator>MichaelMcWilliams</dc:creator>
      <dc:date>2013-06-18T19:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy 10.1 Tabulate Area fails unpredictably</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650901#M50661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;OK. I will contact support. I do have SP1, and I also have virus software installed. I'm not sure what indexing is. I never got this problem with 10.0, so maybe it's a 10.1 thing.&lt;BR /&gt;&lt;BR /&gt;Another weird thing, though, is that it works perfectly if I do it manually in ArcMap&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you running from 64 bit Python? If so you may want to try running it in 32 bit (like in ArcMap -- where it works for you).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does anyone have any ideas what could be going on? What is the "forcibly closed" message all about?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All geoprocessing tools are set up to work in a client server context (the client is your script). This makes it possible to "easily" package them into a service. So sometimes error messages reference this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 20:13:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650901#M50661</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-06-18T20:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy 10.1 Tabulate Area fails unpredictably</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650902#M50662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Some virus scanners can interfere when files are changed in scripts like from python. They can be locked in an attempt to determine if the action is malicious or not and prevent further processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS has an indexing service to calalog all GIS associated files in a given folder/database. You can check if it is on under Search Options in Catalog. This can also interfere with file changes if they are set to update too often.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 20:16:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650902#M50662</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-06-18T20:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy 10.1 Tabulate Area fails unpredictably</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650903#M50663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you disable your virus scan software? If so, do it and see if the issue persists...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/66584-repeated-AddField-operations-fails-in-10.1-works-in-10.0?p=240544&amp;amp;viewfull=1#post240544"&gt;http://forums.arcgis.com/threads/66584-repeated-AddField-operations-fails-in-10.1-works-in-10.0?p=240544&amp;amp;viewfull=1#post240544&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 20:45:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650903#M50663</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2013-06-18T20:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy 10.1 Tabulate Area fails unpredictably</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650904#M50664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you all for your suggestions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am indeed using 64-bit python. Right now, my tabulate area script is functioning as desired, but I will go through these different tests when it breaks down again. I will post the results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 14:35:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650904#M50664</guid>
      <dc:creator>MichaelMcWilliams</dc:creator>
      <dc:date>2013-06-19T14:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy 10.1 Tabulate Area fails unpredictably</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650905#M50665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was just able to replicate the same problem. The solution was to alter the workflow and use rasters as the input zones. I was previously using shapefiles as the zones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Windows 7 64-bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 10.1, SP1, 64-bit Background Processing Patch&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 18:47:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650905#M50665</guid>
      <dc:creator>PhilMorefield</dc:creator>
      <dc:date>2013-11-14T18:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy 10.1 Tabulate Area fails unpredictably</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650906#M50666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I discovered the same solution just the other day, though it wasn't intended as a fix for this problem. I had been using the work-around of running my script from the Python window within ArcMap -- for some reason that works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Tabulate Area command converts feature classes to rasters on the fly, and my scripts involve looping many Tabulate Area commands over the same input zones... so it made sense to first convert the feature classes to rasters in order to speed up the processing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, the speed improved and I discovered that the Tabulate Area error disappeared as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for posting your solution. I confirm that it worked for me as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 18:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-tabulate-area-fails-unpredictably/m-p/650906#M50666</guid>
      <dc:creator>MichaelMcWilliams</dc:creator>
      <dc:date>2013-11-14T18:52:38Z</dc:date>
    </item>
  </channel>
</rss>

