Survey123 Stop Working with ArcGIS Enterprise (Portal for ArcGIS) Suddenly

822
3
Jump to solution
01-12-2023 08:49 AM
rsun_TQB
Occasional Contributor II

Dear All,

Have any of you experienced once in a while or suddenly recently?

Survey123 is suddenly not working with our Portal for ArcGIS.

I saw this on browser console:

msgport.js:70 {"notify":"init_tab"}
main-v3.16.173.js:2

ERROR Error: Uncaught (in promise): Object: {"error":{"name":"ArcGISRequestError","message":"404: Service Hosted/service_c0dba7c083bb41e89170100f34c18545/MapServer not found ","originalMessage":"Service Hosted/service_c0dba7c083bb41e89170100f34c18545/MapServer not found ","code":404,"response":{"error":{"code":404,"message":"Service Hosted/service_c0dba7c083bb41e89170100f34c18545/MapServer not found ","details":[]}},"url":"https://OURDOMAIN/server/rest/services/Hosted/service_c0dba7c083bb41e89170100f34c18545/FeatureServer....","options":{"httpMethod":"GET","authentication":{"username":"adm","token":"XXX","tokenExpires":"2023-01-12T16:48:50.311Z","portal":"https://OURDOMAIN/portal/sharing/rest","ssl":false,"tokenDuration":20160,"refreshTokenTTL":1440},"params":{},"headers":{}}}}
at P (main-v3.16.173.js:2:3540989)
at main-v3.16.173.js:2:3541663
at e.invokeTask (main-v3.16.173.js:2:3531335)
at Object.onInvokeTask (main-v3.16.173.js:2:243546)
at e.invokeTask (main-v3.16.173.js:2:3531256)
at t.runTask (main-v3.16.173.js:2:3526410)
at y (main-v3.16.173.js:2:3533675)
Ro @ main-v3.16.173.js:2

Enterprise Version 10.9.1

Survey Versions: 3.16

None of our surveys are working now...

0 Kudos
1 Solution

Accepted Solutions
rsun_TQB
Occasional Contributor II

Resolved:

Restrict cross-domain requests to ArcGIS Server—ArcGIS Server | Documentation for ArcGIS Enterprise

Step1: Change AllowedOrigins from * to *,https://survey123.arcgis.com

Step2: Reboot ArcGIS Server service

 

Step2: Reboot ArcGIS Server service

View solution in original post

3 Replies
ZacharySutherby
Esri Regular Contributor

Hello @rsun_TQB

Are you able to access the REST endpoint URL from the error message (https://yourdomain/server/rest/services/Hosted/service_c0dba7c083bb41e89170100f34c18545/FeatureServe...) in a separate tab? Are you able to add that service to the map viewer? 

Since the issue is happening for all your surveys I would suggest reaching out to Esri Technical Support to take a look into the issue. There may be a configuration issue with your ArcGIS Enterprise organization that's impacting Survey123. 

Thank you,
Zach
0 Kudos
rsun_TQB
Occasional Contributor II

Hi @ZacharySutherby ,

It sometimes gave me this message:

The survey is not accessible or does not exist.

Please ensure the signed in user (admin) can access this survey and that the survey link is correct.

 

I am already login on the portal as an admin.

 

Or it will keep loading forever, and I check the console got the log mentioned above.

 

I tried the rest URL, and get the following error:

{"error":{"code":498,"message":"Invalid Token","details":[]}}

 Something is wrong...and I have already contacted Esri Support, but they haven't been able to provide me solution just yet...

Thanks,

Reno

0 Kudos
rsun_TQB
Occasional Contributor II

Resolved:

Restrict cross-domain requests to ArcGIS Server—ArcGIS Server | Documentation for ArcGIS Enterprise

Step1: Change AllowedOrigins from * to *,https://survey123.arcgis.com

Step2: Reboot ArcGIS Server service

 

Step2: Reboot ArcGIS Server service