<?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>idea clone_items Exception Testing in Developers Ideas</title>
    <link>https://community.esri.com/t5/developers-ideas/clone-items-exception-testing/idi-p/928720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The clone_items() function in the ArcGIS API for Python takes a top level item such as a web app and copies it from a source to a target Portal, including all items within that top level item, such as a web map, feature service, layers. However, if one of the items within that top level item is invalid, such as a layer, it fails. There does not seem to be any exception testing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think a better design would allow for an item to fail to copy but let the clone_items() function continue. That way you would still clone the web map and any feature services / layers that are valid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2020 16:17:19 GMT</pubDate>
    <dc:creator>JimO_Leary2</dc:creator>
    <dc:date>2020-02-18T16:17:19Z</dc:date>
    <item>
      <title>clone_items Exception Testing</title>
      <link>https://community.esri.com/t5/developers-ideas/clone-items-exception-testing/idi-p/928720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The clone_items() function in the ArcGIS API for Python takes a top level item such as a web app and copies it from a source to a target Portal, including all items within that top level item, such as a web map, feature service, layers. However, if one of the items within that top level item is invalid, such as a layer, it fails. There does not seem to be any exception testing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think a better design would allow for an item to fail to copy but let the clone_items() function continue. That way you would still clone the web map and any feature services / layers that are valid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 16:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/clone-items-exception-testing/idi-p/928720</guid>
      <dc:creator>JimO_Leary2</dc:creator>
      <dc:date>2020-02-18T16:17:19Z</dc:date>
    </item>
  </channel>
</rss>

