自定义.net azure-data工厂活动

问题描述 投票:2回答:1

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

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.

以前有人经历过这个吗?

c# .net azure azure-data-factory
1个回答
1
投票

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

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

这可能有助于诊断它。 IDotNetActivity错误对我来说是一个完整的红色鲱鱼。修复数据集解决了问题。

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

© www.soinside.com 2019 - 2024. All rights reserved.