<?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 Adding arcgis server layers by id with stored credentials gives error in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/adding-arcgis-server-layers-by-id-with-stored/m-p/1278532#M51453</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67964iAEF0D2E15AB3DCB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I'm getting this error when trying to add individual /FeatureServer/5 id of the layers to a web map in the new map viewer.&lt;/P&gt;&lt;P&gt;to get some basics out of the way -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Yes the layer works - you can add it via the classic viewer just fine. This only happens in the new viewer.&lt;/P&gt;&lt;P&gt;2. The layer comes from an arcgis enterprise deployment - and we add it to AGO while enabling storing the credentials.&lt;/P&gt;&lt;P&gt;The difference between the new and old map viewer is that the new map viewer makes some extra requests to a "checkUrl" service.After that - the requests to the service do not include the token so they fail, probably leading to the error above:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GreggRoemhildt2_0-1681418229122.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67968iF589F32934CE98FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GreggRoemhildt2_0-1681418229122.png" alt="GreggRoemhildt2_0-1681418229122.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2023 20:37:15 GMT</pubDate>
    <dc:creator>GreggRoemhildt2</dc:creator>
    <dc:date>2023-04-13T20:37:15Z</dc:date>
    <item>
      <title>Adding arcgis server layers by id with stored credentials gives error</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/adding-arcgis-server-layers-by-id-with-stored/m-p/1278532#M51453</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67964iAEF0D2E15AB3DCB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I'm getting this error when trying to add individual /FeatureServer/5 id of the layers to a web map in the new map viewer.&lt;/P&gt;&lt;P&gt;to get some basics out of the way -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Yes the layer works - you can add it via the classic viewer just fine. This only happens in the new viewer.&lt;/P&gt;&lt;P&gt;2. The layer comes from an arcgis enterprise deployment - and we add it to AGO while enabling storing the credentials.&lt;/P&gt;&lt;P&gt;The difference between the new and old map viewer is that the new map viewer makes some extra requests to a "checkUrl" service.After that - the requests to the service do not include the token so they fail, probably leading to the error above:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GreggRoemhildt2_0-1681418229122.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67968iF589F32934CE98FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GreggRoemhildt2_0-1681418229122.png" alt="GreggRoemhildt2_0-1681418229122.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 20:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/adding-arcgis-server-layers-by-id-with-stored/m-p/1278532#M51453</guid>
      <dc:creator>GreggRoemhildt2</dc:creator>
      <dc:date>2023-04-13T20:37:15Z</dc:date>
    </item>
  </channel>
</rss>

