简体   繁体   中英

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]

在此处输入图片说明

Here is how my stored procedure is declared in ARM Template :

{
        "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 . Simple yet subtle difference that can make you waste unnecessary time.

Correct code:

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

instead of

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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