Select to view content in your preferred language

Session timed out - users sporadically signed out in Survey123

198
3
2 weeks ago
ChristopherCounsell
MVP Regular Contributor

Hi,

Some users are signed out 0-5 times a day when submitting surveys.

The workflow is integrated with Field Maps (callback on submission).

There is no pulldata @ layer or editing existing values.

Logs on event occurence below. 

Anyone have any ideas? Latest version Connect and field app.

Suspecting it's tied to low/intermittent connectivity but thought all these defects were fixed...

<12>1 2025-05-27T01:46:17Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="default"] stale focus object 0x300e208f0 , doing manual update
<15>1 2025-05-27T01:46:17Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="qml" function="closePage" filename="AppPage.qml" line="314"] qml: backPage undefined
<15>1 2025-05-27T01:46:17Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="AppSettings" function="write" filename="AppSettings.qml" line="451"] AppSettings: Writing app settings - /var/mobile/Containers/Data/Application/96CDAC80-137D-403E-8CA2-xyzxyzxyzxyz/Documents/ArcGIS/AppStudio/Settings/1b899f24e9354a459a2ab2exxxxxxxxx.json
<12>1 2025-05-27T01:46:17Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="default"] stale focus object 0x300e94160 , doing manual update
<12>1 2025-05-27T01:46:21Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="default"] stale focus object 0x300e832e0 , doing manual update
<15>1 2025-05-27T01:46:21Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="qml" function="closePage" filename="AppPage.qml" line="314"] qml: backPage undefined
<12>1 2025-05-27T01:46:21Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="default" filename=""] <Unknown File>: QML QQuickAnchors: Binding loop detected for property "margins"
<12>1 2025-05-27T01:46:21Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="default" filename=""] <Unknown File>: QML QQuickAnchors: Binding loop detected for property "margins"
<15>1 2025-05-27T01:46:21Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="HomeViewTabs" function="updateVisibleCount" filename="HomeViewTabs.qml" line="86"] HomeViewTabs: visibleCount: 1
<12>1 2025-05-27T01:46:22Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="default"] stale focus object 0x300e5da20 , doing manual update
<15>1 2025-05-27T01:50:00Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="Portal" function="onStateChanged" filename="Portal.qml" line="455"] Portal: Application state changed: 2
<15>1 2025-05-27T01:50:01Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="Portal" function="onStateChanged" filename="Portal.qml" line="455"] Portal: Application state changed: 0
<15>1 2025-05-27T02:02:44Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="Portal" function="onStateChanged" filename="Portal.qml" line="455"] Portal: Application state changed: 2
<15>1 2025-05-27T02:02:45Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="Portal" function="onStateChanged" filename="Portal.qml" line="455"] Portal: Application state changed: 4
<15>1 2025-05-27T02:02:45Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="Portal" function="onRunningChanged" filename="Portal.qml" line="1000"] Portal: Token expiry timer disabled
<15>1 2025-05-27T02:02:45Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="Portal" function="onRunningChanged" filename="Portal.qml" line="998"] Portal: Token expiry timer will trigger in 11.9488 minutes
<15>1 2025-05-27T02:02:45Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="Portal" function="reset" filename="Portal.qml" line="1016"] Portal: Reset token expiry timer: Tue May 27 12:15:41 2025 GMT+1000 minutes: 11.9488
<15>1 2025-05-27T02:02:45Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="Portal" function="onStateChanged" filename="Portal.qml" line="455"] Portal: Application state changed: 2
<15>1 2025-05-27T02:02:47Z localhost ArcGISSurvey123 42515 - [AppStudio@11205 category="Portal" function="onStateChanged" filename="Portal.qml" line="455"] Portal: Application state changed: 0

 

0 Kudos
3 Replies
DougBrowning
MVP Esteemed Contributor

We have seen stuff like this at times.  Mostly field maps I think but could be similar.  Standard procedure now is we tell the crews to put the device in airplane mode and that seems to stop this.

ChristopherCounsell
MVP Regular Contributor

They're getting it in the middle of a large town with good connectivity. It's also used via a custom url integration with pop-ups in Field Maps which doesn't sign the users out.

I'm envisaging it's something like a survey submission triggering a token refresh; if it can't get it it'll sign the user out. I'd prefer the surveys to say in outbox and not trigger a token refresh and make sure the default token expiry is long. Not sure what options we have...

0 Kudos
ChristopherCounsell
MVP Regular Contributor

Here's another user:

https://community.esri.com/t5/arcgis-survey123-questions/login-credentials/td-p/1581148

@vijaybadugu 

@ZacharySutherby  can you please share any insight into how the tokens work for the survey123 field app?

  • Does it default to ArcGIS or OAuth tokens?
  • What's the default token expiry? 30min? 120min? 14 days?
  • What triggers a token expiry timer? Survey submission? 
  • Can we control this token expiry e.g. adjust expiry times or prevent token expiry triggers

It's causing a lot of headaches for our users using Survey123 with Field Maps custom URL schemes in both high and low connectivity environments.

They don't have an issue with Field Maps.

Cheers,

Chris

0 Kudos