Select to view content in your preferred language

survey123 web app - FormLogicError: Weird args

279
8
Wednesday
GiorgioGhezzi
Emerging Contributor

Hi,
I have configured and published a survey using Survey123 Connect in an ArcGIS Enterprise environment. The survey includes a repeat and uses the inbox mode.

When using the app, everything works fine, but when I open the survey from the web (https://survey123.arcgis.com/), I get the error shown in the attached screenshot—both when I try to open the survey and when I try to edit a record.

What is this type of error caused by? Is there a mistake in the logic or syntax of the XLSForm? Could it be related to the use of repeats and/or the inbox? Or are there other possible causes?

Thanks!

0 Kudos
8 Replies
CodyPatterson
MVP Regular Contributor

Hey @GiorgioGhezzi 

Would you be able to attach the XLS forum? It may be an issue with the formatting as you've suggested, from the screenshot it may be a misplaced comma or similar.

Cody

0 Kudos
GiorgioGhezzi
Emerging Contributor

Thank you @CodyPatterson 
attached is the xlsform that feeds the survey on which I find the error indicated

0 Kudos
DeonLengton
Esri Contributor

When looking at your design file I notice this:

selected(${quartiere},quartiere) and selected(${ordine_scuola},ordine)

You forgot to put quotations around the text... I think this could be causing the issue.

0 Kudos
Neal-Kittelson
Frequent Contributor

It has something to do with your scuola choice list from line 44.  Your "scuola" list has a bunch of special characters (/,.,',(,)) etc in it, not sure if that has anything to do with it, but if you delete everything in that list from line 397 down, your form published without the error, if you add those back in the error returns, not sure what the issue is with that portion of the list, but it is something in there that is braking it.

NealKittelson_0-1749655123305.png

the syntax for the choice filter appears to be correct.

0 Kudos
Neal-Kittelson
Frequent Contributor

To narrow it further has something to do with the filter "Ostia" in the "quartiere" column in the scuola list.

0 Kudos
Neal-Kittelson
Frequent Contributor

to narrow it further  remove the default of "Ostia" from this question.

NealKittelson_0-1749658508917.png

I have no idea why that is causing the issue, but if you have a default or a calculation it throws the error, but without out them it works in the web app.

0 Kudos
GiorgioGhezzi
Emerging Contributor

Hi @Neal-Kittelson and thank you for your help!

I tried removing the default value from line 7 as you suggested, and indeed, this way I no longer get the error message when launching the survey from the web.

However, the error still appears when I try (still from the web) to edit a record.

0 Kudos
Neal-Kittelson
Frequent Contributor

There is still something off with that list, no matter what I did I couldn't get it to populate on the web app. My best suggestion is to simplify your form a lot (i.e. without any choice filters), publish it make sure everything works, and the start building back in complexity publishing periodically to test on the web app.   I don't speak Italian and I don't know if Italian keywords are the same as English keywords but cleaning those up was suggested by @DougBrowning in a previous post: https://community.esri.com/t5/arcgis-survey123-questions/form-logic-error-uploading-from-connect-to-...

Good luck!

0 Kudos