# CSV::MalformedCSVError: Unclosed quoted field on line 1

**URL:** https://discuss.elastic.co/t/csv-unclosed-quoted-field-on-line-1/266509
**Category:** Logstash
**Created:** [March 8, 2021, 6:05am UTC](https://discuss.elastic.co/t/csv-unclosed-quoted-field-on-line-1/266509 "2021-03-08T06:05:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![padamrai](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@padamrai](https://discuss.elastic.co/u/padamrai)
#### Post date: [March 8, 2021, 6:05am UTC](https://discuss.elastic.co/t/csv-unclosed-quoted-field-on-line-1/266509/1 "2021-03-08T06:05:59Z")

</div>

After running code, getting this error. How to resolve this error.  
In front of date I am getting this symbol **∩╗┐** while running my configuration file. It appears once(first line).  
Error parsing csv {:field=\>"message", :source=\>"∩╗┐2020-09-01 00:00:00,923005721964,Mobilink,"Dear Customer, you have successfully logged in at 07:11 PM on 08/31/2020. For further assistance, please call NBP Helpline 087535532." ,8627,1,2020-09-01 00:00:03,DELIVERED,SUCCESS\r", :exception=\>#\<CSV::MalformedCSVError: Unclosed quoted field on line 1.\>}

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [March 8, 2021, 5:27pm UTC](https://discuss.elastic.co/t/csv-unclosed-quoted-field-on-line-1/266509/2 "2021-03-08T17:27:26Z")

</div>

> [@padamrai](#):
>
> ∩╗┐

That is a UTF-8 BOM (byte order mark). If your input allows you to set the charset you could probably fix this by setting the charset correctly. If you Google "remove utf-8 bom" you will get hundreds of thousands of hits on this.

---

<div class="post-metadata">

### Author: ![padamrai](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@padamrai](https://discuss.elastic.co/u/padamrai)
#### Post date: [March 9, 2021, 6:10am UTC](https://discuss.elastic.co/t/csv-unclosed-quoted-field-on-line-1/266509/3 "2021-03-09T06:10:07Z")

</div>

I need to resolve this error so kindly help me to resolve this error.  
**[Unclosed quoted field on line 1]**

---

<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: [April 6, 2021, 6:10am UTC](https://discuss.elastic.co/t/csv-unclosed-quoted-field-on-line-1/266509/4 "2021-04-06T06:10:29Z")

</div>

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