<?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: Failed to load web scene (Portal) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-load-web-scene-portal/m-p/1515993#M85230</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/791349"&gt;@emreaktas1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The error you mentioned is usually due to one of the following reasons:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Sharing issues: the item (web scene) you're trying to access isn't shared with you or you are not logged in to the Portal you mentioned&lt;/LI&gt;&lt;LI&gt;In the code, specify the Portal URL before accessing the items. Here is a snippet that accesses a webscene from an Enterprise Portal:&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Set the hostname to the on-premise portal
esriConfig.portalUrl = "https://myHostName.domainName.com/webadaptorName";

const webScene = new WebScene({
  portalItem: {
    // Here your item id 
    id: "xxxxxxxxxxxxxxxxx"
  }
});​&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I hope this can help you. Otherwise, please attach your code here (or send it to me privately) so I can investigate further.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 09:47:00 GMT</pubDate>
    <dc:creator>MatteoRizzi1</dc:creator>
    <dc:date>2024-08-07T09:47:00Z</dc:date>
    <item>
      <title>Failed to load web scene (Portal)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-load-web-scene-portal/m-p/1515977#M85229</link>
      <description>&lt;P&gt;When I load a web scene from Arcgis Enterprise I get the error. When I load a web scene from Arcgis Online it does not give the same result and loads the map or scene.&lt;/P&gt;&lt;P&gt;4.30&lt;/P&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="emreaktas1_0-1723020517349.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111819iBDEED727BBF91101/image-size/medium?v=v2&amp;amp;px=400" role="button" title="emreaktas1_0-1723020517349.png" alt="emreaktas1_0-1723020517349.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 08:48:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-load-web-scene-portal/m-p/1515977#M85229</guid>
      <dc:creator>emreaktas1</dc:creator>
      <dc:date>2024-08-07T08:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to load web scene (Portal)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-load-web-scene-portal/m-p/1515993#M85230</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/791349"&gt;@emreaktas1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The error you mentioned is usually due to one of the following reasons:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Sharing issues: the item (web scene) you're trying to access isn't shared with you or you are not logged in to the Portal you mentioned&lt;/LI&gt;&lt;LI&gt;In the code, specify the Portal URL before accessing the items. Here is a snippet that accesses a webscene from an Enterprise Portal:&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Set the hostname to the on-premise portal
esriConfig.portalUrl = "https://myHostName.domainName.com/webadaptorName";

const webScene = new WebScene({
  portalItem: {
    // Here your item id 
    id: "xxxxxxxxxxxxxxxxx"
  }
});​&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I hope this can help you. Otherwise, please attach your code here (or send it to me privately) so I can investigate further.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 09:47:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-load-web-scene-portal/m-p/1515993#M85230</guid>
      <dc:creator>MatteoRizzi1</dc:creator>
      <dc:date>2024-08-07T09:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to load web scene (Portal)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-load-web-scene-portal/m-p/1516045#M85233</link>
      <description>&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;this solved the problem. thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/809564"&gt;@MatteoRizzi1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;esriConfig.portalUrl =&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 12:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-load-web-scene-portal/m-p/1516045#M85233</guid>
      <dc:creator>emreaktas1</dc:creator>
      <dc:date>2024-08-07T12:41:01Z</dc:date>
    </item>
  </channel>
</rss>

