Select to view content in your preferred language

clone_items yields error 'Failed to create Feature Service ..: {\'code\': 500, \'message\': "Field \'creationdate\'...

124
1
3 weeks ago
WhitneyWeber
Frequent Contributor
Attempting to clone a feature layer, which I have successfully done with the same following code:
hosted_flyr = source.content.get("7ce9bd0c827d41b29c7b3173478a8af3")
cloned_flyr = target.content.clone_items(items=[hosted_flyr])

fails with the following error:
'Failed to create Feature Service ...: {\'code\': 500, \'message\': "Field \'creationdate\' cannot be deleted because it is used for editor tracking.", \'details\': []}', <Item title:"..." type:Feature Layer Collection owner:...>

 

I have enabled editing, export, and syncing (as shown below), and still get the same error:

WhitneyWeber_0-1733157608021.png

Can anyone provide insight into why this is failing and how to resolve it?

 

Tags (1)
0 Kudos
1 Reply
JakeSkinner
Esri Esteemed Contributor

@WhitneyWeber in the following Migrate Content tools is a Copy Hosted Feature Services tool.  Try this tool and see if it works.

0 Kudos