优先限制停止foreach循环容器执行
我正在处理一个SSIS软件包,在该软件包中,我在Excel文件中的3张纸上循环,将所有数据存储在CSV文件中。
第一张纸和第三张纸具有相似的列结构,但第二个纸张没有。
我想跳过第二个表的处理,因此在foreach循环容器中,我有一个禁用的表达式任务,带有表达式约束@[user :: sheetname] ==“ sheet1 $” || @[user :: SheetName] ==“ Sheet3 $”
连接到进行Excel文件处理的数据流任务。
我的问题是,当我执行软件包时,第一个工作表已处理,然后执行完成。
I am working on an SSIS package where I'm looping through 3 sheets in an Excel file to store all the data in a CSV file.
The first sheet and the third sheet have similar column structure but the 2nd one doesn't.
I want to skip the processing of the 2nd sheet so inside the Foreach Loop Container I have a disabled Expression Task with an expression precedence constraint @[User::SheetName] == "Sheet1$" || @[User::SheetName] == "Sheet3$"
that connects to the Data Flow Task that does the processing of the Excel file.
My issue is when I execute the package only the first sheet is processed and then execution is completed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我需要删除单声名变量周围放置的单引号,只要表格名称中有一个空间。
I needed to remove single quotes that were placed around my sheet name variable whenever the sheet name had a space in it.