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

Corrupted File is getting processed Expand / Collapse
Author
Message
Posted Thursday, March 28, 2013 5:14 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, July 16, 2014 2:35 AM
Points: 19, Visits: 200
Hi,

I am getting an issue while loading the data from .csv file to SQL Server table. My pacakge has flat file source connection with 10 columns. I want to test a negative scenario by removing one column in the falt file. My negative secnario's are as below:

1. If i remove one column in the input file with no data, only headers and if i run the pacakge it is running successfully.

2. If i remove one column in the input file and with 1 or 2 records in the file and if i run the pacakge it is running successfully but the records are not inserted in to the destination table.

3. If i remove one column in the input file and with >2 records in the file and if i run the pacakge it fails because one column is missing. (This is want i need for the above 2 scenario's also)

My issue is like why it is getting success in first 2 scenarios and failing in the third secnario.

In the first two scenarios i am getting an warning message like : The end of the data file was reached while reading header rows. Make sure the header row delimiter and the number of header rows to skip are correct.

Can you please help me in resolving this issue.
Post #1436394
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse