Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

NIFI - ReplaceText crashs my csv file

avatar
Contributor

Hi,

I am getting a csv without a header then adding a header with ReplaceText to it after the ReplaceText the header is added but the rest is crashed.

PS: This problem happen with this file only I tried the flow with other csv files and worked fine, can this be a csvReader problem or configuration on the encoding ?

 

Before :

FediMannoubi_1-1655287207809.png

The replace : 

FediMannoubi_2-1655287259792.pngFediMannoubi_3-1655287274126.png

 

After :

FediMannoubi_0-1655287028190.png

2 ACCEPTED SOLUTIONS

avatar
Super Guru

Hi,

It could be an encoding issue that I faced a while back. please check out this post:

https://community.cloudera.com/t5/Support-Questions/Illegal-Arg-Exception-when-parsing-CSV-file-thou...

 

Try to change the character set to UTF-16 to see if that will work. Hope that helps.

Thanks

 

View solution in original post

avatar
Contributor

I used ConvertCharacterSet and changed the oncoding from UTF-16 to UTF-8 and that fixed for me Thanks

View solution in original post

2 REPLIES 2

avatar
Super Guru

Hi,

It could be an encoding issue that I faced a while back. please check out this post:

https://community.cloudera.com/t5/Support-Questions/Illegal-Arg-Exception-when-parsing-CSV-file-thou...

 

Try to change the character set to UTF-16 to see if that will work. Hope that helps.

Thanks

 

avatar
Contributor

I used ConvertCharacterSet and changed the oncoding from UTF-16 to UTF-8 and that fixed for me Thanks