是否可以使用数据工厂将存储过程的结果数据映射到输出数据集。
我有以下内容:
{
"$schema": "http://datafactories.schema.management.azure.com/schemas/2015-09-01/Microsoft.DataFactory.Pipeline.json",
"name": "GetViewsByDateRange",
"properties": {
"description": "Some description here",
"activities": [
{
"name": "Stored Procedure Activity Template",
"type": "SqlServerStoredProcedure",
"inputs": [
{
"name": "InputDataset"
}
],
"outputs": [
{
"name": "OutputDataset"
}
],
"typeProperties": {
"storedProcedureName": "GetViewsByDateRange",
"storedProcedureParameters": {
"startdateid": "20170421",
"enddateid": "20170514"
},
"translator": {
"type": "TabularTranslator",
"ColumnMappings": "Id: Test_Id, ViewCount: TestViews"
}
},
"policy": {
"concurrency": 1,
"executionPriorityOrder": "OldestFirst",
"retry": 3,
"timeout": "01:00:00"
},
"scheduler": {
"frequency": "Minute",
"interval": "15"
}
}
],
"start": "2017-05-05T00:00:00Z",
"end": "2017-05-05T00:00:00Z"
}
}
但它会返回此错误:
15/05/2017 15:57:09-无法创建管道GetViewsByDateRange test-guid-test" message":"输入格式错误。原因: batchPipelineRequest.typeProperties.translator:找不到成员 '翻译'对于类型' SprocActivityParameters'的对象。路径 ' typeProperties.translator' .."," code":" InputIsMalformedDetailed"
答案 0 :(得分:1)
我担心这不受支持。您必须将结果转储到存储器以进行进一步处理。