优先限制停止foreach循环容器执行

发布于 2025-02-08 15:43:09 字数 518 浏览 0 评论 0原文

我正在处理一个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.

Image of my Control Flow

Image of my Data Flow

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半窗疏影 2025-02-15 15:43:09

我需要删除单声名变量周围放置的单引号,只要表格名称中有一个空间。

I needed to remove single quotes that were placed around my sheet name variable whenever the sheet name had a space in it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文