SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS Package not importing particular rows to sql server


SSIS Package not importing particular rows to sql server

Author
Message
dbman
dbman
SSC Veteran
SSC Veteran (235 reputation)SSC Veteran (235 reputation)SSC Veteran (235 reputation)SSC Veteran (235 reputation)SSC Veteran (235 reputation)SSC Veteran (235 reputation)SSC Veteran (235 reputation)SSC Veteran (235 reputation)

Group: General Forum Members
Points: 235 Visits: 1537
I have a package that imports CSV files into SQL server, however certain rows are not importing. As soon as it hits a row with a particular empty field (product number) e.g. 1785 , that particular row doesnt import. So anything after the first four rows are not importing. Any ideas on what this may not be working?


15/11/2012 | REC | 1000 | 3157004D | 28/02/2015 | 0000100 | S005 | ACTO/030 | RECL
15/11/2012 | REC | 1000 | 3166010A | 30/09/2014 | 0001036 | S005 | ACTO/045 | RECL
15/11/2012 | REC | 3000 | GND099A | 30/04/2015 | 0002200 | S005 | ALVE/160 | RECL
15/11/2012 | REC | 655 | GNB212F | 28/02/2015 | 0002201 | S005 | | RECL
15/11/2012 | REC | 1785 | | | 0001281 | S033 | CALD/150 | RECL
15/11/2012 | REC | 1540 | | | 0001281 | S033 | CALD/150 | RECL
15/11/2012 | REC | 1637 | | | 0001281 | S033 | CALD/150 | RECL
15/11/2012 | REC | 2492 | | | 0001281 | S033 | CALD/150 | RECL
15/11/2012 | REC | 1529 | | | 0001281 | S033 | CALD/150 | RECL
Evil Kraig F
Evil Kraig F
SSCrazy Eights
SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)

Group: General Forum Members
Points: 9015 Visits: 7660
Long list of reasons, anything from the target field in the table being defined as NOT NULL to row redirection in your components. Use the dataviewer on the dataflow pathing and see exactly when those rows fall out, that will help you narrow down to which exact component is causing the issue. Then check the error conditions for that component and see what it does on failures.


- Craig Farrell

Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

For better assistance in answering your questions | Forum Netiquette
For index/tuning help, follow these directions. |Tally Tables

Twitter: @AnyWayDBA
dbman
dbman
SSC Veteran
SSC Veteran (235 reputation)SSC Veteran (235 reputation)SSC Veteran (235 reputation)SSC Veteran (235 reputation)SSC Veteran (235 reputation)SSC Veteran (235 reputation)SSC Veteran (235 reputation)SSC Veteran (235 reputation)

Group: General Forum Members
Points: 235 Visits: 1537
I actually figured this one issue out. If you right click on the Flat File Source in the data flow task, there is a tick box with the info:

Retain null values from the source as null values in the data flow.

If you select this data with Null values are then imported
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search