# Autotrain Trainings Tab: Error Loading Dataset

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-trainings-tab-error-loading-dataset%2F51738%3E%5C
**Category:** 🤗AutoTrain\
**Created:** [August 22, 2023, 11:52pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-trainings-tab-error-loading-dataset%2F51738 "2023-08-22T23:52:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Velhic](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@Velhic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FVelhic)%5C
**Post date:** [August 22, 2023, 11:52pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-trainings-tab-error-loading-dataset%2F51738%2F1 "2023-08-22T23:52:48Z")

</div>

I’m encountering this error on a Binary Text Classification Model. My dataset appears to be formatted correctly, so I’m at a loss…

Error

There was a problem while converting your dataset files.

You can fix it by [editing your training data](https://ui.autotrain.huggingface.co/83925/data).

format\_source

Formatting data for the selected task

FAILED

Error details

Error type: DatasetGenerationError Details: An error occurred while generating the dataset

Context

{ “request\_id”: “da6df7034a5b2193708acad14cb6113d”, “id”: 49521, “fname”: “whywontyouwork.csv”, “split”: 4, “col\_mapping”: { “Title and Descriptions:\nTitle: Desktop Tower\n, Description: Desktop tower, intel i5-3470, 8GB RAM, 250GB SSD\n Condition: GOOD\n Note: Click on pictures below to view larger image\nSummarization: intel i5-3470 desktop tower 8gb ram 250gb SSD”: “text”, “Correct”: “target” } }

AutoTrain - HuggingFace

---

<div class="post-metadata">

**Author:** ![martinec](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/martinec/32/20678_2.png) [@martinec](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmartinec)%5C
**Post date:** [October 26, 2023, 7:05pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-trainings-tab-error-loading-dataset%2F51738%2F2 "2023-10-26T19:05:13Z")

</div>

A potential solution is to ensure that there are no trailing spaces at the end of each row in your csv file. You can address this by replacing ‘\s\*$’ with an empty string for every row.
