Select to view content in your preferred language

Failed to load web scene (Portal)

255
2
Jump to solution
08-07-2024 01:48 AM
emreaktas1
Regular Contributor

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.

4.30

 

emreaktas1_0-1723020517349.png

 

0 Kudos
1 Solution

Accepted Solutions
MatteoRizzi1
Esri Contributor

Hello @emreaktas1 

The error you mentioned is usually due to one of the following reasons:

  1. 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
  2. In the code, specify the Portal URL before accessing the items. Here is a snippet that accesses a webscene from an Enterprise Portal:

 

// 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"
  }
});​


I hope this can help you. Otherwise, please attach your code here (or send it to me privately) so I can investigate further. 

 

View solution in original post

0 Kudos
2 Replies
MatteoRizzi1
Esri Contributor

Hello @emreaktas1 

The error you mentioned is usually due to one of the following reasons:

  1. 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
  2. In the code, specify the Portal URL before accessing the items. Here is a snippet that accesses a webscene from an Enterprise Portal:

 

// 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"
  }
});​


I hope this can help you. Otherwise, please attach your code here (or send it to me privately) so I can investigate further. 

 

0 Kudos
emreaktas1
Regular Contributor
 

this solved the problem. thank you @MatteoRizzi1 

esriConfig.portalUrl =

0 Kudos