0

I am trying to import data from a CSV file into a table. I am presented by this error:

"Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "dstSupport" returned status value 2 and status text "The value could not be converted because of a potential loss of data."."

However, I do not even need to convert this column, as you see in the image below:

enter image description here

The column is of type bit, and I used DST_BOOL.

5
  • If its a string type make sure the destination length is big enough. Commented Mar 20, 2018 at 16:15
  • it is bit type and I assigned it to DST_BOOL Commented Mar 20, 2018 at 16:17
  • I will include that Commented Mar 20, 2018 at 16:17
  • If the .csv has a header, then make sure you use the 'top row as header' option. Commented Mar 20, 2018 at 16:33
  • 1
    do you have nulls in csv? Commented Mar 20, 2018 at 17:02

1 Answer 1

2

This ended up being a parsing error. I had a string with commas within it, and these strings within the commas were being placed in my bit column. I fixed it by changing the delimiter from a comma to a pipe

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

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.