<?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: importDocument does not work on some specific mxd. Manual import works fine in the app in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/importdocument-does-not-work-on-some-specific-mxd/m-p/1525648#M71298</link>
    <description>&lt;P&gt;Same issue happening to me, too.&lt;BR /&gt;&lt;BR /&gt;Has anyone found a solution?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am working on an &lt;STRONG&gt;APRX-Tree-Viewer&lt;/STRONG&gt;,&amp;nbsp; but importing .mxd sometimes blocks (no error, no time-out, just stuck forever)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredericPoliart_EsriAU_0-1724320956521.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113228i5194013EA398FF13/image-size/large?v=v2&amp;amp;px=999" role="button" title="FredericPoliart_EsriAU_0-1724320956521.png" alt="FredericPoliart_EsriAU_0-1724320956521.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2024 10:03:19 GMT</pubDate>
    <dc:creator>FredericPoliart_EsriAU</dc:creator>
    <dc:date>2024-08-22T10:03:19Z</dc:date>
    <item>
      <title>importDocument does not work on some specific mxd. Manual import works fine in the app</title>
      <link>https://community.esri.com/t5/python-questions/importdocument-does-not-work-on-some-specific-mxd/m-p/97692#M7594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just wondering if anyone has experienced similar issue. I have a script that imports each mxd in a folder to an empty ArcGIS Pro project, then use&amp;nbsp;&lt;STRONG&gt;saveACopy&lt;/STRONG&gt; to save to a new project file. The problem is: the script just does not work for 30% of my mxd files. The script is just stuck at the&amp;nbsp;&lt;STRONG&gt;importDocument&lt;/STRONG&gt; statement for those specific mxd, nothing happens, no error thrown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For debugging, I got 2&amp;nbsp;&lt;STRONG&gt;print&lt;/STRONG&gt; statements, one immediately before, one immediately after the&amp;nbsp;&lt;STRONG&gt;importDocument:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;print(mxd_path)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;aprx.importDocument(mxd_path)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;print('imported')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever the script reaches an troublesome mxd, I get its path printed, then nothing happens (have left it just like that for an hour). When I open the ArcGIS Pro app and import the manual way, i.e. right-click on the mxd file in Catalog pane and select&amp;nbsp;&lt;STRONG&gt;Import and Open&lt;/STRONG&gt;, the same troublesome mxd is imported and opened in seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For mxd that can be imported via the script, it's done in less than one second.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2020 08:36:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importdocument-does-not-work-on-some-specific-mxd/m-p/97692#M7594</guid>
      <dc:creator>WarrenCarey</dc:creator>
      <dc:date>2020-05-11T08:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: importDocument does not work on some specific mxd. Manual import works fine in the app</title>
      <link>https://community.esri.com/t5/python-questions/importdocument-does-not-work-on-some-specific-mxd/m-p/1166139#M64361</link>
      <description>&lt;P&gt;I am experiencing this same problem.&amp;nbsp; Did you ever find a solution?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is frustrating as it is the final step in my code.&amp;nbsp; Using the arcpy.mapping method in python 2.7 works just fine on all my mxds, but I'm trying to use the arcpy.mp in python 3 and it keeps hanging.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it doesn't seem that there is any way to get the properties of an mxd without first importing it.&lt;/P&gt;&lt;P&gt;My ideas for a workaround is to somehow&lt;/P&gt;&lt;P&gt;1.put a timer on the loop that will skip over an mxd after trying for a certain amount of time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. try to call my python 2.7 script to run and ouptut the mxd properties to excel or csv and import that output into my py 3 script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 16:21:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importdocument-does-not-work-on-some-specific-mxd/m-p/1166139#M64361</guid>
      <dc:creator>JTLancer</dc:creator>
      <dc:date>2022-04-20T16:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: importDocument does not work on some specific mxd. Manual import works fine in the app</title>
      <link>https://community.esri.com/t5/python-questions/importdocument-does-not-work-on-some-specific-mxd/m-p/1410174#M70322</link>
      <description>&lt;P&gt;Did you ever resolve this?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 12:21:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importdocument-does-not-work-on-some-specific-mxd/m-p/1410174#M70322</guid>
      <dc:creator>LarryMcEvoy70</dc:creator>
      <dc:date>2024-04-16T12:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: importDocument does not work on some specific mxd. Manual import works fine in the app</title>
      <link>https://community.esri.com/t5/python-questions/importdocument-does-not-work-on-some-specific-mxd/m-p/1525648#M71298</link>
      <description>&lt;P&gt;Same issue happening to me, too.&lt;BR /&gt;&lt;BR /&gt;Has anyone found a solution?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am working on an &lt;STRONG&gt;APRX-Tree-Viewer&lt;/STRONG&gt;,&amp;nbsp; but importing .mxd sometimes blocks (no error, no time-out, just stuck forever)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredericPoliart_EsriAU_0-1724320956521.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113228i5194013EA398FF13/image-size/large?v=v2&amp;amp;px=999" role="button" title="FredericPoliart_EsriAU_0-1724320956521.png" alt="FredericPoliart_EsriAU_0-1724320956521.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 10:03:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importdocument-does-not-work-on-some-specific-mxd/m-p/1525648#M71298</guid>
      <dc:creator>FredericPoliart_EsriAU</dc:creator>
      <dc:date>2024-08-22T10:03:19Z</dc:date>
    </item>
  </channel>
</rss>

