<?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 Spatial join fails, apparently due to too many fields? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/spatial-join-fails-apparently-due-to-too-many/m-p/616583#M48116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For some Python scripts I'd written, I noticed spatial joins started giving me generic error messages (one to one, intersect, search radius 1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To add to the frustration, the join worked fine if done from ArcMap, using exactly the same parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After a lot of head scratching and trial and error, I discovered that the only way to get the join to succeed was if I deleted a few fields from either the target or join features.&amp;nbsp; The precise number seemed to be random, each feature class being joined only had about 36 fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using SP1.&amp;nbsp; I'm nervous of upgrading because I had installed SP4, but then I had to reinstall everything from scratch due to another bug with Spatial Join (possibly introduced with SP4?), which ESRI is currently addressing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did a quick search on this forum and scanned the issues addressed by each SP and didn't see this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I alone with this problem?&amp;nbsp; Does anyone know if it has been resolved by one of the service packs prior to #4?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2012 17:37:59 GMT</pubDate>
    <dc:creator>deleted-user-dp61qRbKUaMp</dc:creator>
    <dc:date>2012-04-19T17:37:59Z</dc:date>
    <item>
      <title>Spatial join fails, apparently due to too many fields?</title>
      <link>https://community.esri.com/t5/python-questions/spatial-join-fails-apparently-due-to-too-many/m-p/616583#M48116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For some Python scripts I'd written, I noticed spatial joins started giving me generic error messages (one to one, intersect, search radius 1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To add to the frustration, the join worked fine if done from ArcMap, using exactly the same parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After a lot of head scratching and trial and error, I discovered that the only way to get the join to succeed was if I deleted a few fields from either the target or join features.&amp;nbsp; The precise number seemed to be random, each feature class being joined only had about 36 fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using SP1.&amp;nbsp; I'm nervous of upgrading because I had installed SP4, but then I had to reinstall everything from scratch due to another bug with Spatial Join (possibly introduced with SP4?), which ESRI is currently addressing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did a quick search on this forum and scanned the issues addressed by each SP and didn't see this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I alone with this problem?&amp;nbsp; Does anyone know if it has been resolved by one of the service packs prior to #4?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 17:37:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-join-fails-apparently-due-to-too-many/m-p/616583#M48116</guid>
      <dc:creator>deleted-user-dp61qRbKUaMp</dc:creator>
      <dc:date>2012-04-19T17:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join fails, apparently due to too many fields?</title>
      <link>https://community.esri.com/t5/python-questions/spatial-join-fails-apparently-due-to-too-many/m-p/616584#M48117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I suspect you are running out of memory. Thirty six fields is not a lot, but what sort of fields are they? You did not say how many records you are joining.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you do the spatial join with a small sample does it work? Most join operations fail for me if there are over a million records as a rule of thumb.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have loaded tables from Excel each field defaults to 255 text chars, even if it is supposed to be a few chars, and numeric fields are double.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try using schema.ini in conjunction with a CSV dump to control the schema when loading, or load more explicitly using a script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe look at tuning your system. Defrag, move/delete/redefine your swap space to be huge and static by making min size == max size&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have enough spare scratch space, 30% of the disk is recommended. How much free memory do you have before starting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Overlay processes in workstation used to demand 13 times the size of the source coverages, I suspect the same ratio still applies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you made your scratch workspace a file geodatabase? Otherwise you have a 2GB limit as shapefiles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A good test is if any single process is taking longer than a cup of coffee, then you have asked for the impossible, and you are probably invoking endless page faults&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that will end up crashing hours later with no result. So interrupt it and find a better way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 21:43:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-join-fails-apparently-due-to-too-many/m-p/616584#M48117</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2012-04-26T21:43:14Z</dc:date>
    </item>
  </channel>
</rss>

