简体   繁体   English

相同的文件名,每个循环具有不同的列

[英]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.

相关问题 使用相同的样式为每个标签设置不同的颜色 - Setting a different color for each tab using the same style php - html:表中同一列的每一行中的不同数据 - php - html: Different data in each row of a the same column in a table 如何在while循环中循环一个按钮,并在每次迭代中为其赋予不同的ID? - How do I loop one button in a while loop and give it different id's in each iteration? 对于每行具有不同列大小的矩阵的动态 memory 分配会发生什么? - What happens with the dynamic memory allocation, of a matrix with different size of columns on each line? For 循环重新排序 R 中的列 - For Loop to Reorder Columns in R jQuery动态的每个循环的问题 - jquery dynamic for each loop issue 相同的输入不同的测试用例不同的答案 - same input different test case different answers 创建一个变量,每个循环中都有一个变量--jQuery - Creating a variable, with a variable in an each loop - jQuery 如何使用$ .each在jQuery中进行内部循环 - How to make inner loop in jQuery using $.each SQLite将特定的行列转换为其他列,并对每个列进行内部联接 - SQLite turn specific row columns into additional columns and do inner join for each of those columns
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM