Survey123 - Receiving a lot of 401 Unauthorized errors

2539
13
02-28-2019 12:49 PM
Brian_Laws
Occasional Contributor

We have a survey (developed in Survey123 Connect) that writes data directly to a related table in our SDE enterprise database.  The application has  been working  for approximately a year.  Today,  one of our field crew stopped by our office as he was receiving this error when trying to submit a survey on his tablet:

Survey123 error 401 unauthorized from submitting a survey

Several of us tested the survey with our different accounts and devices, and received the same error.  A couple of weeks ago I made a change to this survey (added an additional choice to a question) and republished this survey.  Today was the first time our field worker had tried to use it.  Assuming this might be the cause of the issue I changed the survey back to the way it was (removed the new choice) and attempted to republish and then received this error:

Survey123 error 401 unauthorized from publishing a survey

I became curious and was wondering if I could replicate the creation of this survey from an existing feature service.  The attempt immediately returned  this error:

Survey123 error 401 unauthorized from creating a survey

My co-workers and I tried some other troubleshooting ideas and found  we can submit surveys that write to a service if it's hosted on ArcGIS Online, and we can create surveys from feature services that are hosted on ArcGIS Online.  I downloaded the Survey123ConnectClassic and Survey123Classic apps to see if the newer versions might be our issue. Using the same workflow,  I received  the same errors every step of the way.  We also looked at editing feature attributes directly in a web map on ArcGIS Online as well as in Collector and had no errors there.  We also were able to publish new services to our server from ArcMap with no errors as well.  It appears if we try to do anything with Survey123 where the application is accessing our SDE enterprise database on our Server site, we receive this 401 Unauthorized error.  We checked  the existing permissions on the table and related feature dataset and classes and all were set up as before when the application was working. 

 

My colleagues and I spent most of our day searching for causes and troubleshooting the issue. We had no success in finding a remedy for this error.  We are hoping the GeoNet community can provide help. Our enterprise SDE database, ArcGIS for Server and our webadaptor are all at version 10.4  We are using ArcMap 10.6 and Pro 2.3.1.  All our office personnel run Windows 10 and our field crews are using Windows 10 ruggedized tablets and our server setup uses ADFS.

0 Kudos
13 Replies
MariaAndreoudi
New Contributor III

Hi!

The newest version of survey 123 connect released on December 14 (version 3.13.251) would solve this problem but not in my case. I still get the same error message. I managed to find an older version of survey123 connect (version 3.11.123)  and I could finally republish my survey.

0 Kudos
Brian_Laws
Occasional Contributor

Hi Maria,

We did find that with the newest version of Survey123 Connect (3.13.251) that we are able to publish surveys to our Enterprise Portal again.  We just recently upgraded to Enterprise 10.9.1 so I don't know if that is required also to solve the 401 unauthorized error.

0 Kudos
MariaAndreoudi
New Contributor III

Thanks @Brian_Laws , it is god to know!

We are currently running Enterprise 10.8.1 but we are hoping to upgrade soon.

0 Kudos
FrankMancini
New Contributor III

Same issue @ Enterprise 10.6.1 with Windows IWA and Survey123 Connect v3.13.249. 

- Can publish new Survey forms without issues. 

- Republishing (overwriting) existing surveys fails with 401 Error. 

 

Updating Survey123 Connect to v3.13.251 resolved issue.

0 Kudos