<?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 HTTPError: HTTP Error 503: Service Unavailable when cloning a hosted service from AGOL to Portal in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/httperror-http-error-503-service-unavailable-when/m-p/799877#M2026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am cloning a hosted feature layer&amp;nbsp; from AGOL to my portal&amp;nbsp;but after running for few minutes it throws&amp;nbsp;HTTPError: HTTP Error 503: Service Unavailable&amp;nbsp; error , Hosted feature layer is created but it contains no data in it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code which i am running in jupyter notebook&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;from arcgis import gis&lt;/P&gt;&lt;P&gt;def clone_servcie():&lt;BR /&gt; source = gis.GIS('http://www.arcgis.com/')&lt;BR /&gt; target = gis.GIS('..............')&lt;BR /&gt; &lt;BR /&gt; itemsIds = ['0fa1ed423c8c46f68e39a15dc7433f53']&lt;/P&gt;&lt;P&gt;created_items = []&lt;BR /&gt; &lt;BR /&gt; for item_id in itemsIds: &lt;BR /&gt; item = source.content.get(item_id)&lt;BR /&gt; print('Cloning {0}'.format(item['title']))&lt;BR /&gt; &lt;BR /&gt; created_items += target.content.clone_items([item])&lt;BR /&gt; &lt;BR /&gt; print(len(created_items))&lt;/P&gt;&lt;P&gt;clone_servcie()&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to copy hosted feature layer to my portal because i also tried AGOL assistance but browser crashes after some time. The hosted feature layer which i am cloning contains&amp;nbsp;47553 records&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jun 2019 22:14:02 GMT</pubDate>
    <dc:creator>Haider_Ali</dc:creator>
    <dc:date>2019-06-05T22:14:02Z</dc:date>
    <item>
      <title>HTTPError: HTTP Error 503: Service Unavailable when cloning a hosted service from AGOL to Portal</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/httperror-http-error-503-service-unavailable-when/m-p/799877#M2026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am cloning a hosted feature layer&amp;nbsp; from AGOL to my portal&amp;nbsp;but after running for few minutes it throws&amp;nbsp;HTTPError: HTTP Error 503: Service Unavailable&amp;nbsp; error , Hosted feature layer is created but it contains no data in it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code which i am running in jupyter notebook&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;from arcgis import gis&lt;/P&gt;&lt;P&gt;def clone_servcie():&lt;BR /&gt; source = gis.GIS('http://www.arcgis.com/')&lt;BR /&gt; target = gis.GIS('..............')&lt;BR /&gt; &lt;BR /&gt; itemsIds = ['0fa1ed423c8c46f68e39a15dc7433f53']&lt;/P&gt;&lt;P&gt;created_items = []&lt;BR /&gt; &lt;BR /&gt; for item_id in itemsIds: &lt;BR /&gt; item = source.content.get(item_id)&lt;BR /&gt; print('Cloning {0}'.format(item['title']))&lt;BR /&gt; &lt;BR /&gt; created_items += target.content.clone_items([item])&lt;BR /&gt; &lt;BR /&gt; print(len(created_items))&lt;/P&gt;&lt;P&gt;clone_servcie()&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to copy hosted feature layer to my portal because i also tried AGOL assistance but browser crashes after some time. The hosted feature layer which i am cloning contains&amp;nbsp;47553 records&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 22:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/httperror-http-error-503-service-unavailable-when/m-p/799877#M2026</guid>
      <dc:creator>Haider_Ali</dc:creator>
      <dc:date>2019-06-05T22:14:02Z</dc:date>
    </item>
  </channel>
</rss>

