Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure data factory 在axecute之前如何获取活动名称_Azure Data Factory_Azure Data Factory Pipeline - Fatal编程技术网

Azure data factory 在axecute之前如何获取活动名称

Azure data factory 在axecute之前如何获取活动名称,azure-data-factory,azure-data-factory-pipeline,Azure Data Factory,Azure Data Factory Pipeline,我正在ADF中执行一个管道,我需要在执行后捕获一个活动的名称,我怎么做 You have to create a one sp with below syntax INSERT INTO [IM_CONTROL_T].[ADF_ERROR_LOG_T] ( [PipelineName], [PipelineID], [ActivityName], [ActivityID], [ErrorCode], [ErrorDescription], [ActivityStartTime], [Pipeli

我正在ADF中执行一个管道,我需要在执行后捕获一个活动的名称,我怎么做

You have to create a one sp with below syntax
INSERT INTO [IM_CONTROL_T].[ADF_ERROR_LOG_T]
(
[PipelineName],
[PipelineID],
[ActivityName],
[ActivityID],
[ErrorCode],
[ErrorDescription],
[ActivityStartTime],
[PipelineStartTime],
[ErrorLoggedTime]
)
VALUES
(
@PipelineName ,
@PipelineID ,
@ActivityName ,
@ActivityID ,
@ErrorCode ,
@ErrorDescription ,
@ActivityStartTime ,
@PipelineStartTime ,
@ErrorLoggedTime
)
and call this sp after your activity and in pipeline name type (@pipeline().Pipeline) & activity name just hardcode it - like lookup in my case.
[![enter image description here][1]][1]


  [1]: https://i.stack.imgur.com/KgyFO.png