<?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: Basic Question for arcpy.mp.ArcGISProject() in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/basic-question-for-arcpy-mp-arcgisproject/m-p/1076189#M61597</link>
    <description>&lt;P&gt;From Windows Explorer, &lt;STRONG&gt;could you ensure that the filepath of the aprx file is correct&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Just my assumption, maybe you missed the folder containing the aprx file (e.g.&amp;nbsp;&lt;SPAN&gt;"C:\Users\User\Documents\ArcGIS\Projects\MyProject2\MyProject2.aprx")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or any other pathname&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 06:31:26 GMT</pubDate>
    <dc:creator>JayantaPoddar</dc:creator>
    <dc:date>2021-07-07T06:31:26Z</dc:date>
    <item>
      <title>Basic Question for arcpy.mp.ArcGISProject()</title>
      <link>https://community.esri.com/t5/python-questions/basic-question-for-arcpy-mp-arcgisproject/m-p/1076183#M61596</link>
      <description>&lt;P&gt;Hi, I just have a basic question with the arcpy.mp.ArcGISProject()&amp;nbsp; function while trying to follow along a simple tutorial that is a bit old. Here's the relevant code section below&lt;/P&gt;&lt;P&gt;# Import modules&lt;BR /&gt;import arcpy&lt;/P&gt;&lt;P&gt;# Create the map document object&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject(r"C:\Users\User\Documents\ArcGIS\Projects\MyProject2.aprx")&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;And this is the OS Error in question:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\User\Desktop\Exercise ArcGis Python\Ex_Files_ArcGIS_Python_Scripting\Exercise Files\WorkWithListsFinal.py", line 15, in &amp;lt;module&amp;gt;&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject(r"C:\Users\User\Documents\ArcGIS\Projects\MyProject2.aprx")&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\_mp.py", line 344, in __init__&lt;BR /&gt;self._arc_object = arcgisscripting._mapping.ArcGISProject(*gp_fixargs((aprx_path,), True))&lt;BR /&gt;OSError: C:\Users\User\Documents\ArcGIS\Projects\MyProject2.aprx&lt;/P&gt;&lt;P&gt;Not really sure what's happening here to not allow me reference the .aprx file which is what I thought the ArcGISProject() command did.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 04:07:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-question-for-arcpy-mp-arcgisproject/m-p/1076183#M61596</guid>
      <dc:creator>kelvpau</dc:creator>
      <dc:date>2021-07-07T04:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Question for arcpy.mp.ArcGISProject()</title>
      <link>https://community.esri.com/t5/python-questions/basic-question-for-arcpy-mp-arcgisproject/m-p/1076189#M61597</link>
      <description>&lt;P&gt;From Windows Explorer, &lt;STRONG&gt;could you ensure that the filepath of the aprx file is correct&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Just my assumption, maybe you missed the folder containing the aprx file (e.g.&amp;nbsp;&lt;SPAN&gt;"C:\Users\User\Documents\ArcGIS\Projects\MyProject2\MyProject2.aprx")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or any other pathname&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 06:31:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-question-for-arcpy-mp-arcgisproject/m-p/1076189#M61597</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-07-07T06:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Question for arcpy.mp.ArcGISProject()</title>
      <link>https://community.esri.com/t5/python-questions/basic-question-for-arcpy-mp-arcgisproject/m-p/1076201#M61598</link>
      <description>&lt;P&gt;unless you altered the path&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;C:\Users\User\Documents\ArcGIS\Projects\MyProject2.aprx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;probably should be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;C:\Users\.. your user name ...\Documents\ArcGIS\Projects\MyProject2.aprx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;where&amp;nbsp;&amp;nbsp;"your user name" is your identifier&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 08:39:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-question-for-arcpy-mp-arcgisproject/m-p/1076201#M61598</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-07-07T08:39:33Z</dc:date>
    </item>
  </channel>
</rss>

