<?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: Unable to clone a web map consisting of open data layers in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1085996#M6433</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/205708"&gt;@MariamJamilah&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue may be related to&amp;nbsp;&lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEzNjg0Ng==" target="_self"&gt;BUG-000136846&lt;/A&gt;&amp;nbsp;as the USA Shrot-Term Weather Warnings feature service is publicly available. The defect was closed as the clone_items() method requires admin access to the feature service in order to read the feature service's definition. Since your account don't have admin access to the feature service that is likely why the error is being returned.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
    <pubDate>Wed, 04 Aug 2021 22:48:42 GMT</pubDate>
    <dc:creator>ZacharySutherby</dc:creator>
    <dc:date>2021-08-04T22:48:42Z</dc:date>
    <item>
      <title>Unable to clone a web map consisting of open data layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1085634#M6428</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to clone a web map from my portal (arcgis enterprise) to AGOL account. The web map consists of layers added using the following url (&lt;A href="https://services9.arcgis.com/RHVPKKiFTONKtxq3/arcgis/rest/services/NOAA_short_term_warnings_v1/FeatureServer)" target="_blank"&gt;https://services9.arcgis.com/RHVPKKiFTONKtxq3/arcgis/rest/services/NOAA_short_term_warnings_v1/FeatureServer)&lt;/A&gt;&amp;nbsp;. When I try to clone this web map, it throws as error.&lt;/P&gt;&lt;P&gt;I have used the following lines of code to clone the web map:&lt;/P&gt;&lt;P&gt;source = GIS(url=portalurl, username=username, password=password, verify_cert=False)&lt;BR /&gt;target = GIS(url="&lt;A href="https://www.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;", username=username_agol, password=password_agol, verify_cert=False)&lt;BR /&gt;wmap = source.content.get(wmapID)&lt;BR /&gt;target_clone_item = target.content.clone_items([wmap])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message is as follows:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;Exception&lt;/SPAN&gt;: Invalid token.
Invalid token.
(Error Code: 498)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 11:48:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1085634#M6428</guid>
      <dc:creator>MariamJamilah</dc:creator>
      <dc:date>2021-08-04T11:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone a web map consisting of open data layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1085645#M6429</link>
      <description>&lt;P&gt;Does the ESRI documentation say that you can clone a web map from your Portal to AGOL?&amp;nbsp; I ask because generally speaking AGOL is 2 releases ahead of Portal.&lt;/P&gt;&lt;P&gt;What version of Enterprise are you using for your Portal?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 12:33:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1085645#M6429</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2021-08-04T12:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone a web map consisting of open data layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1085674#M6430</link>
      <description>&lt;P&gt;Thank you for your immediate response!&lt;/P&gt;&lt;P&gt;I'm not sure about the documentation part. B&lt;SPAN&gt;ut I'm able to clone other web maps (that is, web maps containing layers created by me) from my portal to my AGOL account.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm using ArcGIS Enterprise 10.9&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I get the error (mentioned in the initial post) when I try to clone from one portal to another (so the error is applicable to both AGOL and Enterprise).&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 13:28:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1085674#M6430</guid>
      <dc:creator>MariamJamilah</dc:creator>
      <dc:date>2021-08-04T13:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone a web map consisting of open data layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1085681#M6431</link>
      <description>Hi Mariam,&lt;BR /&gt;So the error indicates that you cannot login .&lt;BR /&gt;I would drop the , verify_cert=False in the AGOL connection that is not needed&lt;BR /&gt;target = GIS(url="&lt;A href="https://www.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;", username="username_agol", password="password_agol")&lt;BR /&gt;then the username is case sensitive in python but not the AGOL so just double check that it matches the one in AGOL&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Aug 2021 13:38:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1085681#M6431</guid>
      <dc:creator>HenryLindemann</dc:creator>
      <dc:date>2021-08-04T13:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone a web map consisting of open data layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1085996#M6433</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/205708"&gt;@MariamJamilah&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue may be related to&amp;nbsp;&lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEzNjg0Ng==" target="_self"&gt;BUG-000136846&lt;/A&gt;&amp;nbsp;as the USA Shrot-Term Weather Warnings feature service is publicly available. The defect was closed as the clone_items() method requires admin access to the feature service in order to read the feature service's definition. Since your account don't have admin access to the feature service that is likely why the error is being returned.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 22:48:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1085996#M6433</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2021-08-04T22:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone a web map consisting of open data layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1086059#M6435</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for your response!&lt;/P&gt;&lt;P&gt;I have tried dropping verify_cert and have checked my credentials as well, but I still get the same error&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 07:10:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1086059#M6435</guid>
      <dc:creator>MariamJamilah</dc:creator>
      <dc:date>2021-08-05T07:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone a web map consisting of open data layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1086060#M6436</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for bring this to my notice!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 07:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1086060#M6436</guid>
      <dc:creator>MariamJamilah</dc:creator>
      <dc:date>2021-08-05T07:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone a web map consisting of open data layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1086170#M6438</link>
      <description>&lt;P&gt;Hi Mariam,&lt;/P&gt;&lt;P&gt;As a workaround, if you needed your own copies of the layers to perform manipulations, you could instead initialize spatially enabled dataframes from the feature layers and try to publish your results to your portal that way.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 14:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1086170#M6438</guid>
      <dc:creator>emedina</dc:creator>
      <dc:date>2021-08-05T14:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone a web map consisting of open data layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1264019#M8456</link>
      <description>&lt;P&gt;Thank you for this reply! I l came across this same problem and found a workaround solution that I think others may find helpful! If using open data layers in an item a user wants to call clone_items() on, you can use the item_mapping property of the clone_items() function to reference the open data item. For example, if I want to clone a webmap that uses a living atlas layer the below code will work:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;gis.content.clone_items(items = [webmap_id], item_mapping = {open_data_id : open_data_id})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 15:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-clone-a-web-map-consisting-of-open-data/m-p/1264019#M8456</guid>
      <dc:creator>AnnaGabrielli</dc:creator>
      <dc:date>2023-03-03T15:50:57Z</dc:date>
    </item>
  </channel>
</rss>

