# Cannot upload CSV or JSONLines To Autotrain

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-upload-csv-or-jsonlines-to-autotrain%2F37260%3E%5C
**Category:** 🤗AutoTrain\
**Created:** [April 20, 2023, 4:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-upload-csv-or-jsonlines-to-autotrain%2F37260 "2023-04-20T16:47:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JN87](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@JN87](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJN87)%5C
**Post date:** [April 20, 2023, 4:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-upload-csv-or-jsonlines-to-autotrain%2F37260%2F1 "2023-04-20T16:47:32Z")

</div>

Ive tried for about 3 hours to upload training data to Huggingface Autotrain and i used this video - [Train tabular models automatically with Hugging Face AutoTrain - YouTube](https://www.youtube.com/watch?v=OH_e0wOkpZc&ab_channel=JulienSimon)

It is now irrelevant as the autotrain is looking for some format that doesnt exist.

I have tried uploading a CSV and JSONL formatted dataset and I get this error- Error type: ValidationError  
Details: Can’t split automatically: Invalid number of samples for label “10am EST”, “upcoming monday through Wednesday” in column ‘target’. Auto-splitting requires at least 2 samples for each label, but “10am EST”, “upcoming monday through Wednesday” only has 1 samples

Every target column has at least 2 examples in them, which is not mentioned in the above video. I have formatted that column about 6 different ways to no avail:

Please someone tell me, what needs to be done here? I have tried this target table formats:

- [tuesday at 5, tuesday 5pm]
- tuesday at 5, tuesday 5pm
- [“tuesday at 5”, “tuesday 5pm”]
- “tuesday at 5, tuesday 5pm”
- “tuesday at 5”, “tuesday 5pm”

i have also tried multiple target columns… must be glitchy with the auto-splitter?

Thanks - Jon

---

<div class="post-metadata">

**Author:** ![abhishek](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abhishek/32/32360_2.png) [@abhishek](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fabhishek)%5C
**Post date:** [April 20, 2023, 5:40pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-upload-csv-or-jsonlines-to-autotrain%2F37260%2F2 "2023-04-20T17:40:53Z")

</div>

Can you share more details on the project as in which task and the id/name so that we can investigate further? you can share on autotrain [at] hf [dot] co. Sharing data would make things much easier, if possible.

---

<div class="post-metadata">

**Author:** ![JaySyd](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@JaySyd](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJaySyd)%5C
**Post date:** [May 10, 2023, 2:22pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-upload-csv-or-jsonlines-to-autotrain%2F37260%2F3 "2023-05-10T14:22:02Z")

</div>

@abhishek im also having the same issue. JSONL file, with 5 entries, just gets stuck on the “Loading your file” with the browser developer tools reporting a javascript error: caught (in promise) TypeError: Cannot read properties of undefined (reading ‘length’)  
at i.$$.update (index.svelte-ba862b8c.js:87:1327)  
at zt (index-85986195.js:4:2680)  
at yt (index-85986195.js:4:2444)
