无法检测数据源位置。请在CopyActivity中指定ExecutionLocation

时间:2017-05-22 11:46:09

标签: azure azure-data-factory

我尝试使用Azure数据工厂将数据从azure sql数据库复制到Azure搜索索引。 我已正确创建管道,数据集和链接服务。 管道/活动执行后我收到以下错误消息:

Can't detect data source location. Please specify ExecutionLocation in CopyActivity.

输入数据集

{
    "name": "Input-notifyDB",
    "properties": {
        "structure": [
            {
                "name": "topicid",
                "type": "String"
            },
            {
                "name": "createdby",
                "type": "String"
            }
        ],
        "published": false,
        "type": "AzureSqlTable",
        "linkedServiceName": "Source-notifyDB",
        "typeProperties": {},
        "availability": {
            "frequency": "Minute",
            "interval": 15
        },
        "external": true,
        "policy": {}
    }
}

输出数据集:

{
    "name": "OutputD-notifyDB",
    "properties": {
        "structure": [
            {
                "name": "id",
                "type": "String"
            },
            {
                "name": "sender",
                "type": "String"
            }
        ],
        "published": false,
        "type": "AzureSearchIndex",
        "linkedServiceName": "Destination-notifyDB",
        "typeProperties": {
            "indexName": "test"
        },
        "availability": {
            "frequency": "Minute",
            "interval": 15
        },
        "external": false,
        "policy": {}
    }
}

管道:

{
    "name": "Copy_notifyDB",
    "properties": {
        "activities": [
            {
                "type": "Copy",
                "typeProperties": {
                    "source": {
                        "type": "SqlSource",
                        "sqlReaderQuery": "select convert(varchar(25), topicid) topicid, createdby from [vMessageDetail]"
                    },
                    "sink": {
                        "type": "AzureSearchIndexSink"
                    },
                    "translator": {
                        "type": "TabularTranslator",
                        "columnMappings": "topicid:id,createdby:sender"
                    },
                    "parallelCopies": 8
                },
                "inputs": [
                    {
                        "name": "Input-notifyDB"
                    }
                ],
                "outputs": [
                    {
                        "name": "OutputD-notifyDB"
                    }
                ],
                "policy": {
                    "timeout": "1.00:00:00",
                    "concurrency": 1,
                    "executionPriorityOrder": "NewestFirst",
                    "style": "StartOfInterval",
                    "retry": 3,
                    "longRetry": 0,
                    "longRetryInterval": "00:00:00"
                },
                "scheduler": {
                    "frequency": "Minute",
                    "interval": 15
                },
                "name": "Activity-0-_Custom query_->test"
            }
        ],
        "start": "2017-05-22T10:17:00Z",
        "end": "2017-05-23T18:30:00Z",
        "isPaused": false,
        "pipelineMode": "Scheduled"
    }
}

知道如何解决此错误吗?

1 个答案:

答案 0 :(得分:1)

消息意味着,在管道中的复制活动中,使用typeProperties(源和接收器的对等体)中的executionLocation属性来指定区域,如“executionLocation”:“East US”。请参阅此处的文档:https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities#a-nameglobalaglobally-available-data-movement