<?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: Token required in Notebook when querying a feature layer in ArcGIS Notebooks Questions</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-questions/token-required-in-notebook-when-querying-a-feature/m-p/1255880#M620</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/656551"&gt;@MaryEllenPerko&lt;/a&gt;&amp;nbsp; - no I decided to work around it for now. I setup the notebook to run on a schedule, pass the username/password to the notebook as parameters.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2023 20:24:24 GMT</pubDate>
    <dc:creator>EendrulatGH</dc:creator>
    <dc:date>2023-02-07T20:24:24Z</dc:date>
    <item>
      <title>Token required in Notebook when querying a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/token-required-in-notebook-when-querying-a-feature/m-p/1250546#M616</link>
      <description>&lt;P&gt;I have a notebook where i'm performing a simple query of a feature layer:&lt;/P&gt;&lt;P&gt;ago_item = gis.content.get("ITEM ID HERE")&lt;BR /&gt;itemFL = ago_item.layers[0]&lt;BR /&gt;itemResults = itemFL.query()&lt;/P&gt;&lt;P&gt;I frequently (but not always) get the error when executing:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;Exception&lt;/SPAN&gt;: Token Required
Token Required
(Error Code: 499)&lt;/PRE&gt;&lt;P&gt;I'm trying to understand why I get this error (though not consistently). I've tried various test cases :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Run on local jupyter notebook, accessing with same user account&amp;nbsp;&lt;STRONG&gt;(no error)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Change way I access 'gis' from &lt;U&gt;gis = GIS("home")&lt;/U&gt; to &lt;U&gt;gis = GIS ('orgname','username', password')&amp;nbsp;&amp;nbsp;&lt;/U&gt;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;(no error)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Shutdown/Restart kernel &lt;STRONG&gt;(still get error)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Anyone else experience this error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 20:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/token-required-in-notebook-when-querying-a-feature/m-p/1250546#M616</guid>
      <dc:creator>EendrulatGH</dc:creator>
      <dc:date>2023-01-23T20:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Token required in Notebook when querying a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/token-required-in-notebook-when-querying-a-feature/m-p/1255834#M619</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you had any luck with resolving this.&amp;nbsp; I am experiencing the same thing.&amp;nbsp; I can get the item then layer (confirmed with the layer url returned), but I get the token required error when I try to use the layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 18:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/token-required-in-notebook-when-querying-a-feature/m-p/1255834#M619</guid>
      <dc:creator>MaryEllenPerko</dc:creator>
      <dc:date>2023-02-07T18:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Token required in Notebook when querying a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/token-required-in-notebook-when-querying-a-feature/m-p/1255880#M620</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/656551"&gt;@MaryEllenPerko&lt;/a&gt;&amp;nbsp; - no I decided to work around it for now. I setup the notebook to run on a schedule, pass the username/password to the notebook as parameters.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 20:24:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/token-required-in-notebook-when-querying-a-feature/m-p/1255880#M620</guid>
      <dc:creator>EendrulatGH</dc:creator>
      <dc:date>2023-02-07T20:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Token required in Notebook when querying a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/token-required-in-notebook-when-querying-a-feature/m-p/1263659#M626</link>
      <description>&lt;P&gt;Hi.&amp;nbsp; Thanks for getting back to me.&amp;nbsp; Interestingly, I stopped receiving the error for about 2 weeks and this morning it came back.&amp;nbsp; I can't get anything done now. Just curious, is your account a named agol account or an enterprise account?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 18:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/token-required-in-notebook-when-querying-a-feature/m-p/1263659#M626</guid>
      <dc:creator>MaryEllenPerko</dc:creator>
      <dc:date>2023-03-02T18:37:21Z</dc:date>
    </item>
  </channel>
</rss>

