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:-
- 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
- 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.
- 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.