[英]Same filename with different columns on each loop
I have a foreach loop that looks up the same filename but for each pass, the file gets populated differently with different columns. 我有一个foreach循环,查找相同的文件名,但是对于每遍,文件的填充方式都不同,列的不同。 My flatfile source throws an error when it tries to read the new rebuilt file - Im kinda expecting that my recordset destination would also throw an error as well. 当我尝试读取新的重建文件时,我的flatfile源引发错误-我有点希望我的记录集目标也将引发错误。
I'm using flatfile source and recordset destination. 我正在使用flatfile源和记录集目标。 I'm thinking that I should just use another script task for this but if there's a way to make it work with these 2 tasks, that will be great 我想我应该为此使用另一个脚本任务,但是如果有一种方法可以使其与这两个任务一起使用,那将是很好的
I wanted to reuse the same filename with different columns 我想在不同的列中重复使用相同的文件名
No if you are using a Dataflow in your foreach loop, then the same dataflow cannot be used to import a second file with different columns than the first. 否,如果您在foreach循环中使用数据流,则无法使用相同的数据流导入第二列的列与第一列不同的文件。 The columns used in a dataflow are set at design time and cannot change at run time. 数据流中使用的列是在设计时设置的,无法在运行时更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.