Select to view content in your preferred language

Embed Widget fails to load if links are to a different portal than the ExB is built in

110
2
Monday
DougBrowning
MVP Esteemed Contributor

We are seeing that if we build our ExB in AGOL but have links to data in our portal ExB gets confused a lot.

Specifically now we have an issue where our AGOL ExB uses an embed widget - in that embed widget we have a link to a portal resource via AttachementManager.

I see this in dev tools Failed to get item info via app portal url. ArcGISRequestError: CONT_0001: Item does not exist or is inaccessible.

If we make the ExB in Portal this embed widget works just fine.  But we need to use AGOL to get the latest features we need.

Anyone seen this or know a way around it?

I tried adding ?portalUrl= to the end with no luck.

Note we have also seen this with the Analysis widget at times.  It goes into a loop trying to get to the portal and then Chrome starts blocking multiple popups as it will just keep making popups to infinity.

My guess is ExB was not tested to have portal links inside of an AGOL ExB.  We had the same issues with ArcGIS for Excel but they were able to fix it.

Can we get this fixed?

thanks a lot

2 Replies
TonghuiMing
Esri Regular Contributor

@DougBrowning 

ExB Embed widgets have specific authentication URL parameters if they need extra authentication. Is this able to help you with your case?

https://doc.arcgis.com/en/experience-builder/latest/configure-widgets/embed-widget.htm#ESRI_SECTION1... 

0 Kudos
DougBrowning
MVP Esteemed Contributor

Thanks a lot @TonghuiMing  I think that is what I was looking for but it is still failing on me and looping the token auth.

The embed is a simple html page that is run off a SOE in ArcServer.  The link actually comes from the data.  So I tried {fieldname}  + "&arcgis-auth-portal=https://myportal.mydomain.gov/portal"  But still looping.

Then I tried just a static URL to see and same thing it loops to the point the mouse flashes.  Just endless calls in dev tools.

Is this correct?  I tried & and ?

https://myportal.mydomain.gov/arcgisfed/rest/services/AIM/Natl_AIM_WebAccessibleFolder/MapServer/ext...

This links works in its own window but not in the Embed widget.

The ExB this is inside is AGOL so its https://experience.arcgis.com/builder/?id=610d89a733e74ae58262d1f234523452435

It seems to keep trying to use the AGOL token to get into the portal link still.

Thanks for any insight.  Its the last thing we are trying to get to work.  This worked fine in WAB and it works fine if the ExB is in our Portal also.  It gets confused then ExB is AGOL and the embed is portal.

0 Kudos