Select to view content in your preferred language

Portal User Information Undefined Sometimes in Developer Edition 1.14

6821
23
09-12-2024 10:46 AM
JeffreyThompson2
MVP Frequent Contributor

I am using Developer Edition 1.14 with ArcGIS Enterprise 10.9.1 with SSO authentication. My Experience Builder application will sometimes load in a state where certain features are unavailable. I believe this is caused by an error in how the 10.X version of ArcGIS Enterprise handles SSO authentication because of issues seen in previous versions of Experience Builder and the errors I am dealing with.

This issue was originally discovered in a custom widget that accessed the props.user attribute to apply some user based customization to my application. Sometimes the site would load as expected, other times the props.user attribute would be undefined resulting in the widget crashing. It would often take multiple reloads for the error to clear itself and the site to load correctly. The most reliable way for triggering this error appears to be making some connection to the ArcGIS Enterprise Portal then allowing it to go stale for about an hour and then refreshing the application. The most reliable way for clearing the error is to first visit the Portal homepage and then loading the application. This same code worked reliably in Experience Builder 1.12.

After wrapping the offending code in an if statement, so it would not crash the whole application. I discovered additional issues related to this error.

  • The OOTB Add Data Widget could not access any information from the Enterprise Portal. It could still access ArcGIS Online.
  • Using code based on this post, I am adding layers as Experience Builder datasources. When not in this error state, this allows me to use the Select Widget and Data Actions. But when this error state occurs, these features are unavailable.

Is this a known bug? Has it been resolved in 1.15? Is there a known fix or work-around?

GIS Developer
City of Arlington, Texas
0 Kudos
23 Replies
JeffreyThompson2
MVP Frequent Contributor

We are using Integrated Windows Authentication.

GIS Developer
City of Arlington, Texas
0 Kudos
BenFerguson
Occasional Contributor

For me, 1.17 didn't fix my issue.  We are using LDAP for single sign-on to Portal.  It works occasionally, but a refresh will come up empty.

BenFerguson_0-1744210085430.png

 

0 Kudos
JunshanLiu
Esri Contributor

Thanks for your feedback, we'll try to fix it in the next release.

0 Kudos
SJehle3
New Contributor

Here's a link to the bug for this particular issue:

https://support.esri.com/en-us/bug/the-add-data-widget-in-arcgis-experience-builder-develo-bug-00017...

There are more widgets affected than just the add data widget, but this was the only one included on the bug report. We have since migrated some apps to version 1.17 in the hopes it would fix the issue, however as Ben mentioned, it did not fix the issue.

0 Kudos