You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When calling remap_data I get an error.
Both the src and target IDs that are failing exist in the target portal.
Example w failed IDs: webmap[0].remap_data({'55e1aa9e034a41c5a7f05c6077ce14e5':'e6d17cef0f21497da6adccac3736bbec'})
To Reproduce
Since it only does it for some ids it's not straightforward to reproduce.
It works for some of the ids, but not for others. I have 5 entries in a dict. It remaps two then fails on the third, even though their is no visible difference between them.
error:
Traceback (mostrecentcalllast):
File"C:\Users\Me\code\source\repos\arcgis-cloner\src\cloners\content_mananger_cloner.py", line185, inrun_content_cloner_webmap_remmapperwebmap= [itemforitemincloned_itemsifitem.type=='Web Map'] # this is my code here buy rest is source code - this line is not the problem^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"c:\Users\Me\code\source\repos\arcgis-cloner\venv\Lib\site-packages\arcgis\gis\__init__.py", line17989, inremap_dataexpanded_dict[layer.url] =new_item.layers[i].url~~~~~~~~~~~~~~~^^^IndexError: listindexoutofrangeTraceback (mostrecentcalllast):
File"<string>", line1, in<module>File"c:\Users\Me\code\source\repos\arcgis-cloner\venv\Lib\site-packages\arcgis\gis\__init__.py", line17989, inremap_dataexpanded_dict[layer.url] =new_item.layers[i].url~~~~~~~~~~~~~~~^^^IndexError: listindexoutofrange
Platform (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Python API Version [e.g. 1.6.2] (you can get this by typing print(arcgis.__version__) 2.4.0
The text was updated successfully, but these errors were encountered:
Describe the bug
When calling remap_data I get an error.
Both the src and target IDs that are failing exist in the target portal.
Example w failed IDs:
webmap[0].remap_data({'55e1aa9e034a41c5a7f05c6077ce14e5':'e6d17cef0f21497da6adccac3736bbec'})
To Reproduce
Since it only does it for some ids it's not straightforward to reproduce.
It works for some of the ids, but not for others. I have 5 entries in a dict. It remaps two then fails on the third, even though their is no visible difference between them.
error:
Platform (please complete the following information):
1.6.2
] (you can get this by typingprint(arcgis.__version__)
2.4.0The text was updated successfully, but these errors were encountered: