set variable activity in data factory throws 500 error
up vote
0
down vote
favorite
This may be related to this issue but the symptoms are different. Set Variable activity Azure Data Factory v2
What I am trying to do is simply increment a counter (CurrentOffset) that will cause the parent "until" activity to repeat until it reaches a value defined in the pipeline parameter (NumberOfDays).
I can see the variable I want to set (this is different to the above reported issue) but when I debug or run, it throws a 500 error with no error or message (see further below).
Here is a stripped down example.
{
"name": "RunWithDateArray",
"properties": {
{
"name": "Until",
"type": "Until",
"typeProperties": {
"expression": {
"value": "@equals(pipeline().parameters.NumberOfDays,variables('CurrentOffset'))",
"type": "Expression"
},
"activities": [
{
"name": "Set Variable1",
"type": "SetVariable",
"typeProperties": {
"variableName": "CurrentOffset",
"value": {
"value": "@{add(int(variables('CurrentOffset')),1)}",
"type": "Expression"
}
}
}
],
"timeout": "7.00:00:00"
}
}
],
"parameters": {
"NumberOfDays": {
"type": "String",
"defaultValue": "3"
}
},
"variables": {
"CurrentOffset": {
"type": "String",
"defaultValue": "0"
}
}
},
"type": "Microsoft.DataFactory/factories/pipelines"
}
This is the resulting error
{"headers":{"normalizedNames":{},
"lazyUpdate":null},
"status":500,
"statusText":"Internal Server Error",
"url":"https://management.azure.com/subscriptions/8d******-****-****-****-********1469/resourcegroups/datawarehouse/providers/Microsoft.DataFactory/factories/TVLDFACTORY02/pipelines/RunWithDateArray631f7f37-a858-4fdf-9fd8-89adf581a63e/sandbox/create?sandboxId=ada11f9e-a604-42ba-8571-f58ac84958c3&api-version=2017-09-01-preview",
"ok":false,
"name":"HttpErrorResponse",
"message":"Http failure response for https://management.azure.com/subscriptions/8d******-****-****-****-********1469/resourcegroups/datawarehouse/providers/Microsoft.DataFactory/factories/TVLDFACTORY02/pipelines/RunWithDateArray631f7f37-a858-4fdf-9fd8-89adf581a63e/sandbox/create?sandboxId=ada11f9e-a604-42ba-8571-f58ac84958c3&api-version=2017-09-01-preview: 500 Internal Server Error",
"error":"{
"code":"InternalServerError",
"message":"InternalServerError executing request",
"target":"pipeline/RunWithDateArray631f7f37-a858-4fdf-9fd8-89adf581a63e/runid/7c666c38-67a6-4743-a068-fff623176f23",
"details":null,
"error":null}"
}
Is there a work around for looping on a variable where that variable is updated in a nested activity? Note that I can successfully loop an array because this is defined in the outer activity.
Thanks, Mark.
azure-data-factory-2
add a comment |
up vote
0
down vote
favorite
This may be related to this issue but the symptoms are different. Set Variable activity Azure Data Factory v2
What I am trying to do is simply increment a counter (CurrentOffset) that will cause the parent "until" activity to repeat until it reaches a value defined in the pipeline parameter (NumberOfDays).
I can see the variable I want to set (this is different to the above reported issue) but when I debug or run, it throws a 500 error with no error or message (see further below).
Here is a stripped down example.
{
"name": "RunWithDateArray",
"properties": {
{
"name": "Until",
"type": "Until",
"typeProperties": {
"expression": {
"value": "@equals(pipeline().parameters.NumberOfDays,variables('CurrentOffset'))",
"type": "Expression"
},
"activities": [
{
"name": "Set Variable1",
"type": "SetVariable",
"typeProperties": {
"variableName": "CurrentOffset",
"value": {
"value": "@{add(int(variables('CurrentOffset')),1)}",
"type": "Expression"
}
}
}
],
"timeout": "7.00:00:00"
}
}
],
"parameters": {
"NumberOfDays": {
"type": "String",
"defaultValue": "3"
}
},
"variables": {
"CurrentOffset": {
"type": "String",
"defaultValue": "0"
}
}
},
"type": "Microsoft.DataFactory/factories/pipelines"
}
This is the resulting error
{"headers":{"normalizedNames":{},
"lazyUpdate":null},
"status":500,
"statusText":"Internal Server Error",
"url":"https://management.azure.com/subscriptions/8d******-****-****-****-********1469/resourcegroups/datawarehouse/providers/Microsoft.DataFactory/factories/TVLDFACTORY02/pipelines/RunWithDateArray631f7f37-a858-4fdf-9fd8-89adf581a63e/sandbox/create?sandboxId=ada11f9e-a604-42ba-8571-f58ac84958c3&api-version=2017-09-01-preview",
"ok":false,
"name":"HttpErrorResponse",
"message":"Http failure response for https://management.azure.com/subscriptions/8d******-****-****-****-********1469/resourcegroups/datawarehouse/providers/Microsoft.DataFactory/factories/TVLDFACTORY02/pipelines/RunWithDateArray631f7f37-a858-4fdf-9fd8-89adf581a63e/sandbox/create?sandboxId=ada11f9e-a604-42ba-8571-f58ac84958c3&api-version=2017-09-01-preview: 500 Internal Server Error",
"error":"{
"code":"InternalServerError",
"message":"InternalServerError executing request",
"target":"pipeline/RunWithDateArray631f7f37-a858-4fdf-9fd8-89adf581a63e/runid/7c666c38-67a6-4743-a068-fff623176f23",
"details":null,
"error":null}"
}
Is there a work around for looping on a variable where that variable is updated in a nested activity? Note that I can successfully loop an array because this is defined in the outer activity.
Thanks, Mark.
azure-data-factory-2
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This may be related to this issue but the symptoms are different. Set Variable activity Azure Data Factory v2
What I am trying to do is simply increment a counter (CurrentOffset) that will cause the parent "until" activity to repeat until it reaches a value defined in the pipeline parameter (NumberOfDays).
I can see the variable I want to set (this is different to the above reported issue) but when I debug or run, it throws a 500 error with no error or message (see further below).
Here is a stripped down example.
{
"name": "RunWithDateArray",
"properties": {
{
"name": "Until",
"type": "Until",
"typeProperties": {
"expression": {
"value": "@equals(pipeline().parameters.NumberOfDays,variables('CurrentOffset'))",
"type": "Expression"
},
"activities": [
{
"name": "Set Variable1",
"type": "SetVariable",
"typeProperties": {
"variableName": "CurrentOffset",
"value": {
"value": "@{add(int(variables('CurrentOffset')),1)}",
"type": "Expression"
}
}
}
],
"timeout": "7.00:00:00"
}
}
],
"parameters": {
"NumberOfDays": {
"type": "String",
"defaultValue": "3"
}
},
"variables": {
"CurrentOffset": {
"type": "String",
"defaultValue": "0"
}
}
},
"type": "Microsoft.DataFactory/factories/pipelines"
}
This is the resulting error
{"headers":{"normalizedNames":{},
"lazyUpdate":null},
"status":500,
"statusText":"Internal Server Error",
"url":"https://management.azure.com/subscriptions/8d******-****-****-****-********1469/resourcegroups/datawarehouse/providers/Microsoft.DataFactory/factories/TVLDFACTORY02/pipelines/RunWithDateArray631f7f37-a858-4fdf-9fd8-89adf581a63e/sandbox/create?sandboxId=ada11f9e-a604-42ba-8571-f58ac84958c3&api-version=2017-09-01-preview",
"ok":false,
"name":"HttpErrorResponse",
"message":"Http failure response for https://management.azure.com/subscriptions/8d******-****-****-****-********1469/resourcegroups/datawarehouse/providers/Microsoft.DataFactory/factories/TVLDFACTORY02/pipelines/RunWithDateArray631f7f37-a858-4fdf-9fd8-89adf581a63e/sandbox/create?sandboxId=ada11f9e-a604-42ba-8571-f58ac84958c3&api-version=2017-09-01-preview: 500 Internal Server Error",
"error":"{
"code":"InternalServerError",
"message":"InternalServerError executing request",
"target":"pipeline/RunWithDateArray631f7f37-a858-4fdf-9fd8-89adf581a63e/runid/7c666c38-67a6-4743-a068-fff623176f23",
"details":null,
"error":null}"
}
Is there a work around for looping on a variable where that variable is updated in a nested activity? Note that I can successfully loop an array because this is defined in the outer activity.
Thanks, Mark.
azure-data-factory-2
This may be related to this issue but the symptoms are different. Set Variable activity Azure Data Factory v2
What I am trying to do is simply increment a counter (CurrentOffset) that will cause the parent "until" activity to repeat until it reaches a value defined in the pipeline parameter (NumberOfDays).
I can see the variable I want to set (this is different to the above reported issue) but when I debug or run, it throws a 500 error with no error or message (see further below).
Here is a stripped down example.
{
"name": "RunWithDateArray",
"properties": {
{
"name": "Until",
"type": "Until",
"typeProperties": {
"expression": {
"value": "@equals(pipeline().parameters.NumberOfDays,variables('CurrentOffset'))",
"type": "Expression"
},
"activities": [
{
"name": "Set Variable1",
"type": "SetVariable",
"typeProperties": {
"variableName": "CurrentOffset",
"value": {
"value": "@{add(int(variables('CurrentOffset')),1)}",
"type": "Expression"
}
}
}
],
"timeout": "7.00:00:00"
}
}
],
"parameters": {
"NumberOfDays": {
"type": "String",
"defaultValue": "3"
}
},
"variables": {
"CurrentOffset": {
"type": "String",
"defaultValue": "0"
}
}
},
"type": "Microsoft.DataFactory/factories/pipelines"
}
This is the resulting error
{"headers":{"normalizedNames":{},
"lazyUpdate":null},
"status":500,
"statusText":"Internal Server Error",
"url":"https://management.azure.com/subscriptions/8d******-****-****-****-********1469/resourcegroups/datawarehouse/providers/Microsoft.DataFactory/factories/TVLDFACTORY02/pipelines/RunWithDateArray631f7f37-a858-4fdf-9fd8-89adf581a63e/sandbox/create?sandboxId=ada11f9e-a604-42ba-8571-f58ac84958c3&api-version=2017-09-01-preview",
"ok":false,
"name":"HttpErrorResponse",
"message":"Http failure response for https://management.azure.com/subscriptions/8d******-****-****-****-********1469/resourcegroups/datawarehouse/providers/Microsoft.DataFactory/factories/TVLDFACTORY02/pipelines/RunWithDateArray631f7f37-a858-4fdf-9fd8-89adf581a63e/sandbox/create?sandboxId=ada11f9e-a604-42ba-8571-f58ac84958c3&api-version=2017-09-01-preview: 500 Internal Server Error",
"error":"{
"code":"InternalServerError",
"message":"InternalServerError executing request",
"target":"pipeline/RunWithDateArray631f7f37-a858-4fdf-9fd8-89adf581a63e/runid/7c666c38-67a6-4743-a068-fff623176f23",
"details":null,
"error":null}"
}
Is there a work around for looping on a variable where that variable is updated in a nested activity? Note that I can successfully loop an array because this is defined in the outer activity.
Thanks, Mark.
azure-data-factory-2
azure-data-factory-2
asked Nov 21 at 22:54
MarkD
273314
273314
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53421578%2fset-variable-activity-in-data-factory-throws-500-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown