1

I am working in Pentaho spoon. I have a requirement to load CSV file data into one table.

I have used , as delimter in CSV file. I can see correct data in preview of CSV file input step. But when I tried to insert data into Table Output step, I am getting data truncation error.

This is because I have below kind of values in one of my column. "2,ABC Squere".

As you see, I have "," in my column value so it is truncating and throwing error.How to solve this problem?

I want to upload data in Table with this kind of values..

2
  • change the delimiter in your CSV file. Commented Nov 11, 2016 at 12:26
  • which delimeter should I use? I used , but it is not working..Values are getting shifted to next column. Commented Nov 14, 2016 at 12:06

2 Answers 2

1

Here is one way of doing it

test.csv
--------
colA,colB,colC
ABC,"2,ABC Squere",test

See below the settings. The key is to use "" as encloser and , as delimiter.

enter image description here

Sign up to request clarification or add additional context in comments.

3 Comments

Thank you so much!!
@NileshPatil If this resolves your issue, please mark this as a correct answer and close this thread. Or if you feel something more is needed although this is helpful, you can upvote this answer and refine your question.
Hello, Thanks for your help. Yes, issue is resolved now.
0

you can change the delimiter say to PIPE and also keeping data as quoted text like "1,Name" this will treat the same as 1 column

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.