<?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: SpatialJoin_analysis help with Join in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/spatialjoin-analysis-help-with-join/m-p/421950#M33155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend manually running it with formatting on the field you want, currently with the parameters you have set, it is not controlling the position of the text that is carried over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00210000000s000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//00210000000s000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//00210000000s000000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DISTRICTURL "District Website" true true false 100 Text 0 0 ,First,#,filepath/CountyDistrict,DISTRICTURL,0,25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what my field mapping for truncating the text on a field looked like, note it changes the character range at the very end 0,25. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2015 18:24:32 GMT</pubDate>
    <dc:creator>IanMurray</dc:creator>
    <dc:date>2015-07-23T18:24:32Z</dc:date>
    <item>
      <title>SpatialJoin_analysis help with Join</title>
      <link>https://community.esri.com/t5/python-questions/spatialjoin-analysis-help-with-join/m-p/421949#M33154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Hi I am very new to ArcGis and Python&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I recently had a data change that broke SpatialJoin line in a script we run to compile ArcGIS data for a database import.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;The data in the ORD_NUM field can now get to be longer than 25 characters long.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;arcpy.SpatialJoin_analysis(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parcel, ConditionalUse, parcel_conuse, "JOIN_ONE_TO_ONE", "KEEP_ALL", "PARCEL_ID \"PARCEL_ID\" true true false 50 Text 0 0 ,First,#,"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; +vars.path_to_database+"/Parcel.mdb/Parcel/PARCEL_Limits,PARCEL_ID,-1,-1;ORD_NUM \"ORD_NUM\" true true false 25 Text 0 0 ,Join,\",\","&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; +vars.path_to_database+"/CommDev.mdb/CommDev/ConditionalUse,ORD_NUM,-1,-1", "INTERSECT", "-1 Feet", "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;My original answer to this issue was to change the field length here to 50. However that broke the database process and unfortunately I can not change that process right now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;So instead I would like to change this line so it truncates the data to 25 characters for the ORD_NUM field instead of failing like it does now. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;This is a temporary fix until the database process can be adjust to handle the longer data. I tried setting the -1, -1 to 0, 25 but that didn't fix the issue. It still errored.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Is there anything else I can do to this line to force it to truncate the data at 25 characters instead of failing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Thank you!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 17:58:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatialjoin-analysis-help-with-join/m-p/421949#M33154</guid>
      <dc:creator>CynthiaKerns</dc:creator>
      <dc:date>2015-07-23T17:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialJoin_analysis help with Join</title>
      <link>https://community.esri.com/t5/python-questions/spatialjoin-analysis-help-with-join/m-p/421950#M33155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend manually running it with formatting on the field you want, currently with the parameters you have set, it is not controlling the position of the text that is carried over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00210000000s000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//00210000000s000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//00210000000s000000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DISTRICTURL "District Website" true true false 100 Text 0 0 ,First,#,filepath/CountyDistrict,DISTRICTURL,0,25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what my field mapping for truncating the text on a field looked like, note it changes the character range at the very end 0,25. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:24:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatialjoin-analysis-help-with-join/m-p/421950#M33155</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-07-23T18:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialJoin_analysis help with Join</title>
      <link>https://community.esri.com/t5/python-questions/spatialjoin-analysis-help-with-join/m-p/421951#M33156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! &lt;/P&gt;&lt;P&gt;That link unfortunately doesn't take me to any useful page.&lt;/P&gt;&lt;P&gt;How do you set the formatting in Python? &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:35:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatialjoin-analysis-help-with-join/m-p/421951#M33156</guid>
      <dc:creator>CynthiaKerns</dc:creator>
      <dc:date>2015-07-23T18:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialJoin_analysis help with Join</title>
      <link>https://community.esri.com/t5/python-questions/spatialjoin-analysis-help-with-join/m-p/421952#M33157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try just copying and pasting the link, unfortunately GeoNET has a nasty problem truncating links when clicked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way to get the proper formatting for your dataset will be to run it manually with the formatting of the start and end position.&amp;nbsp; You can then go to the geoprocessing results tab, and copy the tool as a python snippet and put the part you need into your script.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would guess based off of your code you posted you would need to replace this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10.6666669845581px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10.6666669845581px;"&gt;+vars.path_to_database+"/Parcel.mdb/Parcel/PARCEL_Limits,PARCEL_ID,-1,-1;ORD_NUM \"ORD_NUM\" true true false 25 Text 0 0 ,Join,\",\","&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10.6666669845581px;"&gt;with this based on the parameters I used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.6666669845581px; font-family: 'courier new', courier;"&gt;+vars.path_to_database+"/Parcel.mdb/Parcel/PARCEL_Limits,PARCEL_ID,-1,-1;ORD_NUM \"ORD_NUM\" true true false 25 Text 0 0 ,Join,#,v&lt;SPAN style="font-family: 'courier new', courier; font-size: 10.6666669845581px;"&gt;ars.path_to_database+"/Parcel.mdb/Parcel/PARCEL_Limits&lt;/SPAN&gt;,ORD_NUM,0,25&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10.6666669845581px;"&gt;Again I would recommend running it manually and making sure all the tool syntax is correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatialjoin-analysis-help-with-join/m-p/421952#M33157</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-07-23T18:47:08Z</dc:date>
    </item>
  </channel>
</rss>

