自定义.net azure数据工厂活动

本文关键字:工厂 活动 数据 azure net 自定义 | 更新日期: 2023-09-27 17:57:36

当我尝试在Azure-DataFactory:中使用CustomDotNetActivity实现HttpDataDownloaderSample时,会出现此错误

Unknown error in module:
System.InvalidOperationException: The type
DataDownloaderActivityNS.DataDownloaderActivity in the
DataDownloaderActivity assembly does not exist or doesn't implement the
type Microsoft.DataFactories.Runtime.IDotNetActivity properly. Please
check your configuration. Names are case sensitive on each single
character.
at
Microsoft.DataPipeline.Compute.HDInsightJobExecution.JobWrapper.LoadToAppDomain(AssemblyName
assemblyFullName, String typeName) in
f:'_Bld'12751'6742'Sources'Product'Common'Compute'src'HDIComputeDelegatorJob'JobWrapper.cs:line
130 at Microsoft.DataPipeline.Compute.HDInsightJobExecution.JobWrapper.RunJob()
in
f:'_Bld'12751'6742'Sources'Product'Common'Compute'src'HDIComputeDelegatorJob'JobWrapper.cs:line
83
at
Microsoft.DataPipeline.Compute.HDInsightJobExecution.Launcher.Main(String[]
args) in
f:'_Bld'12751'6742'Sources'Product'Common'Compute'src'HDIComputeDelegatorJob'Launcher.cs:line
78.

以前有人经历过这种情况吗?

自定义.net azure数据工厂活动

我不知道您正在使用的示例,但我在自定义活动中遇到了这个确切的错误。在无结果地追逐"不实现类型"错误后,结果是由于我的管道上的输入和输出被设置为同一个数据集。这会产生递归数据集错误。但是,您不会在上面的跟踪中看到这个错误。

我最终发现,重复出现的错误是在Powershell中重置切片以重新运行它时。这给出了一个更有意义的错误。要执行此操作,请打开Powershell并使用Login-AzureRmAccount登录,然后为链接到管道的每个数据集发出Set-AzureRmDataFactorySliceStatus

这可能有助于诊断。IDotNetActivity错误对我来说完全是转移注意力。修复数据集解决了问题。

使用Powershell重置切片的文档:https://learn.microsoft.com/en-us/powershell/module/azurerm.datafactories/set-azurermdatafactoryslicestatus?view=azurermps-6.13.0