Azure数据工厂v2-从Blob存储复制在空容器上失败 [英] Azure Data Factory v2 - Copy from Blob storage fails on empty Containers

查看:88
本文介绍了Azure数据工厂v2-从Blob存储复制在空容器上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个管道,可以将文件从一个存储帐户容器复制到另一个存储帐户.

I have a pipeline that copies files from a Storage Account Container to an other Storage Account.

但是,当容器为空时,作业将失败,并显示以下错误:

But when the Container is empty the job fails with error:

缺少所需的Blob.

容器中没有文件.

如何在容器为空时更改任务成功报告?

How can I change that the task reports successfully when a Container is empty?

基本云 | Twitter

Basic Cloud | Twitter

推荐答案

RalJans,

Hi RalJans,

您可以首先使用 获取元数据活动 如果条件活动检查该blob是否存在,然后仅在该blob存在的情况下才将数据复制到接收器存储.请参考以下示例:

You could firstly use a Get Metadata activity and an If Condition activity to check whether the blob exists, and then copy data to sink storage only if the blob exists. Please refer the following example:

{


这篇关于Azure数据工厂v2-从Blob存储复制在空容器上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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