<?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 Adding shapefiles to a project in PRO using python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41210#M3286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a python script that I am using to obtain kml data and then turn that into a geodatabase, extract the information and create 3 shapefiles which I then need to publish as a web layer.&amp;nbsp; I have the script so that it does not automatically add the created geodatabase or shapefile automatically as some cannot be published as feature layers.&amp;nbsp; I am trying to get just the shapefiles to the map.&amp;nbsp; The snippet I am using is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aprx = arcpy.mp.ArcGISProject("Current")&lt;BR /&gt;map = aprx.listMaps()[0]&lt;BR /&gt;map.addDataFromPath('C:/directory/filename.shp')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a post from bixb0012 which I also tried, from 2017, which is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;shp_path &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: slategray; border: 0px; font-weight: inherit;"&gt;# path to shape file&lt;/SPAN&gt;

aprx &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;"CURRENT"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;
map &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; aprx&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;listMaps&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;]&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="" style="color: slategray; border: 0px; font-weight: inherit;"&gt;# assumes data to be added to first map listed&lt;/SPAN&gt;
map&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;addDataFromPath&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;shp_path&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;And it did not work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error I receive on both is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Traceback (most recent call last) In  &lt;SPAN class="" style="color: #208ffb;"&gt;[3]&lt;/SPAN&gt;: Line &lt;SPAN class="" style="color: #208ffb;"&gt;44&lt;/SPAN&gt;:    &lt;SPAN class="" style="color: #60c6c8;"&gt;map&lt;/SPAN&gt;.addDataFromPath(&lt;SPAN class="" style="color: #ddb62b;"&gt;'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #ddb62b;"&gt;C:/GIS_Projects/VMRC_KMZ/VMRC_Oyster_Clam_Data/shp/VMRC_Public_Clamming_Grounds.shp&lt;/SPAN&gt;&lt;SPAN class="" style="color: #ddb62b;"&gt;'&lt;/SPAN&gt;)  File &lt;SPAN class="" style="color: #208ffb;"&gt;c:\program files\arcgis\pro\Resources\arcpy\arcpy\_mp.py&lt;/SPAN&gt;, in &lt;SPAN class="" style="color: #00a250;"&gt;addDataFromPath&lt;/SPAN&gt;: Line &lt;SPAN class="" style="color: #208ffb;"&gt;1779&lt;/SPAN&gt;:  &lt;SPAN class="" style="color: #208ffb;"&gt;return&lt;/SPAN&gt; convertArcObjectToPythonObject(&lt;SPAN class="" style="color: #60c6c8;"&gt;self&lt;/SPAN&gt;._arc_object.addDataFromPath(*gp_fixargs((data_path,), &lt;SPAN class="" style="color: #208ffb;"&gt;True&lt;/SPAN&gt;))) &lt;SPAN class="" style="color: #e75c58;"&gt;RuntimeError&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #e75c58;"&gt;---------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using PRO version 2.6.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help / suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:35:52 GMT</pubDate>
    <dc:creator>JamesWhite5</dc:creator>
    <dc:date>2021-12-10T21:35:52Z</dc:date>
    <item>
      <title>Adding shapefiles to a project in PRO using python</title>
      <link>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41210#M3286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a python script that I am using to obtain kml data and then turn that into a geodatabase, extract the information and create 3 shapefiles which I then need to publish as a web layer.&amp;nbsp; I have the script so that it does not automatically add the created geodatabase or shapefile automatically as some cannot be published as feature layers.&amp;nbsp; I am trying to get just the shapefiles to the map.&amp;nbsp; The snippet I am using is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aprx = arcpy.mp.ArcGISProject("Current")&lt;BR /&gt;map = aprx.listMaps()[0]&lt;BR /&gt;map.addDataFromPath('C:/directory/filename.shp')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a post from bixb0012 which I also tried, from 2017, which is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;shp_path &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: slategray; border: 0px; font-weight: inherit;"&gt;# path to shape file&lt;/SPAN&gt;

