Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Flat File not moving all data Expand / Collapse
Author
Message
Posted Wednesday, October 2, 2013 1:10 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 2:19 PM
Points: 135, Visits: 423
Hi,
Im using flat file (.csv) to sql 2008, which has only 40 rows but 39 rows get transfered 1 row missing.
Also i see and warning sign as
below
[Flat File Source [1]] Warning: There is a partial row at the end of the file.

Anyone have any clue about it.

Shaun..
Post #1500894
Posted Wednesday, October 2, 2013 1:36 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 6:46 AM
Points: 13,646, Visits: 11,524
Open the file in a decent text editor like notepad++ and set it to show all symbols.
It might be that your last line has an incorrect structure.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1500899
Posted Wednesday, October 2, 2013 1:45 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 2:19 PM
Points: 135, Visits: 423
Hi Koen,
I had checked the structure looks good..any other way to identify the issue.

Shaun..
Post #1500904
Posted Wednesday, October 2, 2013 1:51 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 2:19 PM
Points: 135, Visits: 423
I also deleted 5 rows..and it always showing 1 row less..

Shaun
Post #1500907
Posted Wednesday, October 2, 2013 2:00 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, December 10, 2014 12:17 PM
Points: 1,095, Visits: 3,182
Is the missing row the first, a middle or the last line?
Is it trying to read one line as a header?
Is there a carriage return on the last line?
Post #1500911
Posted Wednesday, October 2, 2013 2:07 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 2:19 PM
Points: 135, Visits: 423
Is the missing row the first, a middle or the last line? last Line Missing
Is it trying to read one line as a header? im using header rows to skip = 0 and checked columun names in first data row.
Is there a carriage return on the last line? don't know what thise mean??

Shaun..
Post #1500912
Posted Wednesday, October 2, 2013 2:32 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, December 10, 2014 12:17 PM
Points: 1,095, Visits: 3,182
Shaun2012 (10/2/2013)

Is there a carriage return on the last line? don't know what thise mean??

Shaun..

Is the last line terminated with a carriage return / newline? eg.
This,is,my,last,line<EOF>

or

This,is,my,last,line
<EOF>

Note the <EOF> is not the actual characters, just indicating where the file ends

In your text editor page down to the end of the text file, if the cursor remains on the last line of data then go to the end of the line and press return. It may not stop the warning, but it will mean that you load all the data.

Assuming that you are using the import data task from SSMS, you will notice that the column delimiter for the last column is likely to be {CR}{LF}
Post #1500920
Posted Wednesday, October 2, 2013 2:45 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 2:19 PM
Points: 135, Visits: 423
no it is on the last line..
Post #1500925
Posted Wednesday, October 2, 2013 3:00 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 2:19 PM
Points: 135, Visits: 423
Can I send u my file..
Shaun
Post #1500929
Posted Wednesday, October 2, 2013 3:06 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 6:46 AM
Points: 13,646, Visits: 11,524
Shaun2012 (10/2/2013)
Can I send u my file..
Shaun


Just add it as an attachment to a post.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1500933
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse