Error when submitting data on web based Survey123

3265
25
02-15-2018 06:10 AM
GingerHarrington
New Contributor II

Hello.

I have created a survey in Survey123. I currently have it set as public and anyone can view it; however, if you complete the survey and try to submit it, you get the following error: "Failed to submit. - undefined". I tried making it public, not making it public but it doesn't seem to make any difference. It works great from the app. Any suggestions?

0 Kudos
25 Replies
JohnathanHasthorpe
Esri Regular Contributor

Hi Ginger - I assume you made your survey in Connect. If so - can you share your Survey xls and I'll take a look at it.

Thanks

John

0 Kudos
GingerHarrington
New Contributor II

Thank you for your assistance!

Ginger Harrington, R.E.H.S

Team Leader - Onsite

Hendricks County Health Department

Phone: (317) 718-6010

Fax: (317) 745-9218

www.co.hendricks.in.us<blocked::http://www.co.hendricks.in.us/>

0 Kudos
JohnathanHasthorpe
Esri Regular Contributor

I published it and it worked fine for me.

Can you test against: https://survey123.arcgis.com/share/f5521681d5684ce0bdaac429583c7c7b 

It may be a specific value that is being entered.

0 Kudos
GingerHarrington
New Contributor II

Ok that is frustrating! You did change it slightly and you reduced it.

Can I see your .xls sheet?

Is there a limit on the number of questions?

Ginger Harrington, R.E.H.S

Team Leader - Onsite

Hendricks County Health Department

Phone: (317) 718-6010

Fax: (317) 745-9218

www.co.hendricks.in.us<blocked::http://www.co.hendricks.in.us/>

0 Kudos
JohnathanHasthorpe
Esri Regular Contributor
0 Kudos
GingerHarrington
New Contributor II

Johnathan,

Thank you so much for all of your assistance! I really appreciate your help! I don’t mean to be difficult!!

I have two other survey’s published and they work fine.

If I shorten this survey it works.

I don’t understand.

Why is it working for you but not me?

Here is the link for my published survey:

https://survey123.arcgis.com/share/b00cf02d764b4d728cef928c0b7cf29f

(FYI-The first time you published it, the survey had been altered to show the groups on separate pages.)

Ginger Harrington, R.E.H.S

Team Leader - Onsite

Hendricks County Health Department

Phone: (317) 718-6010

Fax: (317) 745-9218

www.co.hendricks.in.us<blocked::http://www.co.hendricks.in.us/>

0 Kudos
JohnathanHasthorpe
Esri Regular Contributor

Hi Ginger

I tested you link and got the error.

Looking at the console we are getting the following:

{"addResults":[{"objectId":null,"globalId":"B28DFD12-C498-4317-8C0C-7E6DDAE78F3A","success":false,"error":{"code":1000,"description":"String or binary data would be truncated.\r\nThe statement has been terminated."}}],"updateResults":[],"deleteResults":[]}

So looks like we are submitting text longer that the field length for one or more questions. This should not be happening.

The reason it is working for me is a that I'm using 2.7 and the field lengths for select_one questions are set to 255. 

When you shorten it - what questions are you removing? It would be good to work out which question is causing the issue.

0 Kudos
GingerHarrington
New Contributor II

Thank You Johnathan!

Any chance of getting a beta version of 2.7?

Ginger Harrington, R.E.H.S

Team Leader - Onsite

Hendricks County Health Department

Phone: (317) 718-6010

Fax: (317) 745-9218

www.co.hendricks.in.us<blocked::http://www.co.hendricks.in.us/>

0 Kudos
GingerHarrington
New Contributor II

I found and downloaded 2.7.68. I republished the survey and it still doesn’t work. I still get the same error.

Ginger Harrington, R.E.H.S

Team Leader - Onsite

Hendricks County Health Department

Phone: (317) 718-6010

Fax: (317) 745-9218

www.co.hendricks.in.us<blocked::http://www.co.hendricks.in.us/>

0 Kudos