<?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: Loading feature layer from Portal for query not working in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-feature-layer-from-portal-for-query-not/m-p/1608646#M87014</link>
    <description>&lt;P&gt;If you can share a simplified reproducible test-app on some place like Codepen, that would make it a lot easier to diagnose. Also, the guide page in the query and filter tutorial should offer some good background information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/query-filter/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/query-filter/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2025 18:41:43 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2025-04-23T18:41:43Z</dc:date>
    <item>
      <title>Loading feature layer from Portal for query not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-feature-layer-from-portal-for-query-not/m-p/1608643#M87012</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to do a simple query on a feature layer from our Portal in my web application. I'm adding the data as a feature layer to do the query and I'm getting an error saying that the item does not exist or is inaccessible. The data are public so I shouldn't have to deal with OAuth or the user logging in. I tried using the portal id route:&lt;/P&gt;&lt;P&gt;const layer = new FeatureLayer({&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;portalItem: {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: "*****************************"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;outFields: ["*"]&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;and the url route:&lt;/P&gt;&lt;P&gt;var layer = new FeatureLayer("https://**********************************************/MapServer/0");&lt;/P&gt;&lt;P&gt;but neither seem to work. Any help would be appreciated...&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 18:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-feature-layer-from-portal-for-query-not/m-p/1608643#M87012</guid>
      <dc:creator>tad</dc:creator>
      <dc:date>2025-04-23T18:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Loading feature layer from Portal for query not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-feature-layer-from-portal-for-query-not/m-p/1608646#M87014</link>
      <description>&lt;P&gt;If you can share a simplified reproducible test-app on some place like Codepen, that would make it a lot easier to diagnose. Also, the guide page in the query and filter tutorial should offer some good background information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/query-filter/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/query-filter/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 18:41:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-feature-layer-from-portal-for-query-not/m-p/1608646#M87014</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2025-04-23T18:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Loading feature layer from Portal for query not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-feature-layer-from-portal-for-query-not/m-p/1608658#M87016</link>
      <description>&lt;P&gt;Not really simplified much, but here is a link to a CodePen. You have to click on Search-&amp;gt;Water Right By File and click on the search button.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 19:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-feature-layer-from-portal-for-query-not/m-p/1608658#M87016</guid>
      <dc:creator>tad</dc:creator>
      <dc:date>2025-04-23T19:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Loading feature layer from Portal for query not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-feature-layer-from-portal-for-query-not/m-p/1608659#M87017</link>
      <description>&lt;P&gt;&lt;A href="https://codepen.io/tad-larsen-the-builder/pen/KwwagjL" target="_blank"&gt;https://codepen.io/tad-larsen-the-builder/pen/KwwagjL&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 19:01:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-feature-layer-from-portal-for-query-not/m-p/1608659#M87017</guid>
      <dc:creator>tad</dc:creator>
      <dc:date>2025-04-23T19:01:07Z</dc:date>
    </item>
  </channel>
</rss>

