External instance “localites” is empty

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

Yes, but you will need to send us the data collection url.

Is this it? => https://kobo.humanitarianresponse.info/#/forms/aBNptzRLUUv5yXDuaYH6mQ/landing

Maybe this support article should help you share your data collection link.

https://ee.humanitarianresponse.info/preview/ZCZ0NL8g

Could you perhaps suggest the kind of mistakes that could lead to a scenario where a preview is succesful (the choices appear) but the download fails?

Will have a look at it and get back to you if I find any.