Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Corrupted File is getting processed


Corrupted File is getting processed

Author
Message
prasanna-750812
prasanna-750812
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
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.
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