Hello,
I have a complex form that is used for field data collection. There is a team of about 70 users. 3 of those users are experiencing problems when sending a report. The error message is the same for all 3 users. I researched this error and it seems to be a text question with an int return, or something like that. I checked over the xls and can't find a text question with an int field type, or an int question with a text field type. But why are there only 3 users are being affected by this, and not all field staff? Also, those 3 users can send other reports without any issue. All 3 of them have a record stuck in the Outbox with this error message.
It is a large form, so maybe I missed something in the xls, I have reviewed multiple times. The most recent update was to the instance_name. I used concat when constructing the statement. Could this instance_name update cause this error? The error references the instance_name. Here is the instance_name statement:
concat(${Review_Approval}, " || ", ${ECI_ResubmissionReview}, " || ", concat('CaseNo: ', ${Case_Number}, " || ", concat('ECI: ' , ${Lead_ECI_Name}, " || ", ${Incident_ST_Address}, ", ", ${City_State_Zip}, " || ", concat('CD: ', ${CouncilDistrict}, " || ", concat('OpsDate: ', format-date(${Operation_Date}, '%m-%d-%Y')))))) |
Thank you for any advice/help on this!
LisaG
Okay, there are a few things here:
Unfortunately, I wasn't able to recreate the issue. My form submitted successfully:
Worth asking, but is your Connect up to date? Current version is 3.19.116. If not, reinstall Connect from the Microsoft Store (this version will auto-update).
Hi,
Thank you for the detailed response. I will follow your advice and update my Connect version and the xls sheet. I will report back if I can get it to work. Thank you/Merci!
Hello,
I read through your list, and I did the same thing you had indicated in your message. I corrected all the alias names to be the same as the field name. I updated the default for the field Review_Approval to lower case 'pending'. I also updated my Connect version to 3.19 I just published the form and tried to send one of the stuck records in the Outbox. Nothing changed in the 2 tablets with the stuck Outbox records. The only thing I did not update was the xls sheet. I will have to research to find a way to update a working xls sheet. I did try and change the style, under the settings tab, to dynamic-grid. It made Survey123 Connect freeze up when I tried to save that change. So I am back where I was, with 3 field users still having a stuck record in their Outbox with the 'arthimetic error'. I really need some help here. Thank you.
The newer Connect apps can update XLSX for you. Tools > Update XLSForm template
Is it just the old forms not working, or do new submissions not work either?
If new submissions work properly and it's just the surveys stuck in the Field App giving you trouble, I'd lean towards data recovery now. If neither new nor old surveys are sending, we will have to look at other solutions.
Honestly, it seems odd that it isn't working since my local copy appeared to function as intended. A potential solution could be to start removing content until it does work and see if you can narrow down the culprit that way. You can do this either in Connect by stripping out content, or in the Field App by clearing fields (though I'd recommend making a copy of the *.sqlite file before clearing fields in the Field App, assuming you actually need that data).
More info on recovering surveys:
I tend to use DB Browser for SQLite for modifying S123 database files. SQLiteStudio also works well. Depending on what you want to do, you may not need either.
Hi,
New submissions do work, even for the 2 tablets with stuck Outbox records. Those 2 field staff can send up reports without a problem. They still have the stuck records in their Outbox, so yes just these surveys have issues. I have signed out/in for the Survey123 app, downloaded the newest update to the form. I did this in one of the tablets that has a stuck record and nothing changed. My next step is copy the sqlite and the MySurveyAttachments folders and try and use Survey123 Desktop to upload those records. Thank you for the links on recovering surveys, I will keep at this until I can get those stuck records to send up.
This is actually good news!
Yes, I'd move on to attempting to recover the data with the desktop app, as you mentioned.
What data type is the 'Case_Number' field? I'm thinking that if you're storing values i that field as an integer, (esriFieldTypeInteger) the value for your particular case is larger than the amount the datatype can store.
According to this thread, the maximum number esriFIeldTypeInteger can store is 2,147,483,647.
Hi Raul,
the Case_Number field is field type string, Length 500 bind type is string and it is a question type of text