External instance “localites” is empty

image
It’s the same message we get on all the phones when we try to download it, however the preview works fine

Were you able to get the blank survey form with my workaround?

I uploaded both csv files but have not been able to download a blank survey, is that the workaround you’re refering to?

Yes with the workaround I shared previously. Try using the exact files for testing.

What do you mean, the “exact” files?
I am only ever using two csv files (on the screenshot) on top of my questionnaire, both are uploaded on the kobo platform under “media”. this allowed for a succesful preview but not downloading the questionnaire on the phone app

@pauline.lietar, could you use the exact files as shared in this post:

This should help you guide on how to design your select_one_external questions using xlsform in KoBoToolbox.

Thank you. My files are set up like that. I believe this is why the preview is working. Do you think an error in my files could make for a functionnal preview but not for a download?
Perhaps i could send you my files in a private message?

Are you able to view them normally when collecting data through Enketo i.e. outside the Form Preview?

When i preview on ODK - XLSForm Online v2.x, it says both my csv files are empty.
=>

  • Error trying to parse XML model. Cannot read property ‘id’ of undefined
  • External instance “itemsets” is empty.
  • External instance “localites” is empty.

When I preview on the kobo platform, it works.

itemsets.csv (491 Bytes) localites.csv (491 Bytes) HSM_mai2021_questionnaire_résoudre pbm_preview fonctionnel_tous les labels.xlsx (67.7 KB)
Our issue is always at “0.2.e) Parmi les localités de cette zone de santé, pour laquelle connaissez vous le mieux la situation et les conditions de vie ?” line 61

Are you trying to cascade here?

I just followed the steps as listed on here Problem recognizing external choices command with today's system upgrade - #12 by Kal_Lam
Was I not meant to do that?

1 Like

Yes, if you have a long list of choices that you need to cascade. If you don’t have an option to cascade, you could use other approaches to use external data.

I only went for this option because I thought it would solve the issue where the choices for question 0.2.e) don’t appear. It seems to work as it appears on the kobo platform preview, but on the ODK online tester it still says both csv’s are empty, and it wont load on the phones.
Where do you reckon the error is?

The online validator should not be able to track this as you are not able to upload your external files there. So you will have to test it through your user account.

The preview on the kobo platform works. The downloading (and therefor testing) on the phone, does not. It says “failure” when trying to get a blank form.

Have you tried them with Enketo? Have you deployed your survey project after you uploaded your CSV file?


By trying with Enketo, do you mean this screenshot? I also tried on ODK - XLSForm Online v2.x which produced me an Enketo link but couldnt upload cvs files on there.
I have deployed the survey after uploading both csv files, it still gives me the right preview but i cant get it on the phone

I mean would you mind trying with KoBoToolbox’s web form?

Do you mean this? https://kobo.humanitarianresponse.info/
I have, it’s where the preview works