<?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: Getting item usage returns None... sometimes in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-item-usage-returns-none-sometimes/m-p/1250550#M8292</link>
    <description>&lt;P&gt;This is a bug (BUG-000155249)&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 20:26:05 GMT</pubDate>
    <dc:creator>JoelRogers</dc:creator>
    <dc:date>2023-01-23T20:26:05Z</dc:date>
    <item>
      <title>Getting item usage returns None... sometimes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-item-usage-returns-none-sometimes/m-p/1248698#M8279</link>
      <description>&lt;P&gt;I recently encountered a bug returning the item usage for 30 and 60 days (BUG-000154587) and posted about it here (&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/the-usage-property-for-an-item-returns-none-or/m-p/1241968/highlight/true#M8174" target="_blank"&gt;Solved: The Usage property for an item returns None or Emp... - Esri Community&lt;/A&gt;). After switching my method to getting a dictionary response instead of a dataframe, I had success, and my script was working beautifully... for a week.&lt;/P&gt;&lt;P&gt;Then, I started encountering this issue last week where numerous items within ArcGIS Online started returning None. When I tried to troubleshoot, I couldn't reproduce the error when querying individual items separately. I was able to get the usage to return independently for several items that were returning None. I realized that the items that returned None were different each time I ran the main script. There was no pattern. Then I caught this when manually testing a random item:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoelRogers_0-1673966933790.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60559iD077FA663FD700EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoelRogers_0-1673966933790.png" alt="JoelRogers_0-1673966933790.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the top cell I did the usage query and it returned None. I waited 5 minutes and ran the same code in the bottom cell. I got a dictionary as expected. Why?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 14:53:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-item-usage-returns-none-sometimes/m-p/1248698#M8279</guid>
      <dc:creator>JoelRogers</dc:creator>
      <dc:date>2023-01-17T14:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting item usage returns None... sometimes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-item-usage-returns-none-sometimes/m-p/1250550#M8292</link>
      <description>&lt;P&gt;This is a bug (BUG-000155249)&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 20:26:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-item-usage-returns-none-sometimes/m-p/1250550#M8292</guid>
      <dc:creator>JoelRogers</dc:creator>
      <dc:date>2023-01-23T20:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting item usage returns None... sometimes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-item-usage-returns-none-sometimes/m-p/1258981#M8381</link>
      <description>&lt;P&gt;Any on details on the bug (is there a way to search for bug reports by id number)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found your original thread first with the dictionary workaround, but it sounds like there is no workaround for this bug since the behavior is not repeatable?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 17:56:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-item-usage-returns-none-sometimes/m-p/1258981#M8381</guid>
      <dc:creator>BrantSollis2</dc:creator>
      <dc:date>2023-02-16T17:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting item usage returns None... sometimes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-item-usage-returns-none-sometimes/m-p/1357753#M9383</link>
      <description>&lt;P&gt;Contact tech support. Always. Because Esri needs to track how many users and their size of their accounts, to prioritize the bug.&lt;/P&gt;&lt;P&gt;And you can then track the bug. Escalate it. And get email updates. I got one today to say the issue is 'non-reproducible' with the latest update, aka fixed.&lt;/P&gt;&lt;P&gt;Give it a go and if the issue still occurs let Esri know so they can review and potentially reopen the bug. It's working for me.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 22:45:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-item-usage-returns-none-sometimes/m-p/1357753#M9383</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-12-06T22:45:05Z</dc:date>
    </item>
  </channel>
</rss>

