Hi
I'm using the modules and notebooks from https://www.esri.com/arcgis-blog/products/arcgis-hub/announcements/introducing-arcgis-hub-python-api... and I'm running into difficulties. The issue I'm experiencing appears to be listed as a bug on the Github site, howerver I'm not fully sure.
I have 2 AGOL organisations and I wan to clone the initiative/site from one or to another using the sample @ https://github.com/Esri/hub-py/tree/master/examples/For%20arcgishub%20library cloning and initiative from another org. I follow the sample and all works until the last piece - the actual cloning ! it errors with
TypeError: 'NoneType' object is not subscriptable
It actually clones the objectto my secondary agol instance but no content shows up and I dont have access to the site - it says I don't have permission - and I'm the owner...
The traceback is
TypeError Traceback (most recent call last)
In [164]:
Line 1: site = hub_basic.initiatives.clone(i1, origin_hub=myHub)
File c:\python_clone_env\arcgispro-py3_additional\src\arcgishub\arcgishub\hub.py, in clone:
Line 558: new_site = self._hub.sites.clone(site, pages=True, title=title)
File c:\python_clone_env\arcgispro-py3_additional\src\arcgishub\arcgishub\sites.py, in clone:
Line 652: _data = self._create_and_register_site(new_item, subdomain, site.definition, content_group_id, collab_group_id)
File c:\python_clone_env\arcgispro-py3_additional\src\arcgishub\arcgishub\sites.py, in _create_and_register_site:
Line 340: client_key = _app_dict['client_id']
TypeError: 'NoneType' object is not subscriptable
Has anybody got any ideas ? have I made incorrect assumptions with cloning from instance to instance on AGOL? Have I missed a step ? Everything is Public on the origin instance . Do I have any other options for cloning content between organisations?
Any guidance with this would be hugely appreciated, if I cant get it to work its back to agol assistant and a lot of cut and paste!...
Paulg