I have created a script for cloning hosted feature services from one portal to another using the clone_items method. The script works as expected with smaller feature services. However when using large feature services, I get this error:
('Failed to create Feature Service MyService: list index out of range', <Item title:"MyService" type:Feature Layer Collection owner:portaladmin>)
It seems as if there is a limit on how large a feature service that can be cloned. I did some experiments with a feature class with app. 1100 polygons. I limited the number features with a definition query in the map, shared it with Portal A and cloned to Portal B. Repeating this process, increasing the number of features, I started getting the error at app. 900 features. But I don't know if it is the actual number or (more likely) a certain size that triggers the error.
I can't find anything in the documentation.
Does any know of a size limitation of clone_items or have I missed something?