<?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 Querying restricted FeatureLayer in v 1.8.1 returns JSON decode error (BUG) in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/querying-restricted-featurelayer-in-v-1-8-1/m-p/1001717#M5207</link>
    <description>&lt;P&gt;This error / bug does not occur in version 1.7.0.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To reproduce:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import server
from arcgis.features import FeatureLayer
gis = server.Server(serverAdminEndpoint, username=username, password=password, verify_cert=False)
fl = FeatureLayer(restrictedFeatureLayerUrl, gis=gis)
features = fl.query()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last line generates a JSON Decode error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried various parameters in the fl.query (e.g., as_df, outFields, returnGeometry, etc. etc.) and nothing seems to work.&amp;nbsp; This code was working as 1.7.0, and when I downgraded by arcgis version to 1.7.0 on the same environment that had been generating the error, the code worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 13:52:30 GMT</pubDate>
    <dc:creator>Jay_Gregory</dc:creator>
    <dc:date>2020-11-16T13:52:30Z</dc:date>
    <item>
      <title>Querying restricted FeatureLayer in v 1.8.1 returns JSON decode error (BUG)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/querying-restricted-featurelayer-in-v-1-8-1/m-p/1001717#M5207</link>
      <description>&lt;P&gt;This error / bug does not occur in version 1.7.0.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To reproduce:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import server
from arcgis.features import FeatureLayer
gis = server.Server(serverAdminEndpoint, username=username, password=password, verify_cert=False)
fl = FeatureLayer(restrictedFeatureLayerUrl, gis=gis)
features = fl.query()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last line generates a JSON Decode error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried various parameters in the fl.query (e.g., as_df, outFields, returnGeometry, etc. etc.) and nothing seems to work.&amp;nbsp; This code was working as 1.7.0, and when I downgraded by arcgis version to 1.7.0 on the same environment that had been generating the error, the code worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 13:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/querying-restricted-featurelayer-in-v-1-8-1/m-p/1001717#M5207</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2020-11-16T13:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Querying restricted FeatureLayer in v 1.8.1 returns JSON decode error (BUG)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/querying-restricted-featurelayer-in-v-1-8-1/m-p/1001998#M5211</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/202029"&gt;@Jay_Gregory&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I tested the code in 1.8.2 and it's working fine. I can recommend to upgrade to ArcGIS API for Python 1.8.2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import server
from arcgis.features import FeatureLayer

gis = server.Server("server url/hosting/admin", username="username", password="password", verify_cert=False)

fl = FeatureLayer("your_ent_admin_profile", gis=gis)
features = fl.query(where='1=1', out_fields='location, rating',)
features&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;FeatureSet&amp;gt; 7 features&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;features.sdf&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MehdiPira1_0-1605574851099.png" style="width: 493px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/272iB858E525E3F5A32F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MehdiPira1_0-1605574851099.png" alt="MehdiPira1_0-1605574851099.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 01:04:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/querying-restricted-featurelayer-in-v-1-8-1/m-p/1001998#M5211</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2020-11-17T01:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Querying restricted FeatureLayer in v 1.8.1 returns JSON decode error (BUG)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/querying-restricted-featurelayer-in-v-1-8-1/m-p/1002120#M5214</link>
      <description>&lt;P&gt;Thanks - I've tested with a different service on a different ArcGIS Enterprise and this seems to be being caused by a different issue altogether, perhaps how the Server is setup, since it is not federated with Portal.&amp;nbsp; Testing with a different service worked, but upgrading to 1.8.2 and testing with the original service still gave the same error.&amp;nbsp; Unclear why 1.7.0 doesn't give this error, but will continue digging.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 13:26:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/querying-restricted-featurelayer-in-v-1-8-1/m-p/1002120#M5214</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2020-11-17T13:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Querying restricted FeatureLayer in v 1.8.1 returns JSON decode error (BUG)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/querying-restricted-featurelayer-in-v-1-8-1/m-p/1002371#M5215</link>
      <description>&lt;P&gt;Not a problem, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/202029"&gt;@Jay_Gregory&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 00:05:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/querying-restricted-featurelayer-in-v-1-8-1/m-p/1002371#M5215</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2020-11-18T00:05:17Z</dc:date>
    </item>
  </channel>
</rss>

