set variable activity in data factory throws 500 error
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 |
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 |
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 '18 at 22:54
MarkDMarkD
313314
313314
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
0
active
oldest
votes
0
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.
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