<?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 Hosted AGOL layer with stored credentials randomly fails to load in ArcGIS Enterprise 11.5 (Error 400 Bad Request) in Publishing and Managing Services Questions</title>
    <link>https://community.esri.com/t5/publishing-and-managing-services-questions/hosted-agol-layer-with-stored-credentials-randomly/m-p/1659594#M1465</link>
    <description>&lt;P&gt;After upgrading our environment from ArcGIS Enterprise 10.9.1 to 11.5, we started experiencing an intermittent issue when adding a &lt;STRONG&gt;secured hosted feature layer from ArcGIS Online&lt;/STRONG&gt; (not public) to our &lt;STRONG&gt;Portal for ArcGIS&lt;/STRONG&gt; as a new item with stored credentials.&lt;/P&gt;&lt;P&gt;The item is successfully created and visible as a &lt;EM&gt;Feature Layer&lt;/EM&gt; in Portal. However, when adding it to a web map or Experience Builder app, the layer sometimes loads correctly and sometimes fails to load with the following message: “The layer could not be added to the map.”&lt;/P&gt;&lt;P&gt;In the browser console we see:&lt;/P&gt;&lt;P&gt;Failed to load resource: the server responded with a status of 400 (Bad Request)&lt;BR /&gt;dojo.js:131 [esri.layers.support.fromPortalItem] #fromPortalItem() Failed to create layer from portal item&lt;/P&gt;&lt;P&gt;And in the &lt;STRONG&gt;Portal logs&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;URL '&lt;A href="https://services9.arcgis.com/.../FeatureServer/2?f=json&amp;amp;" target="_blank" rel="noopener"&gt;https://services9.arcgis.com/.../FeatureServer/2?f=json&amp;amp;&lt;/A&gt;' is not available: Unknown Host. services9.arcgis.com.&lt;/P&gt;&lt;P&gt;- DNS and firewall verified – services9.arcgis.com reachable from the server (HTTP 200 OK)&lt;/P&gt;&lt;P&gt;-&amp;nbsp;Updated allowedProxyHosts for Portal – OK&lt;/P&gt;&lt;P&gt;Is this a known issue in ArcGIS Enterprise 11.3 / 11.5 related to the new proxy behavior when accessing secured AGOL layers with stored credentials?&lt;BR /&gt;Is there any workaround (configuration, CSP, proxy, or token refresh settings) that ensures stable communication between Portal and AGOL for such items?&lt;/P&gt;&lt;P&gt;Thank you in advance for any guidance.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Oct 2025 13:06:02 GMT</pubDate>
    <dc:creator>sunshineags</dc:creator>
    <dc:date>2025-10-22T13:06:02Z</dc:date>
    <item>
      <title>Hosted AGOL layer with stored credentials randomly fails to load in ArcGIS Enterprise 11.5 (Error 400 Bad Request)</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/hosted-agol-layer-with-stored-credentials-randomly/m-p/1659594#M1465</link>
      <description>&lt;P&gt;After upgrading our environment from ArcGIS Enterprise 10.9.1 to 11.5, we started experiencing an intermittent issue when adding a &lt;STRONG&gt;secured hosted feature layer from ArcGIS Online&lt;/STRONG&gt; (not public) to our &lt;STRONG&gt;Portal for ArcGIS&lt;/STRONG&gt; as a new item with stored credentials.&lt;/P&gt;&lt;P&gt;The item is successfully created and visible as a &lt;EM&gt;Feature Layer&lt;/EM&gt; in Portal. However, when adding it to a web map or Experience Builder app, the layer sometimes loads correctly and sometimes fails to load with the following message: “The layer could not be added to the map.”&lt;/P&gt;&lt;P&gt;In the browser console we see:&lt;/P&gt;&lt;P&gt;Failed to load resource: the server responded with a status of 400 (Bad Request)&lt;BR /&gt;dojo.js:131 [esri.layers.support.fromPortalItem] #fromPortalItem() Failed to create layer from portal item&lt;/P&gt;&lt;P&gt;And in the &lt;STRONG&gt;Portal logs&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;URL '&lt;A href="https://services9.arcgis.com/.../FeatureServer/2?f=json&amp;amp;" target="_blank" rel="noopener"&gt;https://services9.arcgis.com/.../FeatureServer/2?f=json&amp;amp;&lt;/A&gt;' is not available: Unknown Host. services9.arcgis.com.&lt;/P&gt;&lt;P&gt;- DNS and firewall verified – services9.arcgis.com reachable from the server (HTTP 200 OK)&lt;/P&gt;&lt;P&gt;-&amp;nbsp;Updated allowedProxyHosts for Portal – OK&lt;/P&gt;&lt;P&gt;Is this a known issue in ArcGIS Enterprise 11.3 / 11.5 related to the new proxy behavior when accessing secured AGOL layers with stored credentials?&lt;BR /&gt;Is there any workaround (configuration, CSP, proxy, or token refresh settings) that ensures stable communication between Portal and AGOL for such items?&lt;/P&gt;&lt;P&gt;Thank you in advance for any guidance.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 13:06:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/hosted-agol-layer-with-stored-credentials-randomly/m-p/1659594#M1465</guid>
      <dc:creator>sunshineags</dc:creator>
      <dc:date>2025-10-22T13:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted AGOL layer with stored credentials randomly fails to load in ArcGIS Enterprise 11.5 (Error 400 Bad Request)</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/hosted-agol-layer-with-stored-credentials-randomly/m-p/1662291#M1479</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/500760"&gt;@sunshineags&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you verify *.arcgis.com is explicitly listed in allowedProxyHosts in Portal and&amp;nbsp;confirm that credentials are stored correctly in the Portal item&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 17:21:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/hosted-agol-layer-with-stored-credentials-randomly/m-p/1662291#M1479</guid>
      <dc:creator>Priya_Das</dc:creator>
      <dc:date>2025-10-30T17:21:58Z</dc:date>
    </item>
  </channel>
</rss>

