<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error when cloning feature layer with relationships in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-cloning-feature-layer-with/m-p/1141358#M7096</link>
    <description>&lt;P&gt;Does anyone having issue when cloning &lt;STRONG&gt;Feature Service with Relationships&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;I was trying to clone a Feature Service that created by Survey123 Connect which contains a couple of Relationships with Tables.&lt;/P&gt;&lt;P&gt;And I keep getting the error showing &lt;STRONG&gt;list index out of range&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;'Failed to create Feature Service xxxxx: list index out of range', &amp;lt;Item title:"xxxxx" type:Feature Layer Collection owner:username&amp;gt;&lt;/P&gt;&lt;P&gt;I used the same&amp;nbsp;&lt;STRONG&gt;clone_item&lt;/STRONG&gt; tool for all the other content such as web apps, web maps and they all work well. Just wondering if this a bugs or the limitation of that tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 07 Feb 2022 20:47:37 GMT</pubDate>
    <dc:creator>Jack_Lim</dc:creator>
    <dc:date>2022-02-07T20:47:37Z</dc:date>
    <item>
      <title>Error when cloning feature layer with relationships</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-cloning-feature-layer-with/m-p/1141358#M7096</link>
      <description>&lt;P&gt;Does anyone having issue when cloning &lt;STRONG&gt;Feature Service with Relationships&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;I was trying to clone a Feature Service that created by Survey123 Connect which contains a couple of Relationships with Tables.&lt;/P&gt;&lt;P&gt;And I keep getting the error showing &lt;STRONG&gt;list index out of range&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;'Failed to create Feature Service xxxxx: list index out of range', &amp;lt;Item title:"xxxxx" type:Feature Layer Collection owner:username&amp;gt;&lt;/P&gt;&lt;P&gt;I used the same&amp;nbsp;&lt;STRONG&gt;clone_item&lt;/STRONG&gt; tool for all the other content such as web apps, web maps and they all work well. Just wondering if this a bugs or the limitation of that tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 20:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-cloning-feature-layer-with/m-p/1141358#M7096</guid>
      <dc:creator>Jack_Lim</dc:creator>
      <dc:date>2022-02-07T20:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error when cloning feature layer with relationships</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-cloning-feature-layer-with/m-p/1141453#M7098</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/424928"&gt;@Jack_Lim&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This shows that you are not pointing to the right feature service with the right index value.&lt;/P&gt;&lt;P&gt;I recommend first list all the feature services to find the right index of that feature service you are after, then run the code.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 01:22:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-cloning-feature-layer-with/m-p/1141453#M7098</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2022-02-08T01:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error when cloning feature layer with relationships</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-cloning-feature-layer-with/m-p/1390100#M9714</link>
      <description>&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;Have you found a solution to this problem?&amp;nbsp; I too am trying to clone hosted feature services and some behave differently than others.&amp;nbsp; I get the list index out of range issue and an authorization error even though I am admin.&amp;nbsp; It really files like you have to have a complete understanding of feature services in general or try to tackle a small subset of well-behaved ones versus all of them when using the clone_items method.&lt;/P&gt;&lt;P&gt;Also, I was not passing in an invalid index either.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 01:08:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-cloning-feature-layer-with/m-p/1390100#M9714</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2024-03-04T01:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error when cloning feature layer with relationships</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-cloning-feature-layer-with/m-p/1555072#M10845</link>
      <description>&lt;P&gt;Hi Nathan,&lt;/P&gt;&lt;P&gt;Unfortunately, based on ESRI's github, the clone_item tool has been archived and no more update since April, 2018. I end up&amp;nbsp;&lt;SPAN&gt;the list index out of range issue of my case as the data structure changes between new and old ArcGIS Enterprise version. I spent times tracing the source code of the clone_item tool and found that the list index on 1 Portal starting with 0 while the other Portal starting from 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To deal with this, I'll suggest download the feature service with all its related tables/layers/attachments as well as their relationship classes as a GDB and republish them to the other Portal manually. Unless, you would like to modify the source code of the clone_item tool which is time consuming.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below is the link to the github page of the clone_item tool.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/ago-clone-items/blob/master/clone_items.py" target="_blank"&gt;https://github.com/Esri/ago-clone-items/blob/master/clone_items.py&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 14:44:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-cloning-feature-layer-with/m-p/1555072#M10845</guid>
      <dc:creator>Jack_Lim</dc:creator>
      <dc:date>2024-11-04T14:44:39Z</dc:date>
    </item>
  </channel>
</rss>

