<?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 Re: item.dependent_to 'total' is non-zero, but 'list' is empty in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/item-dependent-to-total-is-non-zero-but-list-is/m-p/1096538#M6608</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also having the same issue. Was this ever resolved?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rebecca&lt;/P&gt;</description>
    <pubDate>Wed, 08 Sep 2021 21:10:24 GMT</pubDate>
    <dc:creator>RebeccaBasquez1</dc:creator>
    <dc:date>2021-09-08T21:10:24Z</dc:date>
    <item>
      <title>item.dependent_to 'total' is non-zero, but 'list' is empty</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/item-dependent-to-total-is-non-zero-but-list-is/m-p/856896#M4042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building a Jupyter notebook to help us QC before deleting Portal items. These pages (&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/managing-your-content/" title="https://developers.arcgis.com/python/guide/managing-your-content/" rel="nofollow noopener noreferrer" target="_blank"&gt;Managing your content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;; &lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000021183" title="https://support.esri.com/en/technical-article/000021183" rel="nofollow noopener noreferrer" target="_blank"&gt;How To: Find dependencies in Portal for ArcGIS using ArcGIS API for Python&lt;/A&gt;&amp;nbsp;) provide the basics and it seems pretty straightforward. However, when I use item.dependent_to on a map layer I know is used in multiple webmaps and apps (e.g. our 'Boundaries' layer), I only get a count of items, not their IDs in the 'list' item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code in the notebook (note that 'source' is the gis connected to in code not shown):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 13px;"&gt;item = source.content.get('5055********') #Boundaries map layer, for demo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 13px;"&gt;print(item.title)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 13px;"&gt;if (item.dependent_to()['total'] == 0):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 13px;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;print("This item has nothing dependent upon it.")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 13px;"&gt;elif (item.dependent_to()['total'] &amp;gt; 0):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 13px;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;print("This item is a dependency of these items:\n{}".format(item.dependent_to()))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Boundaries This item is a dependency of these items: {'total': 7, 'start': 1, 'num': 7, 'nextStart': -1, 'list': []}&lt;/SPAN&gt;

&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;When I use the "dependent_upon" method for a webmap, the list results &lt;EM&gt;are&lt;/EM&gt; populated:&lt;/SPAN&gt;
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;Transmission Basic Web Map This item is dependent upon these items: {'total': 2, 'start': 1, 'num': 2, 'nextStart': -1, 'list': &lt;/SPAN&gt;
&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;[{'dependencyType': 'id', 'id': 'd9157****'}, &lt;/SPAN&gt;
&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;{'dependencyType': 'url', 'url': 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer'}]}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;What I would like is for the 'list' results from 'dependent_to' to also be populated. Does anyone know why that isn't happening, or how to make that happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that we are using ArcGIS Enterprise and not AGOL, currently on 10.6.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/item-dependent-to-total-is-non-zero-but-list-is/m-p/856896#M4042</guid>
      <dc:creator>ChugachElectric</dc:creator>
      <dc:date>2021-12-12T10:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: item.dependent_to 'total' is non-zero, but 'list' is empty</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/item-dependent-to-total-is-non-zero-but-list-is/m-p/856897#M4043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having the same issue here. Anyone know if there is a way to use the dependent_to() method (or any other) to determine which web maps or apps a particular hosted feature service is used in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 16:19:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/item-dependent-to-total-is-non-zero-but-list-is/m-p/856897#M4043</guid>
      <dc:creator>EricAnderson_DHS</dc:creator>
      <dc:date>2020-06-04T16:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: item.dependent_to 'total' is non-zero, but 'list' is empty</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/item-dependent-to-total-is-non-zero-but-list-is/m-p/1096538#M6608</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also having the same issue. Was this ever resolved?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rebecca&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 21:10:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/item-dependent-to-total-is-non-zero-but-list-is/m-p/1096538#M6608</guid>
      <dc:creator>RebeccaBasquez1</dc:creator>
      <dc:date>2021-09-08T21:10:24Z</dc:date>
    </item>
  </channel>
</rss>

