I am collecting data using the ODK collect that is being sent to an Ona server. The data is being collected offline, and then uploaded to the server when I am connected to the internet. Sometimes the forms refuse to save completely, other times I get this error message: Error Code 1: (SQLITE_ERROR).
Note, the XLS forms were originally developed in Kobo toolbox, and later uploaded into Ona. I'm not sure if there is some issue using them in ODK collect because of that.
Screenshot of the error is attached.
it seems like an error I've seen in our (automated) reports but none of our users ever reported it so I'm really interested to find the cause. It would be great if you could help me answering some questions.
- Which ODK Collect version do you use?
- Does the problem occurred after installing a newer ODK Collect version maybe? if so please tell me what was the old version and the new one.
- Is it a problem only with one or more forms?
- Did you notice the same issue on more than one device?
- Could you attach your form?
BTW. welcome to the forum! Please introduce yourself here!
Hi @Grzesiek2010. Thank you. Here are responses:
- ODK Collect v1.22.4
- I have only used this version
- Problem is with two forms
- Happened on 3 different devices
RDS Questionnaire - TEST DRAFT 5_translations.xls (644 KB)
Screening Form - TEST DRAFT 3 (Languages).xls (84.5 KB)
Ok thanks for you answers! I have a couple more questions:
- You said
Sometimes the forms refuse to save completely, other times I get this error message: Error Code 1: (SQLITE_ERROR)
Does that mean it sometimes works fine? It's not like it's a fail every time?
- On what device and android version are you able to reproduce the issue?
- You said that you only used Collect v1.22.4 but have you ever used any ODK Collect fork on those devices, I mean apps that are based on ODK Collect like SurveyCTO or KoBoCollect.
- Could you plug your device (that affected one) via usb copy and share with me a file named
forms.db which should be on your sdcard in
Thanks. Here are the responses:
It has been inconsistent.
Galaxy Tab A SM-T350, Android version: 7.1.1
Prior to using ODK Collect, we were using KoboCollect. I should note that my theory for these errors is that the surveys were originally developed in Kobo Toolbox, and there were ID strings in the XLS forms that may have caused the error. I removed these ID strings from the forms and have not gotten the error message again. So I may have solved the issue, but am still interested in your expert opinion. Here are the updated forms:
RDS Questionnaire - TEST DRAFT 6.xls (617.5 KB) Screening Form - TEST DRAFT 4.xls (88 KB)
I downloaded the db files, but cannot upload them here. I get this error message from: Sorry, the file you are trying to upload is not authorized (authorized extensions: jpg, jpeg, png, gif, xls, xlsx, xml, zip, csv, txt, pdf, doc, docx, ppt, pptx, json, mp4).
Do you remember what version it was?
Please do that via email firstname.lastname@example.org
I will send the files by email
Just to clarify @Grzesiek2010 , I am no longer getting the error message or having trouble saving the forms. I think that the problem was fixed by my deletion of Kobo ID strings. But I'm happy to continue to provide more info, if it is helpful to you and the community.
Ok thanks, I received your email and there are three database files. They are from different devices right?
Yes, 3 different devices. I am working with a team of data collectors.
Apologies for the delay, I thought I already responded to this. The issue was on all 3 devices, and they were all using the same version. We have been collecting data for a couple of weeks, and have not had any issues anymore.
Ok, thanks. I'm going to spend some time and try to get to the bottom of the issue this month so I'll ask more questions if needed.