<?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 Map.addDataFromPath does not add data to path when project instance is created using path. in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/map-adddatafrompath-does-not-add-data-to-path-when/m-p/1404668#M81271</link>
    <description>&lt;P&gt;I use a path (not "CURRENT") in order to create a project instance e.g.,:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;aprx = arcpy.mp.ArcGISProject("Project.aprx")
m = aprx.listMaps("Map")[0]&lt;/LI-CODE&gt;&lt;P&gt;I'm confident that I have a reference to the map, as I am able to remove layers from the map using `m.removeLayer(LAYER)`.&amp;nbsp; However, when I run `m.addDataFromPath(PATH_TO_LAYER)` the Layer is not added to the Map.&lt;/P&gt;&lt;P&gt;When I use "CURRENT" in order to instantiate the project, the Layer is added to the map using m.addDataFromPath(PATH_TO_LAYER).&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2024 15:40:16 GMT</pubDate>
    <dc:creator>AdamPatterson</dc:creator>
    <dc:date>2024-04-02T15:40:16Z</dc:date>
    <item>
      <title>Map.addDataFromPath does not add data to path when project instance is created using path.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/map-adddatafrompath-does-not-add-data-to-path-when/m-p/1404668#M81271</link>
      <description>&lt;P&gt;I use a path (not "CURRENT") in order to create a project instance e.g.,:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;aprx = arcpy.mp.ArcGISProject("Project.aprx")
m = aprx.listMaps("Map")[0]&lt;/LI-CODE&gt;&lt;P&gt;I'm confident that I have a reference to the map, as I am able to remove layers from the map using `m.removeLayer(LAYER)`.&amp;nbsp; However, when I run `m.addDataFromPath(PATH_TO_LAYER)` the Layer is not added to the Map.&lt;/P&gt;&lt;P&gt;When I use "CURRENT" in order to instantiate the project, the Layer is added to the map using m.addDataFromPath(PATH_TO_LAYER).&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 15:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/map-adddatafrompath-does-not-add-data-to-path-when/m-p/1404668#M81271</guid>
      <dc:creator>AdamPatterson</dc:creator>
      <dc:date>2024-04-02T15:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Map.addDataFromPath does not add data to path when project instance is created using path.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/map-adddatafrompath-does-not-add-data-to-path-when/m-p/1404730#M81275</link>
      <description>&lt;P&gt;You need to provide the full path, are you doing this?&amp;nbsp; I presume the above are just examples, if not, there may be something wrong with your path&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 17:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/map-adddatafrompath-does-not-add-data-to-path-when/m-p/1404730#M81275</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-04-02T17:14:00Z</dc:date>
    </item>
  </channel>
</rss>

