我有一个简单的管道可以从prem SQL Server复制到Azure SQL数据库。
但是,没有数据移动,只是简单地记下:No Activities in this pipeline
这个管道有什么问题?
{
"name": "OnPrem-to-Cloud",
"properties": {
"description": "Copy data from on prem to Azure SQL",
"activities": [
{
"type": "Copy",
"typeProperties": {
"source": {
"type": "SqlSource",
"sqlReaderQuery": "select * from table"
},
"sink": {
"type": "SqlSink",
"writeBatchSize": 0,
"writeBatchTimeout": "00:00:00"
}
},
"inputs": [
{
"name": "source-table"
}
],
"outputs": [
{
"name": "destination-table"
}
],
"policy": {
"timeout": "01:00:00",
"concurrency": 1
},
"scheduler": {
"frequency": "Day",
"interval": 1
},
"name": "CopyFromSQlServerToAzureSQL",
"description": "copy activity"
}
],
"start": "2017-08-29T21:55:29.438863Z",
"end": "2017-08-29T21:55:29.438863Z",
"isPaused": false,
"hubName": "data-factory-prod_hub",
"pipelineMode": "OneTime",
"expirationTime": "3.00:00:00"
}
}
我认为这个错误有误导性。这并不是说没有任何活动在酝酿之中。当您部署ADF时,它没有什么可供提供的,因为您的开始和结束日期时间是相同的。
这意味着ADF不能创建任何时间片,而时间片是实际执行的东西。
正如上面评论中已经建议的那样,您需要延长结束日期,但也将pipelineMode更改为scheduled。
希望这能有所帮助。