diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json index 5e26933b60db..1bbe83bbe342 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json @@ -6726,6 +6726,44 @@ "waitTimeInSeconds" ] }, + "FailActivity": { + "x-ms-discriminator-value": "Fail", + "type": "object", + "description": "This activity will fail within its own scope and output a custom error message and error code. The error message and code can provided either as a string literal or as an expression that can be evaluated to a string at runtime. The activity scope can be the whole pipeline or a control activity (e.g. foreach, switch, until), if the fail activity is contained in it.", + "allOf": [ + { + "$ref": "#/definitions/ControlActivity" + } + ], + "properties": { + "typeProperties": { + "description": "Fail activity properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/FailActivityTypeProperties" + } + }, + "required": [ + "typeProperties" + ] + }, + "FailActivityTypeProperties": { + "description": "Fail activity properties.", + "type": "object", + "properties": { + "message": { + "description": "The error message that surfaced in the Fail activity. It can be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string).", + "type": "object" + }, + "errorCode": { + "description": "The error code that categorizes the error type of the Fail activity. It can be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string).", + "type": "object" + } + }, + "required": [ + "message", + "errorCode" + ] + }, "UntilActivity": { "x-ms-discriminator-value": "Until", "description": "This activity executes inner activities until the specified boolean expression results to true or timeout is reached, whichever is earlier.",