aprx &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;"CURRENT"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;
map &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; aprx&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;listMaps&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;]&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="" style="color: slategray; border: 0px; font-weight: inherit;"&gt;# assumes data to be added to first map listed&lt;/SPAN&gt;
map&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;addDataFromPath&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;shp_path&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;And it did not work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error I receive on both is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Traceback (most recent call last) In  &lt;SPAN class="" style="color: #208ffb;"&gt;[3]&lt;/SPAN&gt;: Line &lt;SPAN class="" style="color: #208ffb;"&gt;44&lt;/SPAN&gt;:    &lt;SPAN class="" style="color: #60c6c8;"&gt;map&lt;/SPAN&gt;.addDataFromPath(&lt;SPAN class="" style="color: #ddb62b;"&gt;'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #ddb62b;"&gt;C:/GIS_Projects/VMRC_KMZ/VMRC_Oyster_Clam_Data/shp/VMRC_Public_Clamming_Grounds.shp&lt;/SPAN&gt;&lt;SPAN class="" style="color: #ddb62b;"&gt;'&lt;/SPAN&gt;)  File &lt;SPAN class="" style="color: #208ffb;"&gt;c:\program files\arcgis\pro\Resources\arcpy\arcpy\_mp.py&lt;/SPAN&gt;, in &lt;SPAN class="" style="color: #00a250;"&gt;addDataFromPath&lt;/SPAN&gt;: Line &lt;SPAN class="" style="color: #208ffb;"&gt;1779&lt;/SPAN&gt;:  &lt;SPAN class="" style="color: #208ffb;"&gt;return&lt;/SPAN&gt; convertArcObjectToPythonObject(&lt;SPAN class="" style="color: #60c6c8;"&gt;self&lt;/SPAN&gt;._arc_object.addDataFromPath(*gp_fixargs((data_path,), &lt;SPAN class="" style="color: #208ffb;"&gt;True&lt;/SPAN&gt;))) &lt;SPAN class="" style="color: #e75c58;"&gt;RuntimeError&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #e75c58;"&gt;---------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using PRO version 2.6.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help / suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:35:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41210#M3286</guid>
      <dc:creator>JamesWhite5</dc:creator>
      <dc:date>2021-12-10T21:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding shapefiles to a project in PRO using python</title>
      <link>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41211#M3287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you are doing well today. I took a look at the issue you are seeing and I think I might have an idea as to what could be going on. Based on your code, it looks like you are trying to add a shapefile to the map using the addDataFromMap function, however I believe this function might require a feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you try converting the shapefile to a feature layer first, then import, do you still experience issues? Example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;aprx = arcpy.mp.ArcGISProject("Current")&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;map = aprx.listMaps()[0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;layer_path = &amp;lt;path&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;lyr =&amp;nbsp;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;arcpy.MakeFeatureLayer_management(&lt;/SPAN&gt;&lt;SPAN style="background-color: #f8f8f8; color: #c41a16; "&gt;layer_path&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"layer"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;map.addDataFromPath(lyr)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2020 01:55:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41211#M3287</guid>
      <dc:creator>JaredPoe1</dc:creator>
      <dc:date>2020-10-09T01:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding shapefiles to a project in PRO using python</title>
      <link>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41212#M3288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jared,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good morning.&amp;nbsp; I tried adding the above in and I get the same error as before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I am creating a geodatabase, I redid the script to just name the feature class within the geodatabase to the name I want and then tried adding that layer into PRO and received the same error trying it that way as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using an IDE.&amp;nbsp; I am working from the project notebook, so not sure if that might be the issue or not.&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>Fri, 09 Oct 2020 15:24:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41212#M3288</guid>
      <dc:creator>JamesWhite5</dc:creator>
      <dc:date>2020-10-09T15:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding shapefiles to a project in PRO using python</title>
      <link>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41213#M3289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tested your, or my, code snippet in Pro 2.6.2 and it works from both the interactive Python Window and Python Notebook.&amp;nbsp; I see you are running Pro 2.6.1.&amp;nbsp; It never hurts to apply the latest patch, although I doubt that will change the outcome here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;'C:/GIS_Projects/VMRC_KMZ/VMRC_Oyster_Clam_Data/shp/VMRC_Public_Clamming_Grounds.shp'&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;try using a raw-encoded normal Windows path like&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;r'C:\GIS_Projects\VMRC_KMZ\VMRC_Oyster_Clam_Data\shp\VMRC_Public_Clamming_Grounds.shp'&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2020 15:04:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41213#M3289</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-10-12T15:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding shapefiles to a project in PRO using python</title>
      <link>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41214#M3290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also tested the code snippet and was able to generate the same error message only when the path was incomplete or contained an error.&amp;nbsp; With a correct path to the shapefile, the file loaded fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2020 17:08:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41214#M3290</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2020-10-12T17:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding shapefiles to a project in PRO using python</title>
      <link>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41215#M3291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your script works for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it only works when I run the script within ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you run it outside of the ArcGIS Pro? If yes, you can't use "current", you have to create an empty Pro project and add the file in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2020 11:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41215#M3291</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-10-13T11:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding shapefiles to a project in PRO using python</title>
      <link>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41216#M3292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for all of the responses and I will try then when I get back into my office next week.&amp;nbsp; Life happens, right?&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2020 12:34:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41216#M3292</guid>
      <dc:creator>JamesWhite5</dc:creator>
      <dc:date>2020-10-13T12:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding shapefiles to a project in PRO using python</title>
      <link>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41217#M3293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I did get it to work using the r'C:\...' method, but it does give me this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy._mp.Layer object at 0x000001A9BFDFEC88&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried searching for that error but didn't return anything specific as to what might be causing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, the layers are being added to the current project though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;PRE style="color: #cccccc; background-color: transparent; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2020 14:45:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41217#M3293</guid>
      <dc:creator>JamesWhite5</dc:creator>
      <dc:date>2020-10-21T14:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding shapefiles to a project in PRO using python</title>
      <link>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41218#M3294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not seeing an error?&amp;nbsp; All I see is an object reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2020 15:43:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41218#M3294</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-10-21T15:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding shapefiles to a project in PRO using python</title>
      <link>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41219#M3295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, you are absolutely correct!&amp;nbsp; I am used to that being an error popping up right there.&amp;nbsp; Sorry about that.&amp;nbsp; Then I guess this is fixed!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just out of curiosity though, why does putting an "r" before the path name make a difference?&amp;nbsp; I thought they were both the same thing either with r'C:/.....' or just going straight to 'C:/.....'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2020 15:59:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41219#M3295</guid>
      <dc:creator>JamesWhite5</dc:creator>
      <dc:date>2020-10-21T15:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding shapefiles to a project in PRO using python</title>
      <link>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41220#M3296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With OS paths, it is always best to use raw strings.&amp;nbsp; That said, I would consider what you encountered a defect in the tool you are using.&amp;nbsp; Somewhere the tool is handling the non-raw string differently/incorrectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2020 16:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41220#M3296</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-10-21T16:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding shapefiles to a project in PRO using python</title>
      <link>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41221#M3297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, cool.&amp;nbsp; Thank you so much for your help.&amp;nbsp; I will start using raw strings instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2020 16:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-shapefiles-to-a-project-in-pro-using-python/m-p/41221#M3297</guid>
      <dc:creator>JamesWhite5</dc:creator>
      <dc:date>2020-10-21T16:55:12Z</dc:date>
    </item>
  </channel>
</rss>

