Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Extracting and loading data from Zipped CSV files to a SQL database

$
0
0

Hi

Extracting and loading data from Zipped CSV files to a SQL database

As I discussed in the http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/3d2a1ea9-bf09-4f8d-ab87-050c75751199” Post, I have a problem in loading zipped data to SQL database. Here I want to show more details hoping that somebody would help me.

Here is a snapshot of my package:

This is property of Foreach Zipped file and the following is property of “Foreach loading CSV files to a database” loop (this Foreach loop is working fine itself).  First loop reads zipped files from E:\temp and unzips them to the C:\test\unzipped. The second loop reads unzipped CSV files from C:\test\unzipped. But the second loops causes error





Error: 0xC020200E at Data Flow Task, Flat File Source [1]: Cannot open the datafile "".

Error: 0xC004701A at Data Flow Task, SSIS.Pipeline: component "Flat File Source" (1) failed the pre-execute phase and returned error code 0xC020200E.

In the each loop I used a string variable. strZipFile variable for first loop and varFilePath variable for the second loop as you can see in the following snapshot:

Both variables are in the Package Scope. I also got help from https://duncansutcliffe.wordpress.com/2010/04/14/unzipping-and-zipping-files-in-ssis/ to unzip files using SSIS.

I will appreciate for helps.




Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>