# Translate: Unquoted fields do not allow \\r or \\n (line 1)

**URL:** https://discuss.elastic.co/t/translate-unquoted-fields-do-not-allow-r-or-n-line-1/260904
**Category:** Logstash
**Created:** [January 12, 2021, 8:55pm UTC](https://discuss.elastic.co/t/translate-unquoted-fields-do-not-allow-r-or-n-line-1/260904 "2021-01-12T20:55:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![EHE](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@EHE](https://discuss.elastic.co/u/EHE)
#### Post date: [January 12, 2021, 8:55pm UTC](https://discuss.elastic.co/t/translate-unquoted-fields-do-not-allow-r-or-n-line-1/260904/1 "2021-01-12T20:55:51Z")

</div>

Hello,

I am struggling with a translation dilemma, I have been researching for hrs for answers, but i havent found the right one for my issue, and i do not know why i am getting this error:  
_Translate: Unquoted fields do not allow \r or \n (line 1)_  
Problem:  
I have a translation set in logstash as below:

translate {  
field =\> "module\_id"  
destination =\> "module\_name\_eng"  
dictionary\_path =\> "........./translation/translate\_module.csv"  
}

My translation file looks like this:  
120,XXXX  
778,YYYY  
Also enclosed: ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/8/78909ab30daec2873e9b46bf3f8882f890d716f4.png)

I have no extra char after the first line.  
Interestingly the very same file with one line is working, but when i add a new (so with 2 lines) I am getting the above error: _Translate: Unquoted fields do not allow \r or \n (line 1)_

I really do not understand why, obviously i am doing something wrong, but what it is?  
Please help, it is driving me crazy, I have tried almost everything in the file now.

Thank you.

---

<div class="post-metadata">

### Author: ![EHE](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@EHE](https://discuss.elastic.co/u/EHE)
#### Post date: [January 13, 2021, 3:25pm UTC](https://discuss.elastic.co/t/translate-unquoted-fields-do-not-allow-r-or-n-line-1/260904/2 "2021-01-13T15:25:41Z")

</div>

Can somebody please take a look at, others also tried to reproduce it and they have the same issue

---

<div class="post-metadata">

### Author: ![EHE](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@EHE](https://discuss.elastic.co/u/EHE)
#### Post date: [January 18, 2021, 8:31am UTC](https://discuss.elastic.co/t/translate-unquoted-fields-do-not-allow-r-or-n-line-1/260904/3 "2021-01-18T08:31:01Z")

</div>

It has been solved with YML file, since it seems that csv is just not working

---

<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: [February 15, 2021, 8:31am UTC](https://discuss.elastic.co/t/translate-unquoted-fields-do-not-allow-r-or-n-line-1/260904/4 "2021-02-15T08:31:06Z")

</div>

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