Corrupted File is getting processed

  • 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.

Viewing 0 posts

You must be logged in to reply to this topic. Login to reply