在DF V2中插入包含动态内容的文件和文件夹路径 [英] Inserting a file and folder path with dynamic content in DF V2

查看:130
本文介绍了在DF V2中插入包含动态内容的文件和文件夹路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在Data Factory V2中定义文件夹和文件路径时遇到问题我无法解决。

I have a problem with defining the folder and file path in Data Factory V2 that I can not solve.

我创建了一个链接服务,它是一个Blob容器,其文件夹结构类似于foldername>子文件夹>年份(例如2019年)>月份(格式为MM)> Day(格式为DD)。

I have created a linked service which is a Blob container with a folderstructure like foldername>sub-folder>Year( for example 2019)>Month(in the format MM)>Day(in the format DD).

现在,我尝试通过输入以下结构在Data Factory V2屏幕中输入文件路径。这不起作用,但我无法弄清楚为什么不。

Now I am trying to enter the filepath in the Data Factory V2 screen by entering the construction below. This doesn't work but I can't figure out why not.

文件路径:数据/子文件夹         
文件: @concat(formatDateTime(adddays(utcnow(), - 1),'YYYY'),formatDateTime(adddays(utcnow(), - 1),'MM'), formatDateTime(adddays(utcnow(), - 1),'DD'),'。csv')

File path : data/subfolder          file : @concat(formatDateTime(adddays(utcnow(),-1),'YYYY'),formatDateTime(adddays(utcnow(),-1),'MM'),formatDateTime(adddays(utcnow(),-1),'DD'),'.csv')

运行我的管道后出现以下错误:

I get the folowing error after running my pipeline:

活动Copy_wzs失败:"来源"方面发生了失败。 ErrorCode = UserErrorSourceBlobNotExist,'Type = Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message =缺少必需的Blob。 ContainerName:
URLXXX ; ContainerExist:True,BlobPrefix:YYYY04DD.csv,BlobCount:0,Source = Microsoft.DataTransfer.ClientLibrary,'

任何人都可以帮忙

推荐答案

您好mrchaouni并感谢您的提问。 我已经回复了一个相关的    question
thread here


我为Aazure Data Lake Store描述的过程第二代 与Azure Blob存储使用的几乎完全相同。 只需选择Blob存储数据集而不是Data Lake数据集。

Hello mrchaouni and thank you for your question.  I have answered a related  question thread here.
The process I describe for Aazure Data Lake Store Gen2  is nearly identical to the one used for Azure Blob Storage.  Just choose Blob storage dataset instead of Data Lake dataset.

错误消息显示blob容器确实存在,但找不到具有该名称的blob。 最有可能的 你需要一些帮助来调试动态内容。

The error message says the blob container does exist, but it cannot find the blob with that name.  Most likely  you need some help debugging the dynamic content.

虽然你已经找到了一种在 中使用动态内容的方法。您的文件路径,我描述的方法,参数化数据集将允许您在使用之前检查/调试表达式的计算值。



请让我知道如果这有帮助,否则请告诉我你是否还有其他问题。

While you have already figured out a way to use dynamic content in  your filepath, the method I describe, of parameterizing the dataset will allow you to check/debug the computed values of your expression before it gets used.

Please let me know if this helps, otherwise let me know if you have more questions.


这篇关于在DF V2中插入包含动态内容的文件和文件夹路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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