<?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: ItemGraph Nodes of NoneType Items: How do I identify these programmatically? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/itemgraph-nodes-of-nonetype-items-how-do-i/m-p/1709316#M11971</link>
    <description>&lt;P&gt;I don't think I have a solution to your problem -- but I'm doing something very similar for my organization! This &lt;A href="https://github.com/julia-surkis/AGOL-Data-Management/blob/main/AGOL%20Dependencies%20Monitoring%20(8).ipynb" target="_self"&gt;script&lt;/A&gt; has been successfully running for a couple weeks every night and is populating/updating a layer I use in the attached dashboard (we're also using the layer to track updates to meet the new accessibility requirements).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best of luck!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-06-17 102724.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/154085i1679893AE6E281C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-06-17 102724.png" alt="Screenshot 2026-06-17 102724.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2026 14:19:04 GMT</pubDate>
    <dc:creator>GIS_utahDEM</dc:creator>
    <dc:date>2026-06-23T14:19:04Z</dc:date>
    <item>
      <title>ItemGraph Nodes of NoneType Items: How do I identify these programmatically?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/itemgraph-nodes-of-nonetype-items-how-do-i/m-p/1709200#M11969</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;&lt;FONT color="#000000"&gt;I have successfully created an ItemGraph of my AGOL Organization.&amp;nbsp; It is updated nightly.&amp;nbsp;&lt;/FONT&gt; (Thanks to &lt;A title="Working with an Organization-Wide Dependency Graph" href="https://github.com/Esri/arcgis-python-api/blob/master/samples/03_org_administrators/org_wide_dependency_graph.ipynb" target="_blank" rel="noopener"&gt;this notebook&lt;/A&gt;, and &lt;A title="Item Graph Module: Create Dependency Graph Failing when creating graph for whole organization" href="https://community.esri.com/t5/arcgis-api-for-python-questions/item-graph-module-create-dependency-graph-failing/m-p/1638189" target="_blank" rel="noopener"&gt;community feedback&lt;/A&gt;.)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#000000"&gt;I have been trying to Navigate the resultant ItemGraph with varying degrees of success.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#000000"&gt;I also have a List of AGOL Item IDs from &lt;EM&gt;another&lt;/EM&gt; tool, that I was trying to use &lt;EM&gt;with&lt;/EM&gt; the ItemGraph to make more sense of the former.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#000000"&gt;&lt;U&gt;Given an ID from ListA&lt;/U&gt; (we'll call it &lt;STRONG&gt;ListA&lt;/STRONG&gt;), &lt;U&gt;Use the ItemGraph&lt;/U&gt; (let's call it &lt;STRONG&gt;org_graph&lt;/STRONG&gt;, b/c that's its name) to &lt;U&gt;Get information in a format more easy for me&lt;/U&gt; than the alphanumeric ID string:&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="4" color="#000000"&gt;for each ID in ListA:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a_Node=org_graph.get_node(ID)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a_Item=a_Node.item&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;item_title=a_Item.title&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;item_url=a_Item.homepage&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;print(f'{ID}&amp;nbsp; &amp;nbsp;{item_title}&amp;nbsp; &amp;nbsp;{item_url}')&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="4" color="#000000"&gt;And such a basic loop seemed to work okay, right up until it didn't.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#000000"&gt;I discovered &lt;STRONG&gt;IDs&lt;/STRONG&gt; that led to &lt;STRONG&gt;Nodes&lt;/STRONG&gt; that &lt;STRONG&gt;&lt;EM&gt;could not result&lt;/EM&gt;&lt;/STRONG&gt; in an &lt;STRONG&gt;Item&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="4" color="#000000"&gt;Adding a &lt;STRONG&gt;try/catch&lt;/STRONG&gt; pair into my loop allowed me to get results a bit more smoothly.&lt;BR /&gt;If &lt;STRONG&gt;a_Node.item&lt;/STRONG&gt; were to create an error, the &lt;STRONG&gt;ID&lt;/STRONG&gt; was added to &lt;STRONG&gt;a List called nonitems&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="4" color="#000000"&gt;Now, I can loop through the nonitems List to get a bit more information:&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="4" color="#000000"&gt;for each ID in nonitems:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a_Node=org_graph.get_node(ID)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a_type=type(a_Node)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a_link=f'&lt;A href="https://www.arcgis.com/home/item.html?id={ID}'" target="_blank" rel="noopener"&gt;https://www.arcgis.com/home/item.html?id={ID}'&lt;/A&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;print(f'{ID}&amp;nbsp; &amp;nbsp;{a_type}&amp;nbsp; &amp;nbsp;{a_link}')&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="4" color="#000000"&gt;Herein lies the problem for me...&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="4" color="#000000"&gt;Most of the Nodes are of type&amp;nbsp;&lt;STRONG&gt;&amp;lt;class 'NoneType'&amp;gt;&lt;/STRONG&gt;, though there is also a&amp;nbsp;&lt;STRONG&gt;&amp;lt;class 'arcgis.apps.itemgraph._item_graph.ItemNode'&amp;gt;.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="4" color="#000000"&gt;The latter resolves into a &lt;FONT color="#FF0000"&gt;&lt;EM&gt;"&lt;/EM&gt;&lt;/FONT&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;The item you requested cannot be found. The item may have been deleted or you may have entered an incorrect URL."&lt;/FONT&gt;&lt;/EM&gt; statement.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;FONT size="4" color="#000000"&gt;The NoneType Nodes are invariably real things!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="4" color="#000000"&gt;&lt;BR /&gt;I have to visit each hyperlink via mouse-click to find this out though...&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="4" color="#000000"&gt;CSV collection (from Survey123)&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4" color="#000000"&gt;Microsoft Excel (from Survey123)&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4" color="#000000"&gt;Data Pipeline&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4" color="#000000"&gt;Shapefile&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4" color="#000000"&gt;Web map&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4" color="#000000"&gt;Notebook&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4" color="#000000"&gt;Basemap&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4" color="#000000"&gt;etc.&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4" color="#000000"&gt;Do you know any Pythonic way to determine &lt;EM&gt;what&lt;/EM&gt; an ItemGraph Node might be, when the Notebook &amp;amp; GIS I'm using to interact with it thinks it is of &lt;FONT color="#FF0000"&gt;NoneType&lt;/FONT&gt;?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;FONT size="4"&gt;AttributeError: 'NoneType' object has no attribute 'get_data'&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2026 23:07:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/itemgraph-nodes-of-nonetype-items-how-do-i/m-p/1709200#M11969</guid>
      <dc:creator>ODWC_GIS</dc:creator>
      <dc:date>2026-06-22T23:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: ItemGraph Nodes of NoneType Items: How do I identify these programmatically?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/itemgraph-nodes-of-nonetype-items-how-do-i/m-p/1709316#M11971</link>
      <description>&lt;P&gt;I don't think I have a solution to your problem -- but I'm doing something very similar for my organization! This &lt;A href="https://github.com/julia-surkis/AGOL-Data-Management/blob/main/AGOL%20Dependencies%20Monitoring%20(8).ipynb" target="_self"&gt;script&lt;/A&gt; has been successfully running for a couple weeks every night and is populating/updating a layer I use in the attached dashboard (we're also using the layer to track updates to meet the new accessibility requirements).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best of luck!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-06-17 102724.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/154085i1679893AE6E281C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-06-17 102724.png" alt="Screenshot 2026-06-17 102724.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2026 14:19:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/itemgraph-nodes-of-nonetype-items-how-do-i/m-p/1709316#M11971</guid>
      <dc:creator>GIS_utahDEM</dc:creator>
      <dc:date>2026-06-23T14:19:04Z</dc:date>
    </item>
  </channel>
</rss>

