Hi kobo,
I have an issue an error “An Error Occurred while execution doInBackground()” when i update form for my latest form, can you help it
and here’s my script :
Script New.xlsx (57.4 KB)
Hi kobo,
I have an issue an error “An Error Occurred while execution doInBackground()” when i update form for my latest form, can you help it
and here’s my script :
Script New.xlsx (57.4 KB)
Welcome back to the community, @arbani_pribowo! I’m pinging @Xiphware to see if it’s an issue on the app side. I did not find any issues validating your XLSForm through the online validator, nor did I have any issues uploading it to the server and opening the survey with Enketo
. I could also make a dummy submission using the web form.
Thanks @Kal_Lam @Xiphware for your support. I really appreciate it.
This issue occurred when I updated the form to the new version form, as the previous form had no issues. I would be grateful for your assistance in resolving this
@arbani_pribowo, if this is the case, could you kindly mark the changes and highlight them so that it would be easy for us to troubleshoot your issue? So the issue could be from a form design side rather then the app side.
Hi @Kal_Lam I’ve highlighted the new script updates in green for your reference. Additionally, and for a new form i just add some recording.
Script New Hightlight.xlsx (78.3 KB)
FWIW I’ve confirmed the crash you are seeing in the app, with both the new KoboCollect version (v2024.2.4), as well as the current ODK Collect app (also v2024.2.4) upon which ours is based. I was also able to reproduce it with our previous version of KoboCollect (v2024.1.3)! Although apps aren’t ever supposed to crash, there does appear something is markedly different in your new form version that the mobile apps don’t like…
As @Kal_Lam suggests, it would be good to see what changed in your form that might now be triggering this crash, thanks! I do note this is a pretty large form, on the order of 1000 questions; did it increase in size significantly relative to your previous version?
I note that you now have a select_one with a calculation; although this is not strictly impermissible, it is a bit odd… is this intended?
I tried reverting the form to the original version by replacing it with the initial version, but the issue still persists. The same errors continue to appear as shown in the screenshots above.
Is there any other possible solution? I also attempted to use a new form, but it’s now encountering the same issue and won’t work, even though it functions properly on the web version. any suggestion ?
Can you share your original form, the one that worked
hi @Xiphware here’s my old script
Script Old.xlsx (83.5 KB)
@arbani_pribowo, your form seems to have 736
questions:
Besides, your form also has a lot of complex expressions. So this is one reason why the app is not able to support the same:
But after some time, my device could load your survey form:
BTW, Enketo
had no issues loading the form:
So the solution for your issue is as follows:
Enketo
for data collection. But you may also need a device with higher RAM for this too.