Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 Flat File Source Problem.

Author  Topic 

tooba
Posting Yak Master

224 Posts

Posted - 2014-04-07 : 23:22:10
Hi,

Is any one have/had problem.
I have very simple SSIS Package. Flat file source and SQL Destination. No other transformation. Somehow I am missing few data from source. For E.g my flat file source has 987 rows, but I am getting in SQL Table 687 rows. I am not sure where I am missing those data. Is Anyone help would be great appreciate. Please let me know if my question is not clear or need more information.

Thank You,

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2014-04-08 : 08:15:07
Check field terminator and line terminator characters.
Does some fields have CR or LF within them?



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page

tooba111
Starting Member

22 Posts

Posted - 2014-04-08 : 12:23:28
Thanks for the reply.
I just noticed my flat file data look like sample below

ID|FNAME|LNAME|CITY
1|Smith|Gram|Los Angles
2|James|Erik|
3|
4|

I am not sure, How I can fix this Issue.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2014-04-08 : 14:42:18
You can put a conditional split and remove the empty rows.



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page

tooba111
Starting Member

22 Posts

Posted - 2014-04-08 : 14:49:15
Yes I am using Conditional Split to remove Empty Row, but I am still not getting

ID|FNAME|LNAME|CITY
2|James|Erik|

and I can't use any filter on Flat File...
Go to Top of Page

subbu_mareedu
Starting Member

11 Posts

Posted - 2014-04-16 : 15:41:49
Hai tooba,

your data was came in the wrong format

because some columns was not separated pipe(|)symbol.

if u have any doubt u will try with this data.u get correct solution.

ID|FNAME|LNAME|CITY
1|Smith|Gram|Los Angles
2|James|Erik|
3|||
4|||








subbu
Go to Top of Page
   

- Advertisement -