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

configure foreach file container from command line

$
0
0

I have a fairly simple SSIS package that runs fine locally but when I run from a command line, it runs the design time configuration for the source files, evidently because I have a ForEach File container filtering which files to load. I suppose I have to configure the ForEach container from the command line as well.

I have a dtexec command like this, and I use this for other files with only 1 source connection and 1 sql connection, but no ForEach loop.

dtexec /f %DTSPackageName% /Decrypt MyPassword /CONN cm_sql;%cm_sql_USTG% /CONN ffs_raw_file;%SourceFullFilePath% /CONN cm_ffs_FooterFinder;%SourceFullFilePath%

SourceFullFilePathMasked is in the format "C:\Test\MyFileName1.txt" and I have tried "C:\Test\MyFileName*.txt" since there are other files, such as "C:\Test\MyFileName2.txt", etc.

cm_sql is a standard sql connection string and works fine as data does go into the table.

The problem is it is ignoring the ffs_raw_file connection, but it only does this when I have a ForEachFile loop container. Evidently I have to configure that, too. How can I do that?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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