Glowworm27
Programmer
I have created a ssis package that will look in a folder for xml files and import them into sql 2005.
So I have a Foreach File Loop container. I set it to look at the specified folder, and save the fully qualified filename into a user variable called "filename"
Inside the foreach loop container, I put a dataflow task.
In the dataflow task, I have an xml Source data flow item, a data conversions item, and a ole db destination item.
Also in the foreach loop container I have a file system task to rename/move the file to another folder.
I have the xml source set up to use the variable user::filename to get the xml source file physical location, and have set up all the column mappings to the destination.
In order to get the columns mapped I manually put the full path name in the variable, and it works fine. the ssis package runs, reads the xml file and imports it into the database, and the file is renamed and moved to the archive folder.
However when I deply the package to the ssis server, and create a sql agent job to run the package and scheule the package to run at certain times.
When the time arrives, the job runs, but does nothing, and does not report any errors. The file still sits in the folder as if the job never ran.
Help please
G
George Oakes
CEO & President
COPS Software, Inc.
Programmer & Developer
.Net, WSS 3.0, SQL DBA
Check out this awsome .Net Resource!
So I have a Foreach File Loop container. I set it to look at the specified folder, and save the fully qualified filename into a user variable called "filename"
Inside the foreach loop container, I put a dataflow task.
In the dataflow task, I have an xml Source data flow item, a data conversions item, and a ole db destination item.
Also in the foreach loop container I have a file system task to rename/move the file to another folder.
I have the xml source set up to use the variable user::filename to get the xml source file physical location, and have set up all the column mappings to the destination.
In order to get the columns mapped I manually put the full path name in the variable, and it works fine. the ssis package runs, reads the xml file and imports it into the database, and the file is renamed and moved to the archive folder.
However when I deply the package to the ssis server, and create a sql agent job to run the package and scheule the package to run at certain times.
When the time arrives, the job runs, but does nothing, and does not report any errors. The file still sits in the folder as if the job never ran.
Help please
G
George Oakes
CEO & President
COPS Software, Inc.
Programmer & Developer
.Net, WSS 3.0, SQL DBA
Check out this awsome .Net Resource!