首页 文章

Azure Data Factory V2:If条件活动中的自定义活动

提问于
浏览
0

我正在使用Azure Data Factory V2管道,但是当我尝试执行“自定义活动" inside an "如果条件活动”时,我遇到了问题 .

如果我尝试使用ADF Web界面上的“Test Run”按钮测试我的管道,则会出现以下错误:

{“code”:“BadRequest”,“message”:“活动PPL_ANYFBRF01失败:无效的链接服务引用 . 名称:LNK_BATCH_AZURE”,“target”...}

我确定链接服务引用的名称中没有错误 . 如果我直接在我的管道中创建“自定义活动”,它就可以了 .

我认为这可能是我的活动的语法错误,但我找不到它 .

这是我的“If Condition Activity”的Json模板(表达式“@equal(0,0)”仅用于测试目的):

{
    "name": "IfPointComptageNotExist",
    "type": "IfCondition",
    "dependsOn": [
        {
            "activity": "PointComptage",
            "dependencyConditions": [
                "Succeeded"
            ]
        },
        {
            "activity": "SousPointComptage",
            "dependencyConditions": [
                "Succeeded"
            ]
        }
    ],
    "typeProperties": {
        "expression": {
            "value": "@equal(0,0)",
            "type": "Expression"
        },
        "ifTrueActivities": [
            {
                "type": "Custom",
                "name": "CustomActivityTest",
                "linkedServiceName": {
                    "referenceName": "LNK_BATCH_AZURE",
                    "type": "LinkedServiceReference"
                },
                "typeProperties": {
                    "command": "Batch.exe",
                    "resourceLinkedService": {
                        "referenceName": "LNK_BLOB_STORAGE",
                        "type": "LinkedServiceReference"
                    },
                    "folderPath": "/test/app/"
                }
            }
        ]
    }
},

预先感谢您的帮助 .

1 回答

  • 1

    问题现在解决了 . 我重新创建了管道,它现在正在运行 .

    问候,

    朱利安 .

相关问题