Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS does not read row and column delimiters

$
0
0

Hi,

I have a text file with column delimiter as | (Pipe) and row delimiter as CRLF (new Line character).  The output is an SQL table.

If my data in file has more pipes(|) or more CRLF characters then my connection manager reads as follows:-

  1. Data in file. In Correct format. Then the output in the table is right.

Global Unique Identifier]|[KPI Name]|[KPI Description]|[Process Impacted]|[Objective]|[Strategy ID]|[KPI Category]|[KPI Measure Type]

A26|name|Desc|TPI|YYY|12|CAT|MT

A27|name|Desc|TPI|YYY|12|CAT|MT

A28|name|Desc|TPI|YYY|12|CAT|MT

  1. Data in file with more column delimiters in 2<sup>nd</sup> row as below

A26|name|Desc|TPI|YYY|12|CAT|MT

A27|name|Desc|TPI|YYY|12|CAT|MT|||||||||

A28|name|Desc|TPI|YYY|12|CAT|MT

                The output in file is also as above. i.e. 2<sup>nd</sup> row’s last column has all pipe lines also considered as data.

  1. Data in file is as below. i.e. With just one column in the first row and we will not give other column delimiters and give row delimiter.

A26

A27|name|Desc|TPI|YYY|12|CAT|MT

A28|name|Desc|TPI|YYY|12|CAT|MT

Then the output in the file is as below. We get the first column merge into the 2<sup>nd</sup> row’s first column.

A26 A27|name|Desc|TPI|YYY|12|CAT|MT

A28|name|Desc|TPI|YYY|12|CAT|MT

SSIS expects the right delimiters, only then it gives the correct output. Else the data coming in the output table is incorrect.

Can this be handled in any way?

 I will be thankful in case of any help regarding this issue.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>