简体   繁体   English

通过 ARM 部署数据工厂 - 数据工厂无法识别存储过程

[英]Deploying Data Factory through ARM - Data Factory not recognizing Stored Procedure

On deploying my ARM for my Data Factory, it is not recognizing my stored procedure and giving this value as my 'Stored procedure name' : [object Object]在为我的数据工厂部署我的 ARM 时,它无法识别我的存储过程并将此值作为我的“存储过程名称”[object Object]

在此处输入图片说明

Here is how my stored procedure is declared in ARM Template :以下是我的存储过程在ARM 模板中的声明方式:

{
        "name": "execute_teststoredproc",
        "type": "SqlServerStoredProcedure",
        "dependsOn": [],
        "policy": {
            "timeout": "7.00:00:00",
            "retry": 0,
            "retryIntervalInSeconds": 30,
            "secureOutput": false,
            "secureInput": false
        },
        "userProperties": [],
        "typeProperties": {
            "storedProcedureName": {
                "value": "[[dbo].[teststoredproc]"
            }
        },
        "linkedServiceName": {
            "referenceName": "TargetSQLDB",
            "type": "LinkedServiceReference"
        }
    }

Anyone knows why this is happening?有谁知道为什么会这样? Thanks.谢谢。

Apparently you cannot use the value field for storedProcedureName .显然,您不能使用storedProcedureNamevalue字段。 Simple yet subtle difference that can make you waste unnecessary time.简单而微妙的差异可能会让您浪费不必要的时间。

Correct code:正确代码:

    "typeProperties": {
        "storedProcedureName": "[[dbo].[teststoredproc]"
    }

instead of代替

    "typeProperties": {
        "storedProcedureName": {
            "value": "[[dbo].[teststoredproc]"
        }
    }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM