0

I am loading 30 files at a time using a MULTIFLATFILE connection from SSIS into a raw table. These files are constantly coming in and a job loops through to exec the package and pick these up. Some of the files can have bad data every once in a while. I am having trouble when one of the 30 files is bad. I have no way to know which of the files actually failed so I can move it into a Suspect folder, roll the other 29 files back into my Input folder and try again. Can't find any info on the net on this, or in Microsoft's documentation. Any help appreciated. Thanks.

4

2 回答 2

0

我将使用 FLATFILE 类型重建您的连接,然后在将变量设置为文件名的 Foreach 循环容器中使用它。在 Connection 定义中,您可以使用 Expression 将 ConnectionString 属性设置为您的 Variable 值。

然后,当您的“坏”情况发生时,您可以使用该变量值采取您需要的任何操作。

于 2013-01-07T05:12:54.827 回答
0

配置平面文件源组件的 FileNameColumnName 属性。这将添加一个包含文件名的列。

于 2016-05-19T07:46:03.067 回答