嵌套为每个循环cotainer [英] Nested For each loop cotainer

查看:101
本文介绍了嵌套为每个循环cotainer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是SSIS的新手。

我正在尝试将数据从Azure Blob加载到Ole db目的地

我的文件结构 



容器文件夹(多个文件夹)-CSV文件(多个)



最初我创建了3个参数  BlobContainer  - 存储Blob容器名称

BlobFolder  - 存储文件夹名称

ConnStr_AzureStorage  - 存储连接Azure Blob存储的字符串值

(例如:  DefaultEndpointsProtocol = https; AccountName = blobstorageaccountname; AccountKey = accountkey; EndpointSuffix = core.windows.net)

I am trying to load data from Azure Blobs to Ole db destination
my file structure 

Container-folder(multiple folders)-CSV files (multiple)

initially I created 3 parameters BlobContainer - Stores the Blob Container name
BlobFolder - Stores the Folder name
ConnStr_AzureStorage - Stores the connection string value for the Azure Blob Storage
(Ex: DefaultEndpointsProtocol=https;AccountName=blobstorageaccountname;AccountKey=accountkey;EndpointSuffix=core.windows.net)

和  变量以将Blob文件名存储为  BlobFileName



并且每个循环容器内都有一个数据流任务,循环工作现在将所有文件复制到一个文件夹。



http://gopika-lasitha.blogspot.com/2018/01/configuring-ssis-foreach-loop-container.html this博客实际上帮助我创造了这个。

and a variable is added to store the Blob File Name as BlobFileName.

and there is a data flow task inside this for each loop container and the loop worked it now copies all the files inside one folder.

http://gopika-lasitha.blogspot.com/2018/01/configuring-ssis-foreach-loop-container.html this blog actually helped me creating that.

现在我正在尝试为每个循环创建一个外部来循环遍历多个文件夹。 />
我删除了blob文件夹参数,并将其添加为每个循环的外部变量。



出于某种原因我的整个包工作 - 没有错误在输出中,但它没有复制任何数据&b;
任何帮助将不胜感激。




$ br />


Now I am trying to create an outside for each loop to loop through multiple folders.
I removed blob folder parameter and added it as a variable for outer for each loop.

For some reason my entire package works -- no errors in output but it is not copying any data 
any help will be appreciated.




推荐答案

嗨Krutika, 

Hi Krutika, 

出于某种原因,我的整个包工作 - 输出没有错误,但没有复制任何数据 

似乎Foreach Azure Blob枚举器将忽略这些文件夹。 

It seems that the Foreach Azure Blob Enumerator will ignore the folders. 

您可以使用"脚本任务"获取容器中的所有文件夹/文件。 

You can use Script Task to get all the folders/files in the container. 

参见:

如何列出Azure blob存储中的子目录

如何在SSIS中使用"foreach"列表集合


这篇关于嵌套为每个循环cotainer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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