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
Cloning feature layer item from one ArcGIS Online account to another ArcGIS Online account fails with error:
arcgis._impl.common._clone._ItemCreateException: ('Failed to create Feature Service 16.2.2e. Asmenų, ikiteisminiu tyrimu pripažintų nukentėjusiais nuo prekybos žmonėmis priverstinėms vedyboms (LT): Could not locate the Item: None', None)
To Reproduce
Steps to reproduce the behavior:
source_content:ContentManager=source_gis.contentsource_item=source_content.get("2ff85137a9684a3bb6bdfc206cae2162")
target_content:ContentManager=target_gis.contentcloned_items:list[Item] = []
try:
cloned_items=target_content.clone_items([
source_item
],
search_existing_items=False,
copy_data=False,
)
forcloned_itemincloned_items:
assertcloned_item.url==source_item.url, f"Expected that cloned item still references {source_item.url} but got {cloned_item.url}"except:
logger.warning(f"Failed clone {source_item.itemid}", exc_info=True)
POST https://REDACTED.maps.arcgis.com/sharing/rest/content/users/REDACTED/addItem HTTP/1.1
REDACTED
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="f"
json
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="async"
false
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="title"
16.2.2e. Asmenų, ikiteisminiu tyrimu pripažintų nukentėjusiais nuo prekybos žmonėmis priverstinėms vedyboms (LT)
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="type"
Feature Service
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="description"
<div><span style='font-size:small;'>LT</span><span style='color:rgb(0, 104, 157);'><font size='2'><b><span style='color:rgb(0, 104, 157);'><br /></span></b></font></span></div><span style='color:rgb(0, 104, 157);'><font size='2'><b><span style='color:rgb(0, 104, 157);'>16 TIKSLAS. Skatinti taikias ir įtraukias visuomenes darniam vystymuisi, suteikti visiems galimybes reikalauti teisingumo ir kurti veiksmingas, atsakingas ir įtraukias institucijas visais lygiais</span>:</b></font></span><div><font size='2'>Veiksmingai įgyvendintos žmogaus teisės ir laisvės padeda užtikrinti demokratines vertybes, stiprina saugumą, demokratinę visuomenę, mažina nusikalstamumą ir diskriminaciją. Įgyvendinant šį tikslą būtina suteikti galimybę visiems apginti savo teises teisėtomis priemonėmis, užtikrinti skaidrią ir efektyvią institucijų veiklą. Lietuvoje siekiama kurti saugią gyvenamąją aplinką, stiprinti kovą su sunkiais ir organizuotų nusikalstamų grupių daromais nusikaltimais, užtikrinti kvalifikuotą pagalbą nukentėjusiesiems.</font><div><font size='2'><font color='#ff0000'><b><span style='color:rgb(0, 104, 157);'>16.2. Uždavinys:</span> </b></font>Panaikinti vaikų paniekinimą, išnaudojimą, neteisėtą prekybą ir visų formų smurtą prieš vaikus bei jų kankinimą.</font></div><div><font size='2'><font color='#ff0000'><b><span style='color:rgb(0, 104, 157);'>16.2.2. JT rodiklis:</span> </b></font>Prekybos žmonėmis aukų skaičius, tenkantis 100 tūkst. gyventojų, pagal lytį, amžių ir išnaudojimo formą</font></div><font size='2'><font size='2'><font size='2'><font color='#ff0000'><b><span style='color:rgb(0, 104, 157);'> Matavimo vienetai: </span></b></font></font>Asmenys</font><font size='2'><br /></font></font></div><div><font size='2'><font color='#ff0000' style='font-size:small;'><b><span style='color:rgb(0, 104, 157);'>Šaltinis:</span> </b></font><span style='font-size:small;'>Lietuvos Respublikos vidaus reikalų ministerija, </span>Valstybės duomenų agentūra</font></div><div><font size='2'><span style='font-size:small;'><br /></span></font></div><div><div><font size='2'>EN</font></div><div><span style='color:rgb(0, 104, 157);'><font size='2'><b>Goal 16. Promote </b></font></span><font color='#00689d' size='2'><b>peaceful and inclusive societies for sustainable development, provide access to justice for all and build effective, accountable and inclusive institutions at all levels:</b></font><div><font size='2'>Effectively implemented human rights and freedoms contribute to ensuring democratic values, strengthen security, democratic society, and reduce crime and discrimination. In order to achieve this goal, it is necessary to enable people to defend their rights by legal means, to ensure transparent and efficient performance of institutions. In Lithuania, it is aimed to create safe living environment, fight against serious and organized crimes and provide qualified assistance to victims.</font><div><font size='2'><font color='#ff0000'><b><span style='color:rgb(0, 104, 157);'>16.2. Goal:</span> </b></font>End abuse, exploitation, trafficking and all forms of violence against and torture of children.</font></div><div><font size='2'><font color='#ff0000'><b><span style='color:rgb(0, 104, 157);'>16.2.2. UN indicator:</span> </b></font>Number of victims of human trafficking per 100,000 population, by sex, age and form of exploitation.</font></div><font size='2'><font size='2'><font size='2'><font color='#ff0000'><b><span style='color:rgb(0, 104, 157);'> Units: </span></b></font></font></font></font><span style='font-size:small;'>Persons</span></div><div><font size='2'><font color='#ff0000'><b><span style='color:rgb(0, 104, 157);'>Source:</span> </b></font>Ministry of Interior, </font><font size='2'>State Data Agency</font></div></div></div>
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="snippet"
16.2.2e. Victims of human trafficking for forced marriage
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="tags"
SDG,SDG16,DVR,DVR16,rodiklis 16.2.2e.,rodiklis 16.2.2.,indicator 16.2.2e.,indicator 16.2.2.,target 16.2.,uždavinys 16.2.,tikslas 16,goal 16,16.2.2e.,16.2.2.,16.2.,16,LT,LT16,Fl,FL16
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="culture"
lt
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="accessInformation"
Vidaus reikalų ministerija, Valstybės duomenų agentūra
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="licenseInfo"
<a href='https://creativecommons.org/licenses/by/4.0/' rel='nofollow ugc'><img alt='Creative Commons License' src='https://i.creativecommons.org/l/by/4.0/88x31.png' style='border-width:0;' /></a><br />This work is licensed under a <a href='https://creativecommons.org/licenses/by/4.0/' rel='nofollow ugc'>Creative Commons Attribution 4.0 International License</a>.
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="typeKeywords"
ArcGIS Server,Data,Feature Access,Feature Service,Service,Singlelayer,source-2ff85137a9684a3bb6bdfc206cae2162
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="extent"
[[20.9542, 53.8967], [26.8356, 56.4504]]
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="url"
https://osp-sdg.stat.gov.lt/arcgis/rest/services/GOAL16/LT_16_2_2e/FeatureServer
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="text"
null
--b7d72677812d7812bcc692db225c8065
Content-Disposition: form-data; name="thumbnail"; filename="ago_downloaded.png"
Content-Type: image/png
PNG
..
--b7d72677812d7812bcc692db225c8065--
Expected cloned item appear in target and cloned item references same external feature service / feature layer.
Platform (please complete the following information):
OS: Linux
Browser: -
Python API Version: 2.4.0
Additional context
We are doing migration of ArcGIS Online content from one account to another. Cloning is being done in bulk. Some items causes the problems. They exists in source, but can't be cloned to target.
The text was updated successfully, but these errors were encountered:
Describe the bug
Cloning feature layer item from one ArcGIS Online account to another ArcGIS Online account fails with error:
To Reproduce
Steps to reproduce the behavior:
error:
I see request:
Which gives response:
Expected behavior
Expected cloned item appear in target and cloned item references same external feature service / feature layer.
Platform (please complete the following information):
Additional context
We are doing migration of ArcGIS Online content from one account to another. Cloning is being done in bulk. Some items causes the problems. They exists in source, but can't be cloned to target.
The text was updated successfully, but these errors were encountered: