# CSV file uploading error

**URL:** <https://discuss.elastic.co/t/csv-file-uploading-error/302552>\
**Category:** Elasticsearch\
**Created:** [April 16, 2022, 11:13am UTC](https://discuss.elastic.co/t/csv-file-uploading-error/302552 "2022-04-16T11:13:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Celal\_Celik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/celal_celik/32/96397_2.png) [@Celal\_Celik](https://discuss.elastic.co/u/Celal_Celik)\
**Post date:** [April 16, 2022, 11:13am UTC](https://discuss.elastic.co/t/csv-file-uploading-error/302552/1 "2022-04-16T11:13:08Z")

</div>

Hello,  
I am using ES 7.10 and tried to upload a csv file, so I can make a dashboard in Kibana.  
But unfortunately I get this error.  
My csv file looks like this:  
 ![error3](https://us1.discourse-cdn.com/elastic/original/3X/7/8/78874fe0597cadd0250a0ddcae2e82bd37126c3f.jpeg)  
My Mapping looks like this:  
 ![error1](https://us1.discourse-cdn.com/elastic/original/3X/d/8/d8ef47ba266fd362e9e082664a58d6963e0acd5a.jpeg)  
and this is the error:

 ![error2](https://us1.discourse-cdn.com/elastic/original/3X/7/4/74250fe27ec2f0d4e16c75fbf9bd4c617d141c35.jpeg)  
Thank you

---

<div class="post-metadata">

**Author:** ![droberts195](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/droberts195/32/17692_2.png) [@droberts195](https://discuss.elastic.co/u/droberts195)\
**Post date:** [April 16, 2022, 11:45am UTC](https://discuss.elastic.co/t/csv-file-uploading-error/302552/2 "2022-04-16T11:45:15Z")

</div>

The problem is that the carriage returns from your CRLF line endings are making it through to the messages that get indexed into Elasticsearch.

This is strange because they’re supposed to be stripped out by the Kibana upload code: [[ML] Process delimited files like semi-structured text by droberts195 · Pull Request #56038 · elastic/kibana · GitHub](https://github.com/elastic/kibana/pull/56038/files#diff-2ec2955699a0f19b7459fced69801f30911a302acd770a6ef63dc166baf0d485R91)

We will investigate why this might happen, but in the short term the workaround will be to edit the ingest pipeline on the “Advanced” tab of the file import screen and insert a [`trim` processor](https://www.elastic.co/guide/en/elasticsearch/reference/current/trim-processor.html) on the `message` field _before_ the `csv` processor.

---

<div class="post-metadata">

**Author:** ![Celal\_Celik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/celal_celik/32/96397_2.png) [@Celal\_Celik](https://discuss.elastic.co/u/Celal_Celik)\
**Post date:** [April 16, 2022, 12:03pm UTC](https://discuss.elastic.co/t/csv-file-uploading-error/302552/3 "2022-04-16T12:03:20Z")

</div>

Hello,  
thank you for your response.  
Do you mean something like this?  
And what should I write in the field?  
Thank you  
 ![question](https://us1.discourse-cdn.com/elastic/original/3X/8/2/82ee321a6f39e81716a84811b7d6490dd8608630.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 14, 2022, 12:04pm UTC](https://discuss.elastic.co/t/csv-file-uploading-error/302552/4 "2022-05-14T12:04:05Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
