Skip to content

Commit 694d1a7

Browse files
Frey-WangFredericHeem
authored andcommitted
[Datafactory] Fix add failactivity in synapse (Azure#18697)
1 parent bf57e7a commit 694d1a7

File tree

2 files changed

+76
-0
lines changed
  • specification/synapse/data-plane/Microsoft.Synapse

2 files changed

+76
-0
lines changed

specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/Pipeline.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6487,6 +6487,44 @@
64876487
"waitTimeInSeconds"
64886488
]
64896489
},
6490+
"FailActivity": {
6491+
"x-ms-discriminator-value": "Fail",
6492+
"type": "object",
6493+
"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.",
6494+
"allOf": [
6495+
{
6496+
"$ref": "#/definitions/ControlActivity"
6497+
}
6498+
],
6499+
"properties": {
6500+
"typeProperties": {
6501+
"description": "Fail activity properties.",
6502+
"x-ms-client-flatten": true,
6503+
"$ref": "#/definitions/FailActivityTypeProperties"
6504+
}
6505+
},
6506+
"required": [
6507+
"typeProperties"
6508+
]
6509+
},
6510+
"FailActivityTypeProperties": {
6511+
"description": "Fail activity properties.",
6512+
"type": "object",
6513+
"properties": {
6514+
"message": {
6515+
"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).",
6516+
"type": "object"
6517+
},
6518+
"errorCode": {
6519+
"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).",
6520+
"type": "object"
6521+
}
6522+
},
6523+
"required": [
6524+
"message",
6525+
"errorCode"
6526+
]
6527+
},
64906528
"UntilActivity": {
64916529
"x-ms-discriminator-value": "Until",
64926530
"description": "This activity executes inner activities until the specified boolean expression results to true or timeout is reached, whichever is earlier.",

specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6513,6 +6513,44 @@
65136513
"waitTimeInSeconds"
65146514
]
65156515
},
6516+
"FailActivity": {
6517+
"x-ms-discriminator-value": "Fail",
6518+
"type": "object",
6519+
"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.",
6520+
"allOf": [
6521+
{
6522+
"$ref": "#/definitions/ControlActivity"
6523+
}
6524+
],
6525+
"properties": {
6526+
"typeProperties": {
6527+
"description": "Fail activity properties.",
6528+
"x-ms-client-flatten": true,
6529+
"$ref": "#/definitions/FailActivityTypeProperties"
6530+
}
6531+
},
6532+
"required": [
6533+
"typeProperties"
6534+
]
6535+
},
6536+
"FailActivityTypeProperties": {
6537+
"description": "Fail activity properties.",
6538+
"type": "object",
6539+
"properties": {
6540+
"message": {
6541+
"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).",
6542+
"type": "object"
6543+
},
6544+
"errorCode": {
6545+
"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).",
6546+
"type": "object"
6547+
}
6548+
},
6549+
"required": [
6550+
"message",
6551+
"errorCode"
6552+
]
6553+
},
65166554
"UntilActivity": {
65176555
"x-ms-discriminator-value": "Until",
65186556
"description": "This activity executes inner activities until the specified boolean expression results to true or timeout is reached, whichever is earlier.",

0 commit comments

Comments
 (0)