' For Each Loop'赢得了准确处理文件夹内不同结构的文件。 [英] 'For Each Loop' won't accurately process files of different structure inside a folder.

查看:79
本文介绍了' For Each Loop'赢得了准确处理文件夹内不同结构的文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的问题是,



该文件夹包含多个文件,其中大多数文件的编号相同其中的工作表(使用每个循环很容易加载)但是有一些文件中有额外的工作表,并且"每个循环"在处理
所有文件时都不会获取额外的工作表在文件夹中。 (更多信息:附加工作表的名称不会改变,并且将始终保持不变)



我想知道是否可以有一个特殊的条件表达式应用并获取在使用'for each loop'时一次处理所有文件时丢失的附加工作表。 
$


'用于每个循环'处理文件一个标准号。床单,但不是根据实际没有。文件中的工作表(不同文件不同) 



请说清楚。 



提前致谢。

解决方案

你好  privya, 


请告诉我们有关包设计和错误消息的更多详细信息(如果有)。 


如果您正在使用Foreach ADO.NET架构行集枚举器,它将遍历所有工作表该文件。 


请参阅  如何使用SQL Server Integration Services从多个Excel工作表中读取数据



My problem is,

The folder contains multiple files and most of them have same number of sheets in them (which are being easy to load using a for each loop) However there are a few files that have extra sheets in them and 'for each loop' won't fetch the extra sheets while processing all the files in the folder. (More info: the names of additional sheet won't change and will always remain the same)

I'm wondering if there could a special conditional expressions that can be applied and fetch the additional sheet that is missing when using 'for each loop' to process all the files at once. 

'for each loop' processes files with a standard no. of sheets but not according to the actual no. of sheets in a file(which differs from file to file) 

Please shed some light. 

Thanks in advance.

解决方案

Hello privya, 

Please tell us more detail about the package design and error messages, if any. 

If you are are using the Foreach ADO.NET Schema Rowset Enumerator, it will iterate through all the sheets in the file. 

See How to read data from multiple Excel worksheets with SQL Server Integration Services


这篇关于' For Each Loop'赢得了准确处理文件夹内不同结构的文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