<?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: Migrating code from ArcGIS Desktop python 2.7.3 to ArcGIS Pro python 3.6.2 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/migrating-code-from-arcgis-desktop-python-2-7-3-to/m-p/709211#M31272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting"&gt;/blogs/dan_patterson/2016/08/14/script-formatting&lt;/A&gt;&amp;nbsp; rather than screen grabs&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;you are missing a ")" at the end of dict_values&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;xyz.gdb\xyz\xyz&lt;/SPAN&gt; needs to be r"&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;xyz.gdb\xyz\xyz&lt;/SPAN&gt;" &amp;nbsp; if that is the real gdb name&lt;/LI&gt;&lt;LI&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/analyzetoolsforpro.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/analyzetoolsforpro.htm"&gt;Analyze Tools For Pro—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;should be used to check for 2 to 3 changes in tool parameters etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2018 08:24:36 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-07-19T08:24:36Z</dc:date>
    <item>
      <title>Migrating code from ArcGIS Desktop python 2.7.3 to ArcGIS Pro python 3.6.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/migrating-code-from-arcgis-desktop-python-2-7-3-to/m-p/709210#M31271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am calling the following function:&lt;/P&gt;&lt;PRE style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9.0pt;"&gt;&lt;PRE style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;arcpy&lt;/PRE&gt;arcpy.JoinField_management(in_data&lt;SPAN style="color: #cc7832;"&gt;,&lt;/SPAN&gt;in_field&lt;SPAN style="color: #cc7832;"&gt;,&lt;/SPAN&gt;join_table&lt;SPAN style="color: #cc7832;"&gt;,&lt;/SPAN&gt;join_table_field&lt;SPAN style="color: #cc7832;"&gt;,&lt;/SPAN&gt;fields)&lt;/PRE&gt;&lt;P&gt;It works perfectly fine using ArcGIS Desktop python 2.6 but gives the following trace using ArcGIS Pro python arcgispro-py3&lt;/P&gt;&lt;P&gt;input parameters:&lt;BR /&gt;&amp;nbsp; arcpy.JoinField_management(&lt;BR /&gt;&amp;nbsp; temp_layer, &lt;BR /&gt;&amp;nbsp; NEAR_FID, &lt;BR /&gt;&amp;nbsp; xyz.gdb\xyz\xyz, &lt;BR /&gt;&amp;nbsp; OBJECTID, &lt;BR /&gt;&amp;nbsp; dict_values(['xyz']&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.JoinField_management(in_data,in_field,join_table,join_table_field,fields)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; retval = convertArcObjectToPythonObject(gp.JoinField_management(*gp_fixargs((in_data, in_field, join_table, join_field, fields), True)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))&lt;BR /&gt;RuntimeError: Object: Error in executing tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I check I passed exactly&amp;nbsp; the same varabiels to both function but I am getting this error. can you give soem hints as to what might be the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 07:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/migrating-code-from-arcgis-desktop-python-2-7-3-to/m-p/709210#M31271</guid>
      <dc:creator>SyedGardezi</dc:creator>
      <dc:date>2018-07-18T07:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating code from ArcGIS Desktop python 2.7.3 to ArcGIS Pro python 3.6.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/migrating-code-from-arcgis-desktop-python-2-7-3-to/m-p/709211#M31272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting"&gt;/blogs/dan_patterson/2016/08/14/script-formatting&lt;/A&gt;&amp;nbsp; rather than screen grabs&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;you are missing a ")" at the end of dict_values&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;xyz.gdb\xyz\xyz&lt;/SPAN&gt; needs to be r"&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;xyz.gdb\xyz\xyz&lt;/SPAN&gt;" &amp;nbsp; if that is the real gdb name&lt;/LI&gt;&lt;LI&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/analyzetoolsforpro.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/analyzetoolsforpro.htm"&gt;Analyze Tools For Pro—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;should be used to check for 2 to 3 changes in tool parameters etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 08:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/migrating-code-from-arcgis-desktop-python-2-7-3-to/m-p/709211#M31272</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-19T08:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating code from ArcGIS Desktop python 2.7.3 to ArcGIS Pro python 3.6.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/migrating-code-from-arcgis-desktop-python-2-7-3-to/m-p/709212#M31273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this code being run in the interactive Python window of ArcMap and ArcGIS Pro or standalone script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 15:11:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/migrating-code-from-arcgis-desktop-python-2-7-3-to/m-p/709212#M31273</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-07-19T15:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating code from ArcGIS Desktop python 2.7.3 to ArcGIS Pro python 3.6.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/migrating-code-from-arcgis-desktop-python-2-7-3-to/m-p/709213#M31274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;, gdb name wasnt unicode string for Pythin 3! Fixing it solved the issue. Thanks for sharing the tool I will use it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 00:39:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/migrating-code-from-arcgis-desktop-python-2-7-3-to/m-p/709213#M31274</guid>
      <dc:creator>SyedGardezi</dc:creator>
      <dc:date>2018-07-20T00:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating code from ArcGIS Desktop python 2.7.3 to ArcGIS Pro python 3.6.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/migrating-code-from-arcgis-desktop-python-2-7-3-to/m-p/709214#M31275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its standalone script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 00:40:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/migrating-code-from-arcgis-desktop-python-2-7-3-to/m-p/709214#M31275</guid>
      <dc:creator>SyedGardezi</dc:creator>
      <dc:date>2018-07-20T00:40:08Z</dc:date>
    </item>
  </channel>
</rss>

