Open FeralCatColonist opened 1 year ago
Thanks for reporting this @FeralCatColonist. Happy to hear I'm not the only one and that it is indeed a bug.
I've got the same error during a migration from a 10.8.1 to 11.1 migration (big jump I know!).
I've tested this with arcgis 2.2.0 & 2.1.0.2 and both have return the same error.
Looking forward to an upcoming version that resolves this for future migrations. Even with WAB being deprecated there will be some migrations of legacy apps over the next couple of years that could use this.
Describe the bug content.clone_items fails for an application saying that the item_id exists currently; however, a content.get call returns nothing for the same item_id.
To Reproduce Steps to reproduce the behavior:
error:
Screenshots Script Output for Loop User content page in
portal/sharing/rest/content/users
backend, shows no items that match items asserted to exist.Expected behavior If an item cannot be returned from
content.get()
thencontent.clone_items()
should not assert that the item already exists.Platform (please complete the following information):
Additional context
copy_data = True
and received lots of errors. I changed it tocopy_data = False
and was able to copy over maps but not apps.gis_dev.content.search(query="*", max_items=1000)
and did not return results with the problem items above.