Hi,
I'm using the process outlined here to try and clone a survey from AGOL to an enterprise portal.
Everything works fine up until the line where I actually clone the items:
# Identify the folder associated with the survey
fldr = next((f for f in full_folder if f['id'] == survey_folder), 0)
#List all the items within that folder to be cloned later on
fldr_items = usr.items(folder=fldr)
# Create a new folder with the same name as the source folder to clone the contents to
target.content.create_folder(folder=fldr['title'])
# Clone items to the new folder
cloned_items = target.content.clone_items(items=fldr_items, folder=fldr['title'])
This gives me an error
_ItemCreateException: ('Failed to create Feature Service EIIF Monitoring Tool V6: {\'code\': 500, \'message\': "The submitted field \'creationdate\' is not available in the layer \'0\' of the service \'Hosted/service_3053a\'.", \'details\': []}', <Item title:"service_3053a" type:Feature Layer Collection owner:myusername>)
The source survey has a field called 'CreationDate' that Survey123 added itself. I don't know why the clone method is looking for a field called 'creationdate'.
![HanliePetoors_0-1736328834768.png HanliePetoors_0-1736328834768.png](https://community.esri.com/t5/image/serverpage/image-id/122936iD3FF1DC80B053B94/image-size/medium?v=v2&px=400)
Does someone know how to resolve this error?
Thanks
Hanlie