<?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() No Longer Cloning Dashboards in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1537102#M10642</link>
    <description>&lt;P&gt;I am currently having this exact issue using clone_items() in a Notebook in ArcPro 3.1.3. Has this been addressed?&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/86309"&gt;@EarlMedina&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 21:21:12 GMT</pubDate>
    <dc:creator>KeitherPerkinsWSB</dc:creator>
    <dc:date>2024-09-10T21:21:12Z</dc:date>
    <item>
      <title>Clone_items() No Longer Cloning Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1513907#M10394</link>
      <description>&lt;P&gt;I have a simple cloning Notebook to clone items from one account to another. This has worked well for quite some time. Recently I noticed it will clone webmaps, hosted feature layers, and Survey123 forms, &lt;STRONG&gt;but will no longer clone Dashboards&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I am seeing this error:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;TypeError&lt;/SPAN&gt;: '&amp;gt;=' not supported between instances of 'str' and 'int'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After executing the clone_items() function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#... connect to "source" and "target" AGOL accounts in prior steps

# Identify the item to clone
item = source.content.get("AGOL ITEM ID")

# Clone the item to the target account
cloned_items = target.content.clone_items(items=[item])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a screenshot of the error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DashboardCloningError1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111409iA3B13DE1F1508AA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="DashboardCloningError1.PNG" alt="DashboardCloningError1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas as to why this is happening and/or potential work arounds?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 21:35:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1513907#M10394</guid>
      <dc:creator>JoeWaters</dc:creator>
      <dc:date>2024-08-01T21:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Clone_items() No Longer Cloning Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1514321#M10400</link>
      <description>&lt;P&gt;Seems like there's a hiccup in the logic there at least for your case. Apparently, data["version"] is a string that needs to be parsed into an integer for that comparison to work.&lt;/P&gt;&lt;P&gt;The first thing you can do is log an issue here with a description of your problem pretty much exactly as you posted:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-python-api/issues" target="_blank"&gt;Issues · Esri/arcgis-python-api · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, if you are comfortable doing a bit of troubleshooting you can create a test conda environment (so you don't mess up your production environment) and tweak the source to see if it fixes your problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try making this change in the indicated file at line 4563:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if data["version"]:
    if int(data["version"]) &amp;gt;= 24:
        webmap_ids = _DashboardDefinition._get_webmap_ids_v24(data)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 17:51:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1514321#M10400</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2024-08-02T17:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Clone_items() No Longer Cloning Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1515737#M10408</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am also unable to clone dashboards using the clone_items() method. I noticed this when running my script through portal notebooks which is using the API version 2.1.0.3, yet when I run the same script using API version 2.1.0.2 on my local machine, my script runs fine. Were there some significant changes in the 2.1.0.3 version that may be causing this? Am I missing any additional parameters? If possible, how could I revert my notebook server to use the 2.1.0.2 version of the API? I have attempted on newly created dashboards, existing ones, and dashboards that have been cloned from other environments and always get the following results:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffGarcia_0-1722974453253.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111759i0C5F0C1D149F0EB7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffGarcia_0-1722974453253.png" alt="JeffGarcia_0-1722974453253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 20:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1515737#M10408</guid>
      <dc:creator>JeffGarcia</dc:creator>
      <dc:date>2024-08-06T20:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Clone_items() No Longer Cloning Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1516061#M10410</link>
      <description>&lt;P&gt;You should be able to do something like this in the python command prompt installed with the software (with your environment active):&lt;/P&gt;&lt;PRE&gt;conda install &amp;lt;pkg&amp;gt;=&amp;lt;version&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Aug 2024 13:09:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1516061#M10410</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2024-08-07T13:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Clone_items() No Longer Cloning Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1537102#M10642</link>
      <description>&lt;P&gt;I am currently having this exact issue using clone_items() in a Notebook in ArcPro 3.1.3. Has this been addressed?&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/86309"&gt;@EarlMedina&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 21:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1537102#M10642</guid>
      <dc:creator>KeitherPerkinsWSB</dc:creator>
      <dc:date>2024-09-10T21:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Clone_items() No Longer Cloning Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1537148#M10644</link>
      <description>&lt;P&gt;I'm not sure, unfortunately. I may be wrong, but it looks like nothing was logged for this behavior when this thread was last active:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-python-api/issues" target="_blank"&gt;https://github.com/Esri/arcgis-python-api/issues&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 00:06:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1537148#M10644</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2024-09-11T00:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Clone_items() No Longer Cloning Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1537411#M10647</link>
      <description>&lt;P&gt;I have talked to ESRI support and their are known bugs for cloning all apps with the clone.items() function. I have been told there is no current work around or other functions that could be used on cloning Apps and these bugs will be addressed in the ArcGIS API Python 2.4 release. Which they do not have an official release date for but possibly October 2024.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;To me this makes all the documentation out there on cloning items irrelevant.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/python/guide/cloning-content/" target="_blank"&gt;https://developers.arcgis.com/python/guide/cloning-content/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/python/guide/cloning-complex-apps/#web-experiences" target="_blank"&gt;https://developers.arcgis.com/python/guide/cloning-complex-apps/#web-experiences&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 16:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-no-longer-cloning-dashboards/m-p/1537411#M10647</guid>
      <dc:creator>KeitherPerkinsWSB</dc:creator>
      <dc:date>2024-09-11T16:19:39Z</dc:date>
    </item>
  </channel>
</rss>

