Hello. We're using Experience Builder Developer Edition v1.19 (latest available version as of this post). For the Analysis Widget it is bringing up a login prompt for a tool that is shared publicly. The tool otherwise functions fine without logging in, but would cause much confusion to users if deployed as-is so we have left it out of our production "New Viewer" for the time being:
Is this a known bug that's being worked on? Is there otherwise a workaround for the issue?
This behavior has been present for several releases and is one of a small handful of remaining bugs and missing functionality preventing our organization from moving fully off of Web AppBuilder (where this issue is not present with the same web map and tool).
A live web application demonstrating the bug: https://maps.fayetteville-ar.gov/newviewer_alt/
The analysis tool in question that is shared publicly (and thus shouldn't be prompting a login): https://maps.fayetteville-ar.gov/portal/home/item.html?id=0c040c85f56247edb2118fa8fa307e11
Our (current) main WAB viewer where everything works as it should: https://maps.fayetteville-ar.gov/viewer
I am seeing these errors in the console log, are these items shared properly?
VM1196 init.js:5 [esri.layers.FeatureLayer] #load() Failed to load layer (title: 'Public Land Survey System - Township', id: '19be824764f-layer-339') {error: o}
i @ VM1196 init.js:5
_log @ VM1196 init.js:5
error @ VM1196 init.js:5
(anonymous) @ init.js:5Understand this error
VM1196 init.js:5 [esri.layers.FeatureLayer] #load() Failed to load layer (title: 'Public Land Survey System - Township', id: '19be82474e5-layer-172') {error: o}
VM1196 init.js:5 [esri.layers.FeatureLayer] #load() Failed to load layer (title: 'Natural Features - Shaded Relief (ft)', id: '19be82474d3-layer-152') {error: o}
i @ VM1196 init.js:5
_log @ VM1196 init.js:5
error @ VM1196 init.js:5
(anonymous) @ init.js:5Understand this error
VM1196 init.js:5 [esri.layers.FeatureLayer] #load() Failed to load layer (title: 'Natural Features - Shaded Relief (ft)', id: '19be8247642-layer-319') {error: o}
Interesting error messages. I think it may be referring to these sub layers in the map?
https://maps.fayetteville-ar.gov/server/rest/services/Land_Records/MapServer/34
https://maps.fayetteville-ar.gov/server/rest/services/Natural_Features/MapServer/6
Not sure why the widget would be trying to hit them as the analysis tool being used doesn't touch them, but the layers it says doesn't exist are, in fact, present. Everything in the map and tool being used is shared publicly. The standalone map opens fine in Portal, as well as the identical map used in WAB loads without prompting a login. Here is the web map being used:
https://maps.fayetteville-ar.gov/portal/home/item.html?id=46ac3a6201624738a961f1f3123d7d5b
Seeing that there appears to be a lot of artifacts with other layers it's for some reason trying to pull that no longer exist I also tried with a fresh web map (where everything is also shared publicly) and it still prompts the login:
https://maps.fayetteville-ar.gov/newviewer_alt/?webmap=e55e9541119b421aa23a4d289a7cc513