<?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: Clone_items on webmap containing hosted view fails on 2.4.1 in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-on-webmap-containing-hosted-view-fails/m-p/1630369#M11492</link>
    <description>&lt;P&gt;For anyone that lands here. ESRI have acknowledged this as a bug:&lt;BR /&gt;&lt;BR /&gt;BUG-000177674&lt;BR /&gt;&lt;BR /&gt;The workaround seems to be to fire the clone command from an AGOL notebook, which doesn't generate the error. Which is a little bit cumbersome in my use case as I have had to rewrite a Pro tool box and move half the code to an AGOL note book, but it does work.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jul 2025 08:36:10 GMT</pubDate>
    <dc:creator>RichardHowe</dc:creator>
    <dc:date>2025-07-04T08:36:10Z</dc:date>
    <item>
      <title>Clone_items on webmap containing hosted view fails on 2.4.1</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-on-webmap-containing-hosted-view-fails/m-p/1629289#M11491</link>
      <description>&lt;P&gt;When using the gis.content.clone_items command in the API we consistently see the error below when running it on a webmap in ArcGIS Online containing a hosted view layer. with parameters set to:&lt;BR /&gt;"(copy_data=True, search_existing_items=False)"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Traceback (most recent call last):
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\_impl\common\_clone.py", line 3404, in clone
    and "viewLayerDefinition" in layer["adminLayerInfo"]
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The same command works perfectly on version 2.3.0 of the API, the clone completes and it clones both the webmap and hosted view layer correctly, so this seems like a new bug introduced in the API&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 10:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-on-webmap-containing-hosted-view-fails/m-p/1629289#M11491</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2025-07-02T10:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Clone_items on webmap containing hosted view fails on 2.4.1</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-on-webmap-containing-hosted-view-fails/m-p/1630369#M11492</link>
      <description>&lt;P&gt;For anyone that lands here. ESRI have acknowledged this as a bug:&lt;BR /&gt;&lt;BR /&gt;BUG-000177674&lt;BR /&gt;&lt;BR /&gt;The workaround seems to be to fire the clone command from an AGOL notebook, which doesn't generate the error. Which is a little bit cumbersome in my use case as I have had to rewrite a Pro tool box and move half the code to an AGOL note book, but it does work.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 08:36:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-on-webmap-containing-hosted-view-fails/m-p/1630369#M11492</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2025-07-04T08:36:10Z</dc:date>
    </item>
  </channel>
</rss>

