<?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: Spatial Join crashes ArcGIS in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692641#M53696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nobbir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 10.3.1.&lt;/P&gt;&lt;P&gt;I managed to get it working, I think there were some bad input data that I corrected (non-numerical). Perhaps this is why large data-sets have this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Sep 2015 14:43:26 GMT</pubDate>
    <dc:creator>AlexRebelo</dc:creator>
    <dc:date>2015-09-01T14:43:26Z</dc:date>
    <item>
      <title>Arcpy: Spatial Join crashes ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692632#M53687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, I'm having some problems with an Arcpy script that I've attached below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be a simple script, it was converted from ModelBuilder so it mostly just a series of tools, although the script iterates between each feature (features = arcpy.GetParameterAsText(1)) and runs a different set of tools. The goal is to intersect all input features (mulitvalue in the toolbox settings) convert lines and polygons into points, merge all points than get a sum of how many points are in each "TWP" Polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The entire script functions fine except the Spatial Join, which I commented out at one point to check the later tools. I've run the Spatial Join with the same data in both ModelBuilder and ArcMap, both are done within seconds. In Arcpy, the script will run until ArcMap crashes, closing on its own. If the Spatial Join is commented out the script will run to completion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find the Spatial Join in line 127, and just above that you can see I have tried repairing the geometry, converting to feature layers, and adding spatial indices to both inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any other ideas, it would be a huge help, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 22:56:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692632#M53687</guid>
      <dc:creator>RyanLaird</dc:creator>
      <dc:date>2014-12-02T22:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: Spatial Join crashes ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692633#M53688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem with arcpy.SpatialJoin_analysis&lt;/P&gt;&lt;P&gt;ArcCatalog and ArcMap Windows closed when script try to call this method&lt;/P&gt;&lt;P&gt;Still didn't find any solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 10:35:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692633#M53688</guid>
      <dc:creator>DenisSavItskiy</dc:creator>
      <dc:date>2015-06-03T10:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: Spatial Join crashes ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692634#M53689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no idea if it's related, but I have had sudden and unexplained crashes when there are geometry problems with my features. Ty running a repair geometry on your input features first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692634#M53689</guid>
      <dc:creator>SepheFox</dc:creator>
      <dc:date>2015-06-03T14:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: Spatial Join crashes ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692635#M53690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan, could you please let us know which version of ArcGIS you are using? Also, if possible, please share your model as well or post a screenshot of your Model workflow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 16:31:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692635#M53690</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2015-06-03T16:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: Spatial Join crashes ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692636#M53691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found a nasty solution. I exclude all parameters from arcpy.SpatialJoin_analysis after join_type and tool finished successfully. Probably something wrong with field_mapping object, but this is still bad manner to silently close all application if I use wrong parameter, IMHO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Problem with Spatial Join exist on both of 10.2.2 and 10.3 versions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 09:11:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692636#M53691</guid>
      <dc:creator>DenisSavItskiy</dc:creator>
      <dc:date>2015-06-04T09:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: Spatial Join crashes ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692637#M53692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denis, is it possible for you to send me the steps and data to reproduce the issue? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 15:10:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692637#M53692</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2015-06-04T15:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: Spatial Join crashes ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692638#M53693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;It's not easy to me due to complexity of scripts library on customes site.&lt;/P&gt;&lt;P&gt;I will try to reproduce problem on less complicated data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 09:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692638#M53693</guid>
      <dc:creator>DenisSavItskiy</dc:creator>
      <dc:date>2015-06-05T09:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: Spatial Join crashes ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692639#M53694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also having a similar problem using model builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spatial join crashes Arcgis when I'm using a large dataset, but other times it runs smoothly?&lt;/P&gt;&lt;P&gt;It's very frustrating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 09:51:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692639#M53694</guid>
      <dc:creator>AlexRebelo</dc:creator>
      <dc:date>2015-08-31T09:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: Spatial Join crashes ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692640#M53695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mention ArcGIS version. I need to reproduce the issue as I cannot repro on my machine with ArcGIS 10.3.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide a screenshot (or description) of the Model along with the dataset type (polygon, polyline, point etc) along with their size (number of features) of target and join data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, it would be difficult and time-consuming to reproduce the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 15:31:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692640#M53695</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2015-08-31T15:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: Spatial Join crashes ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692641#M53696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nobbir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 10.3.1.&lt;/P&gt;&lt;P&gt;I managed to get it working, I think there were some bad input data that I corrected (non-numerical). Perhaps this is why large data-sets have this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 14:43:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692641#M53696</guid>
      <dc:creator>AlexRebelo</dc:creator>
      <dc:date>2015-09-01T14:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: Spatial Join crashes ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692642#M53697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Spatial join was crashing for me as well, even after trying &lt;A href="https://community.esri.com/migrated-users/127544"&gt;Denis SavItskiy&lt;/A&gt;'s suggestion. &amp;nbsp;It was possible for me to use the&amp;nbsp;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/analysis/intersect.htm"&gt;Intersect Tool&lt;/A&gt;&amp;nbsp;instead, since I was trying to do a simple spatial join with match_option='INTERSECT'. Maybe see if there is another tool that does the same job for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 19:08:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692642#M53697</guid>
      <dc:creator>ChristinaMosnick</dc:creator>
      <dc:date>2017-07-19T19:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: Spatial Join crashes ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692643#M53698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christina, could you please let me know which version of ArcGIS you are using? The original question was on 10.3.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 20:34:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692643#M53698</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2017-07-19T20:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: Spatial Join crashes ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692644#M53699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also on 10.3.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 20:40:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-join-crashes-arcgis/m-p/692644#M53699</guid>
      <dc:creator>ChristinaMosnick</dc:creator>
      <dc:date>2017-07-19T20:40:10Z</dc:date>
    </item>
  </channel>
</rss>

