"Cannot read property '0' of null" error when trying to open survey in web browser

6172
18
Jump to solution
03-06-2019 02:46 PM
ChristinaHoddinott1
Occasional Contributor

I just published a survey from Connect and when I tried to open it in my web browser this is what I get. Everything seemed to be working fine in Connect, so I don't know why this would happen. Anybody know? Attached is my xls form.

Edited to add that the survey works just fine when accessed from the app. It just doesn't work in the web browser.

Tags (1)
0 Kudos
18 Replies
ChelseaRozek
MVP Regular Contributor

You might be able to try appending the version on the end of the URL to see if it works in older versions in case it's been published in the latest:

https://survey123.arcgis.com/share/IDHERE?version=3.6 broke mine

https://survey123.arcgis.com/share/IDHERE?version=3.3 works

?version=latest is the intended use of the parameter

0 Kudos
JoeBryant1
Occasional Contributor III

Thank you, Chelsea. I am now seeing the exact same behavior as you: Adding '...?version=3.3' to the URL prevents the error when submitting the form in a browser. Using the latest version (3.6) results in "Failed to submit - Cannot set property 'z' of null". I will take James' advice and submit a Support Ticket.

FYI: Our form is not old; it was developed in the last few months. In Settings>Version it was created using 3.6. I don't have the option to check 3.3 as the version.

The form failing to initialize error we were having was due to unsupported field names in the lookup table csv stored in our Survey123 Connect media folder. And the GUID not being passed to the feature layer upon submission was due to not using the bind::esri:fieldType of 'null' in the temporary calculate row, before passing the correctly formatted GUID to our relationship key field.

AlexanderCottone
New Contributor II

Is there another work around for this? I have tried clearing my cache and I am still getting this error.

MiraEl_Koussa
New Contributor II

Im getting the same error when  I try to open the survey in a browser.. 

0 Kudos
AlexanderCottone
New Contributor II

Mira, 

I figured out that the style formatting was what was causing this error for me. Survey123 did not like that I used the shortened hexcode #444 instead of the full #444444 code.  Once I fixed that, the survey was able to  be accessed just fine. I would definitely go over your styles and see if that has anything to do with it.

0 Kudos
MiraEl_Koussa
New Contributor II

Dear Alexander, 

thank you for your fast reply... 

Actually, I did not change anything with the style ...

0 Kudos
DeonLengton
Esri Contributor

From our tests it seems that editing an existing record in the Survey123 Browser doesnt work when there is a repeat in the survey. Is this currently not supported James Tedrick‌ ?

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Deon,

In particular, forms with values in the bind::Esri:Parameters (often the case for editing with repeats) are not yet supported in the web form.

ahargreaves_FW
Occasional Contributor III

Hi @JamesTedrick as additional info I'm using version 3.15 but was getting the Error: Initializing form... Cannot read properties of null (reading '0') error when attempting to access a survey via the browser. Removing a repeat resolved this....

ahargreaves_FW_0-1663872881151.png

 

 

0 Kudos