# Uploading a .csv file with a list field set to number

**URL:** <https://forum.bubble.io/t/uploading-a-csv-file-with-a-list-field-set-to-number/318341>\
**Category:** Questions\
**Created:** [April 18, 2024, 11:08am UTC](https://forum.bubble.io/t/uploading-a-csv-file-with-a-list-field-set-to-number/318341 "2024-04-18T11:08:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom.love1250](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@tom.love1250](https://forum.bubble.io/u/tom.love1250)\
**Post date:** [April 18, 2024, 11:08am UTC](https://forum.bubble.io/t/uploading-a-csv-file-with-a-list-field-set-to-number/318341/1 "2024-04-18T11:08:52Z")

</div>

Hello,

Running into an issue trying to load a .csv file whereas one of my data fields is set to a list of numbers. The problem is that some things have only one number in this data field while others have two numbers. Must a list of numbers contain more that one entry separated by comma?

 ![sample](https://us1.discourse-cdn.com/bubble/original/3X/c/1/c16dc1440bb6485264db22aad47818cc1806a53d.jpeg)

---

<div class="post-metadata">

**Author:** ![hergin](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hergin/32/199185_2.png) [@hergin](https://forum.bubble.io/u/hergin)\
**Post date:** [April 22, 2024, 11:02pm UTC](https://forum.bubble.io/t/uploading-a-csv-file-with-a-list-field-set-to-number/318341/2 "2024-04-22T23:02:14Z")

</div>

I have decided to give this a shot.

For the following data type:  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/b/d/bd055d5645d1c1e0638fe13976a24a0a2c6ab01b.png)

The data in the CSV (in Excel):  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/b/ab878a8833293b50f9d549f00c9c27c58da9363a.png)

The data in the text editor:  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/c/0cd52f968ab69f82475fe2c2870a782af696f26e.png)

And the bubble uploader:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/3/5311caf318c31f1477e4a7aa9706b4630cef8cb0.png)

It successfully uploads:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/b/0/b049dcff562b524e2b34dca1eefb7555e07d6e0b.png)

![image](https://us1.discourse-cdn.com/bubble/original/3X/2/6/267e044cd6a4d9fb84fc3e422f7369e1835e3deb.png)

So, there might be something wrong with your data format?

---

<div class="post-metadata">

**Author:** ![tom.love1250](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@tom.love1250](https://forum.bubble.io/u/tom.love1250)\
**Post date:** [April 24, 2024, 10:08am UTC](https://forum.bubble.io/t/uploading-a-csv-file-with-a-list-field-set-to-number/318341/3 "2024-04-24T10:08:56Z")

</div>

Hello,

Thanks for your efforts. I, too, can upload the list values directly via the backend. However, I want the user to upload the file via the UI using the workflow action… “Upload Data as CSV”. This procedure produces the error when any one of the list field items contains just one value. Seems kind of nuts to me since a list can sometimes contain just one value.

Here’s a pic of my workflow.

 ![frontend wf](https://us1.discourse-cdn.com/bubble/original/3X/1/5/15338ea431b7cde0c312df47c8439a43d1803ab9.jpeg)

---

<div class="post-metadata">

**Author:** ![tom.love1250](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@tom.love1250](https://forum.bubble.io/u/tom.love1250)\
**Post date:** [April 24, 2024, 10:35am UTC](https://forum.bubble.io/t/uploading-a-csv-file-with-a-list-field-set-to-number/318341/4 "2024-04-24T10:35:24Z")

</div>

So here’s what I have done. I added a workflow action to populate the list field after the import. Although this works, I now have to change my logic for other processes that rely on this data.

My question remains: why won’t the "upload data as CSV’ function in Bubble allow the user to upload a list field when, for some things, the list contains just one value?

 ![make changes to a list](https://us1.discourse-cdn.com/bubble/original/3X/a/8/a8c5b850bb3076350aefc20fa3dda1e281ebaf7d.jpeg)
