Select to view content in your preferred language

Unable to clone Feature Layer - portal item

98
0
12-04-2024 02:43 AM
MahenderRajendran
Occasional Contributor

Hi All,

I am trying the clone a portal item (feature layer) and getting the following error:

'PropertyMap' instance has no attribute 'layers'

 code:

item = accGIS.content.get(itemid)

clone_results = prodGIS.content.clone_items([item], copy_data=False, search_existing_items=True, preserve_item_id=True)

The code works fine, if i copy a wms layer. But it does not work for Feature Layer

0 Kudos
0 Replies