# Xlsform with select\_one\_from\_file states.csv is not working

**URL:** <https://forum.getodk.org/t/xlsform-with-select-one-from-file-states-csv-is-not-working/56030>\
**Category:** Support\
**Tags:** odk-xlsform\
**Created:** [July 31, 2025, 5:51pm UTC](https://forum.getodk.org/t/xlsform-with-select-one-from-file-states-csv-is-not-working/56030 "2025-07-31T17:51:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiv\_sms](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/shiv_sms/32/2419_2.png) [@shiv\_sms](https://forum.getodk.org/u/shiv_sms)\
**Post date:** [July 31, 2025, 5:51pm UTC](https://forum.getodk.org/t/xlsform-with-select-one-from-file-states-csv-is-not-working/56030/1 "2025-07-31T17:51:15Z")

</div>

I have created a test xlsform with select\_one\_from\_file states,csv. I have created states.csv with name and label columns too. the form is successfully compiled at [https://getodk.org/xlsform/](https://getodk.org/xlsform/).

But when i try to upload the form with the csv file as indicated in the screen sheets , it gives the following error.

 ![form_error](https://getodk.b-cdn.net/uploads/default/original/3X/3/b/3bc6c1a1bf1b75fb92c9379fae8523c8f0a64618.jpeg)  
 ![form_upload](https://getodk.b-cdn.net/uploads/default/original/3X/3/6/36a4dc8e2c84f47ec2990dc593d09a6020837b83.jpeg)  
[select\_state.xlsx](https://forum.getodk.org/uploads/short-url/oo4YDCeiVDt3pY8P42Gx9IUn7HQ.xlsx) (8.7 KB)  
[select\_state.xml](https://forum.getodk.org/uploads/short-url/66v68T8R7Fq6Guxg1K574VVCm8v.xml) (928 Bytes)  
[states.csv](https://forum.getodk.org/uploads/short-url/eHm7Q6PdWlGiLoMYwV1I5vjmmB1.csv) (140 Bytes)

---

<div class="post-metadata">

**Author:** ![mathieubossaert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/mathieubossaert/32/6131_2.png) [@mathieubossaert](https://forum.getodk.org/u/mathieubossaert)\
**Post date:** [July 31, 2025, 8:13pm UTC](https://forum.getodk.org/t/xlsform-with-select-one-from-file-states-csv-is-not-working/56030/2 "2025-07-31T20:13:03Z")

</div>

Hi @shiv_sms ,

I'm afraid that select\_one\_from\_file was introduced after [aggregate has reached end of life](https://forum.getodk.org/t/aggregate-is-no-longer-being-updated/33742) so it can't understand your form definition.

[Select\_one from csv file support in ODK Collect and Enketo - #3 by LN](https://forum.getodk.org/t/select-one-from-csv-file-support-in-odk-collect-and-enketo/25597/3)?

You should consider switching to [Central](https://docs.getodk.org/central-intro)

---

<div class="post-metadata">

**Author:** ![shiv\_sms](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/shiv_sms/32/2419_2.png) [@shiv\_sms](https://forum.getodk.org/u/shiv_sms)\
**Post date:** [August 1, 2025, 5:49am UTC](https://forum.getodk.org/t/xlsform-with-select-one-from-file-states-csv-is-not-working/56030/3 "2025-08-01T05:49:19Z")

</div>

Thank you Mat,

I had read thru the xlsform doc page which had given the ability to load values from csv's even for ODK aggregate in different ways. If you can help with that.  
The reason i am still working with Aggregate is for the time being is the lack of infrastructure to put up an instance of ODK central.  
Can you help me with a workaround for ODK Aggregate itself.  
Regards

---

<div class="post-metadata">

**Author:** ![mathieubossaert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/mathieubossaert/32/6131_2.png) [@mathieubossaert](https://forum.getodk.org/u/mathieubossaert)\
**Post date:** [August 1, 2025, 6:17am UTC](https://forum.getodk.org/t/xlsform-with-select-one-from-file-states-csv-is-not-working/56030/4 "2025-08-01T06:17:59Z")

</div>

Hi @shiv_sms ,

Yes, I should have given you a workaround 😉

You can check out this resource to learn how to use a CSV file for a selected question when you can't use Central :

> **[XLSForm Docs](https://xlsform.org/en/#dynamic-selects-from-pre-loaded-data)**
>
> This site will help you author XLSForms. XLSForm is a tool used to simplify the creation of forms. XLSForm will convert forms authored in Excel into XForms that can be used with a number of web or mobile platforms.

---

<div class="post-metadata">

**Author:** ![Francis\_Opiyo](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/francis_opiyo/32/13835_2.png) [@Francis\_Opiyo](https://forum.getodk.org/u/Francis_Opiyo)\
**Post date:** [August 6, 2025, 6:27am UTC](https://forum.getodk.org/t/xlsform-with-select-one-from-file-states-csv-is-not-working/56030/5 "2025-08-06T06:27:49Z")

</div>

Is a select\_one with a search functionality an option you want to consider for this use case?

---

<div class="post-metadata">

**Author:** ![shiv\_sms](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/shiv_sms/32/2419_2.png) [@shiv\_sms](https://forum.getodk.org/u/shiv_sms)\
**Post date:** [August 6, 2025, 7:58am UTC](https://forum.getodk.org/t/xlsform-with-select-one-from-file-states-csv-is-not-working/56030/6 "2025-08-06T07:58:40Z")

</div>

Yes , i would definitely want to explore that option too. Please do let me know, how to use this option to implement external csv files.

Regards  
Shiv

---

<div class="post-metadata">

**Author:** ![Francis\_Opiyo](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/francis_opiyo/32/13835_2.png) [@Francis\_Opiyo](https://forum.getodk.org/u/Francis_Opiyo)\
**Post date:** [August 6, 2025, 10:20am UTC](https://forum.getodk.org/t/xlsform-with-select-one-from-file-states-csv-is-not-working/56030/7 "2025-08-06T10:20:33Z")

</div>

Here you go. This is an ordinary select one but permitting searches from an external media file.  
[select\_state.xlsx](https://forum.getodk.org/uploads/short-url/JZPS7FfPmYZwrxBfbXd589z0of.xlsx) (10.0 KB)  
[states.csv](https://forum.getodk.org/uploads/short-url/eHm7Q6PdWlGiLoMYwV1I5vjmmB1.csv) (140 Bytes)
