如果找不到儿童材料并在Azure Data Factory中使用超时,如何重新运行元数据活动
我进行了元数据活动,可以帮助我根据正则条件找到文件。当我拥有匹配的模式时,我可以检索子项目,但是当不匹配时,它只会返回空的childitems列表,并且超时无法正常工作。如果找不到儿童物品,我想重新运行元数据活动,并最多可以花2天的时间进行搜索。
blob中的可用文件名:
- samplestores_multi
- samplestores_single
- stores.txt
输入文件名:sales_*
I have metadata activity which helps me to find the file based on the regex. When I have the matched pattern I am able to retrieve the child items but when not matched it simply returns empty childitems list and the timeout is not working as expected. I want to rerun the metadata activity if no child items are found and put time out for a maximum of 2 days for searching.
Available Filename in blob :
- SampleStores_multi
- SampleStores_single
- Stores.txt
Input Filename: Sales_*
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以创建存储事件触发器对于您的管道,并在将所需的文件上传到文件夹路径中时提供了通配符文件路径以触发管道。
您可以在直到loop 。。。。 。 P>
•创建一个变量以在找到文件时启用标志。
•通过检查是否启用标志来循环直到循环。
•内部循环,检查文件是否在获得元数据活动输出的子项中找到并使用集合变量活动更新变量。
You can create storage event trigger for your pipeline and provide the wild card file path to trigger the pipeline when the required file is uploaded in the folder path.
You can loop the Get Metadata activity inside until loop.
• Create a variable to enable the flag when the file is found.
• Loop the Until loop by checking if the flag is enabled.
• Inside loop, check if the file is found in the child items of getting metadata activity output and update the variable using set variable activity.