I am cloning a service from AGOL to my portal using the code provided below but due to some reason all the field name of newly created hosted service are lower case is there any workaround for that?
from arcgis import gis
def clone_servcie():
source = gis.GIS('http://www.arcgis.com/')
target = gis.GIS('my portal url')
itemsIds = ['0fa1ed423c8c46f68e39a15dc7433f53']
created_items = []
for item_id in itemsIds:
item = source.content.get(item_id)
print('Cloning {0}'.format(item['title']))
created_items += target.content.clone_items([item],copy_data=False )
print(len(created_items))
clone_servcie()