<?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 ERROR 001156 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/spatial-join-error-001156/m-p/324735#M25255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to do a spatial join with two layers but i keep getting the following error. When i look up the error 001156 it indicates that the field length my not be long enough but the FZone_Code field mapping length is set to 60, so i am not sure what' it's not working, the longest attribute i have in the FZ is 12 characters long (AG/ComComRes) It should fit right? there is also a few NULL attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be great, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\GIS\Python\\TaxJoin.py", line 149, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SpatialJoin_analysis(FZon1, UG, "In_memory\UG1", "JOIN_ONE_TO_ONE", "KEEP_ALL", Layers2(FZon1,UG), "HAVE_THEIR_CENTER_IN")&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\analysis.py", line 461, in SpatialJoin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/P&gt;&lt;P&gt;ExecuteError: ERROR 001156: Failed on input OID 20670, could not write value 'AG/ComIndInd' to output field FZONE_CODE&lt;/P&gt;&lt;P&gt;Failed to execute (SpatialJoin).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;never mind I called Fzone field twice and that's why i was getting the error. my bad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2016 16:16:27 GMT</pubDate>
    <dc:creator>CCWeedcontrol</dc:creator>
    <dc:date>2016-08-04T16:16:27Z</dc:date>
    <item>
      <title>Spatial Join ERROR 001156</title>
      <link>https://community.esri.com/t5/python-questions/spatial-join-error-001156/m-p/324735#M25255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to do a spatial join with two layers but i keep getting the following error. When i look up the error 001156 it indicates that the field length my not be long enough but the FZone_Code field mapping length is set to 60, so i am not sure what' it's not working, the longest attribute i have in the FZ is 12 characters long (AG/ComComRes) It should fit right? there is also a few NULL attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be great, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\GIS\Python\\TaxJoin.py", line 149, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SpatialJoin_analysis(FZon1, UG, "In_memory\UG1", "JOIN_ONE_TO_ONE", "KEEP_ALL", Layers2(FZon1,UG), "HAVE_THEIR_CENTER_IN")&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\analysis.py", line 461, in SpatialJoin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/P&gt;&lt;P&gt;ExecuteError: ERROR 001156: Failed on input OID 20670, could not write value 'AG/ComIndInd' to output field FZONE_CODE&lt;/P&gt;&lt;P&gt;Failed to execute (SpatialJoin).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;never mind I called Fzone field twice and that's why i was getting the error. my bad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 16:16:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-join-error-001156/m-p/324735#M25255</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2016-08-04T16:16:27Z</dc:date>
    </item>
  </channel>
</rss>

