AnsweredAssumed Answered

HTTPError: HTTP Error 503: Service Unavailable when cloning a hosted service from AGOL to Portal

Question asked by hali@lmkt.com on Jun 5, 2019

I am cloning a hosted feature layer  from AGOL to my portal but after running for few minutes it throws HTTPError: HTTP Error 503: Service Unavailable  error , Hosted feature layer is created but it contains no data in it 

 

Below is the code which i am running in jupyter notebook

 

from arcgis import gis

def clone_servcie():
source = gis.GIS('http://www.arcgis.com/')
target = gis.GIS('..............')

itemsIds = ['0fa1ed423c8c46f68e39a15dc7433f53']

created_items = []

for item_id in itemsIds:
item = source.content.get(item_id)
print('Cloning {0}'.format(item['title']))

created_items += target.content.clone_items([item])

print(len(created_items))

clone_servcie()

 

 

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 47553 records

Outcomes