<?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: issue with deleteItem(map) in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/issue-with-deleteitem-map/m-p/1621461#M96400</link>
    <description>&lt;P&gt;update...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I tried deleting all the layers and then deleting the map...the result still the same: my process gets stuck on "deleteMap"...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 06 Jun 2025 08:59:56 GMT</pubDate>
    <dc:creator>DavideBollo</dc:creator>
    <dc:date>2025-06-06T08:59:56Z</dc:date>
    <item>
      <title>issue with deleteItem(map)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issue-with-deleteitem-map/m-p/1565039#M90861</link>
      <description>&lt;P&gt;Hi everyone, i created a simple map switcher in python and &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I put it in a toolbox script.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;the script receives as input:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;aprx project;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;map name to be deleted (from aprx project);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;input mapx with the new map;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;pagx exporting checkbox;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;exported pagx path.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The script performs the following operations&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Project backup;&lt;/LI&gt;&lt;LI&gt;Deleting target map;&lt;/LI&gt;&lt;LI&gt;Loading new map;&lt;/LI&gt;&lt;LI&gt;Renaming new map as deleted one;&lt;/LI&gt;&lt;LI&gt;Optionally export layout as pagx file with new map.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If executed in "stand alone" from windows shell, the script works perfectly but, if inserted in a toolbox script, launched from ArcGIS (in a blank project) the execution remains stuck at the deleteItem command.&lt;/P&gt;&lt;P&gt;Why? I can't find any reason.&lt;/P&gt;&lt;P&gt;Somebody can help? (script and validation attached).&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Tested with ArcGIS Pro 3.3.1 and 3.4&lt;BR /&gt;Windows 10 Pro for Workstation&lt;BR /&gt;22H2 build 19045.4894&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 09:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issue-with-deleteitem-map/m-p/1565039#M90861</guid>
      <dc:creator>DavideBollo</dc:creator>
      <dc:date>2024-12-05T09:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: issue with deleteItem(map)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issue-with-deleteitem-map/m-p/1581293#M92612</link>
      <description>&lt;P&gt;Seeing a similar issue in a Python script tool run from Toolbox. Trying to programmatically remove extraneous map objects from the workspace before the script completes. Did you find a solution?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 14:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issue-with-deleteitem-map/m-p/1581293#M92612</guid>
      <dc:creator>jameslogan5</dc:creator>
      <dc:date>2025-02-03T14:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: issue with deleteItem(map)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issue-with-deleteitem-map/m-p/1618831#M96115</link>
      <description>&lt;P&gt;what do you mean with "extraneous map objects"?&lt;BR /&gt;no solution right now...&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 13:00:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issue-with-deleteitem-map/m-p/1618831#M96115</guid>
      <dc:creator>DavideBollo</dc:creator>
      <dc:date>2025-05-28T13:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: issue with deleteItem(map)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issue-with-deleteitem-map/m-p/1621461#M96400</link>
      <description>&lt;P&gt;update...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I tried deleting all the layers and then deleting the map...the result still the same: my process gets stuck on "deleteMap"...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Jun 2025 08:59:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issue-with-deleteitem-map/m-p/1621461#M96400</guid>
      <dc:creator>DavideBollo</dc:creator>
      <dc:date>2025-06-06T08:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: issue with deleteItem(map)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issue-with-deleteitem-map/m-p/1695299#M102726</link>
      <description>&lt;P&gt;The same applies to version 3.6.2. Is there a solution or alternative that doesn't involve running a separate script?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 14:30:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issue-with-deleteitem-map/m-p/1695299#M102726</guid>
      <dc:creator>ITDivision</dc:creator>
      <dc:date>2026-04-09T14:30:31Z</dc:date>
    </item>
  </channel>
</rss>

