Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deal with pipe as data in pipe delimited file

I am trying to solve a problem where my csv data looks like below:

A|B|C 
"Jon"|"PR | RP"|"MN"
"Pam | Map"|"Ecom"|"unity"
"What"|"is"this" happening"|"?"

That is, it is pipe delimited and has quotes as text qualifier but it also has pipe and quotes with in the data values. I have already tried

Update based on the comments

I tried to select | as delimiter and " as Text Qualifier but when trying to import data to OLEDB Destination i receive the following error:

couldn't find column delimiter for column B

like image 647
Yogita Avatar asked Dec 04 '25 04:12

Yogita


1 Answers

You have to change the Column Delimiter property to | (vertical bar) and the Text Qualifier property to " within the Flat File Connection Manager

enter image description here

enter image description here

If these is still not working then you have some bad rows in the Flat File Source which you must handle using the Error Output:

  • Flat File source Error Output connection in SSIS
  • SQL SERVER – SSIS Component Error Outputs
like image 166
Hadi Avatar answered Dec 05 '25 17:12

Hadi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!