AnsweredAssumed Answered

Copying item with the python API - index error?

Question asked by Mathis.Kristensengeodata-no-esridist Employee on Jan 22, 2020
Latest reply on Feb 14, 2020 by Mathis.Kristensengeodata-no-esridist

Im trying to copy a feature service from one AGOL account to another. The name is unique. When using the pyton API Im getting the error:


Unable to add feature service definition.
The operation failed because an index or statistics with name 'Tennpunkt_nummer_unidx' already exists on table 'db_4868.user_4868.Gatelys_Webmap_WFL1_TENNPUNKT'.


I've tried cloning to different accounts but I always get the same error. This worked fine last year in October/November. I've tested using the arcgis api 1.62 and 1.7, with the same result. 


Im using GIS.content.clone_items() and have tested with copy_date=True and False. 


Any help or advice is appreciated!