<?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: Dependencies: arcgis.gis.ItemDependency.to_dependencies not returning dependent items in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/dependencies-arcgis-gis-itemdependency-to/m-p/1588890#M11179</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10527"&gt;@JakeSkinner&lt;/a&gt;, that's really helpful.&amp;nbsp; There are quite a few variants of this tool kicking around (e.g. &lt;A href="https://community.esri.com/t5/arcgis-online-ideas/a-way-to-track-all-the-maps-a-layer-is-used-in/idi-p/1200757" target="_blank" rel="noopener"&gt;here&lt;/A&gt;) but I hadn't found your tool.&lt;/P&gt;&lt;P&gt;I got the tool to work, which is great, but I have high hopes that this functionality will be added to ArcGIS Online in the next release (February 2025) as suggested in the replies to &lt;A href="https://community.esri.com/t5/arcgis-online-ideas/a-way-to-track-all-the-maps-a-layer-is-used-in/idi-p/1200757" target="_blank" rel="noopener"&gt;this particular idea&lt;/A&gt;&amp;nbsp;(see page 2).&amp;nbsp; This idea was logged back in 2023, which suggests that has long been a need for this sort of functionality in the core product.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2025 10:43:21 GMT</pubDate>
    <dc:creator>MappyIan</dc:creator>
    <dc:date>2025-02-25T10:43:21Z</dc:date>
    <item>
      <title>Dependencies: arcgis.gis.ItemDependency.to_dependencies not returning dependent items</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/dependencies-arcgis-gis-itemdependency-to/m-p/1587524#M11169</link>
      <description>&lt;P&gt;Hi all, I'm trying to use ArcGIS Notebooks to view dependencies between items for some cleaning up in &lt;STRONG&gt;ArcGIS Online&lt;/STRONG&gt; (not Enterprise).&lt;/P&gt;&lt;P&gt;I found the to_dependencies property in the API reference:&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#arcgis.gis.ItemDependency.to_dependencies" target="_blank"&gt;https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#arcgis.gis.ItemDependency.to_dependencies&lt;/A&gt;, but it doesn't seem to return anything.&lt;/P&gt;&lt;PRE&gt;from arcgis.gis import GIS&lt;BR /&gt;import pandas as pd&lt;BR /&gt;gis = GIS("home")&lt;BR /&gt;item = gis.content.get('&lt;STRONG&gt;&amp;lt;itemid goes in here&amp;gt;'&lt;/STRONG&gt;)&lt;BR /&gt;&lt;BR /&gt;# Get dependencies&lt;BR /&gt;dependencies = item.dependencies&lt;BR /&gt;print(dependencies)&lt;BR /&gt;print(dependencies.properties)&lt;BR /&gt;print(dependencies.to_dependencies)&lt;/PRE&gt;&lt;P&gt;However, passing in the ID of a hosted feature layer that I know is used in multiple web maps and apps returns nothing:&lt;/P&gt;&lt;PRE&gt;&amp;lt;Dependencies for &lt;STRONG&gt;&amp;lt;item id is displayed here&amp;gt;&lt;/STRONG&gt;&amp;gt;
{
  "items": []
}
[]&lt;/PRE&gt;&lt;P&gt;If I pass in the ID of a Web Map that has multiple layers within it, I also get no dependencies:&lt;/P&gt;&lt;PRE&gt;&amp;lt;Dependencies for &lt;STRONG&gt;&amp;lt;item id is displayed here&amp;gt;&lt;/STRONG&gt;&amp;gt;
{
  "items": []
}
[]&lt;/PRE&gt;&lt;P&gt;I've seen in the documentation that the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;dependent_upon&lt;/FONT&gt; &lt;/STRONG&gt;and &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;dependent_to&lt;/FONT&gt; &lt;/STRONG&gt;methods only work in ArcGIS Enterprise, but there is nothing in the documentation that says that the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;to_dependencies&lt;/FONT&gt; &lt;/STRONG&gt;doesn't work in ArcGIS Online.&lt;/P&gt;&lt;P&gt;What am I missing here?&amp;nbsp; Is &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;to_dependencies&lt;/FONT&gt; &lt;/STRONG&gt;deprecated?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 16:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/dependencies-arcgis-gis-itemdependency-to/m-p/1587524#M11169</guid>
      <dc:creator>MappyIan</dc:creator>
      <dc:date>2025-02-20T16:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dependencies: arcgis.gis.ItemDependency.to_dependencies not returning dependent items</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/dependencies-arcgis-gis-itemdependency-to/m-p/1588505#M11178</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/476936"&gt;@MappyIan&lt;/a&gt;,&amp;nbsp;you can use the below tool to report an item's dependencies:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-enterprise-documents/report-arcgis-enterprise-arcgis-online-item/ta-p/907617" target="_blank"&gt;https://community.esri.com/t5/arcgis-enterprise-documents/report-arcgis-enterprise-arcgis-online-item/ta-p/907617&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 14:12:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/dependencies-arcgis-gis-itemdependency-to/m-p/1588505#M11178</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2025-02-24T14:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dependencies: arcgis.gis.ItemDependency.to_dependencies not returning dependent items</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/dependencies-arcgis-gis-itemdependency-to/m-p/1588890#M11179</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10527"&gt;@JakeSkinner&lt;/a&gt;, that's really helpful.&amp;nbsp; There are quite a few variants of this tool kicking around (e.g. &lt;A href="https://community.esri.com/t5/arcgis-online-ideas/a-way-to-track-all-the-maps-a-layer-is-used-in/idi-p/1200757" target="_blank" rel="noopener"&gt;here&lt;/A&gt;) but I hadn't found your tool.&lt;/P&gt;&lt;P&gt;I got the tool to work, which is great, but I have high hopes that this functionality will be added to ArcGIS Online in the next release (February 2025) as suggested in the replies to &lt;A href="https://community.esri.com/t5/arcgis-online-ideas/a-way-to-track-all-the-maps-a-layer-is-used-in/idi-p/1200757" target="_blank" rel="noopener"&gt;this particular idea&lt;/A&gt;&amp;nbsp;(see page 2).&amp;nbsp; This idea was logged back in 2023, which suggests that has long been a need for this sort of functionality in the core product.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 10:43:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/dependencies-arcgis-gis-itemdependency-to/m-p/1588890#M11179</guid>
      <dc:creator>MappyIan</dc:creator>
      <dc:date>2025-02-25T10:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dependencies: arcgis.gis.ItemDependency.to_dependencies not returning dependent items</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/dependencies-arcgis-gis-itemdependency-to/m-p/1652176#M11670</link>
      <description>&lt;P&gt;Came here looking for the reason I'm getting exactly the same output from the item.dependencies property as&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/476936"&gt;@MappyIan&lt;/a&gt;: just a bunch of empty lists for everything in my portal (where I know there are plenty of dependencies).&lt;/P&gt;&lt;P&gt;Looking through the toolbox now and it doesn't use the item dependencies property / ItemDependency object either, assuming because this simply doesn't work at the moment? (One wonders why the entries are still in the API reference, then?) Am I being too optimistic hoping that the reason it's not fixed is that this that dependency reporting is close to being implemented in a GUI in AGOL? &lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;In any case I'll probably implement the approach being taken in the toolbox; looks straightforward. Thanks for the solution&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10527"&gt;@JakeSkinner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit&lt;/STRONG&gt;: Poking around in the API Reference later in the day and I found the method .get_dependencies() (vs .dependencies property), and it IS returning stuff (where I expect it to return stuff). Still haven't done much with it but will report back later today or tomorrow if it works for what I (and OP) were trying to do.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 20:05:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/dependencies-arcgis-gis-itemdependency-to/m-p/1652176#M11670</guid>
      <dc:creator>AlderMaps</dc:creator>
      <dc:date>2025-09-22T20:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dependencies: arcgis.gis.ItemDependency.to_dependencies not returning dependent items</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/dependencies-arcgis-gis-itemdependency-to/m-p/1668439#M11792</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Did you ever manage to find further solution with the&amp;nbsp;&lt;SPAN&gt;.get_dependencies()? Would be interested in seeing some examples.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 13:58:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/dependencies-arcgis-gis-itemdependency-to/m-p/1668439#M11792</guid>
      <dc:creator>SuzyFer</dc:creator>
      <dc:date>2025-11-25T13:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dependencies: arcgis.gis.ItemDependency.to_dependencies not returning dependent items</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/dependencies-arcgis-gis-itemdependency-to/m-p/1668462#M11793</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/665001"&gt;@SuzyFer&lt;/a&gt;, I never got any further with this due to other priorities.&amp;nbsp; I was intending to revisit it at some point so if you have any examples&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/199227"&gt;@AlderMaps&lt;/a&gt;&amp;nbsp;I'd be interested to see them too.&lt;/P&gt;&lt;P&gt;After asking this question on here a colleague came across this &lt;A href="https://www.arcgis.com/apps/dashboards/37d7586b663c4f86bb6bb3c87e316ba6" target="_blank" rel="noopener"&gt;Dashboard&lt;/A&gt;, which is explained in this &lt;A href="https://www.linkedin.com/posts/mwudtke_arcgisonline-agol-dashboard-activity-7383873394531889154-5Q9D/" target="_blank" rel="noopener"&gt;LinkedIn post&lt;/A&gt;, and documented &lt;A href="https://github.com/AlderMaps/arcgis-api-python/blob/main/AGOL_Monitoring_Dependencies.ipynb" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&amp;nbsp; I note in the documentation the author of this Dashboard states the following about the get_dependencies method which is interesting:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P class=""&gt;&lt;SPAN&gt;This script also does&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;use the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#arcgis.gis.Item.get_dependencies" target="_blank" rel="noopener"&gt;get_dependencies method&lt;/A&gt;&lt;SPAN&gt;, also in the API reference. This method at least returns something, but it only returns items found&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;within that items own JSON&lt;/EM&gt;&lt;SPAN&gt;, or downstream items. I.e., it will return all the feature layers found in a given map, but not which apps are consuming that map, and not which maps are consuming a given feature service, etc. (the latter, I would argue, is the whole point of a dependencies tool).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;At some point I'm planning to implement the Dashboard linked above across our AGOL instances, at which point I'll have a look at the code and see how it's configured but there might be some useful stuff in there you can use.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 15:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/dependencies-arcgis-gis-itemdependency-to/m-p/1668462#M11793</guid>
      <dc:creator>MappyIan</dc:creator>
      <dc:date>2025-11-25T15:12:58Z</dc:date>
    </item>
  </channel>
</rss>

