Setting Default value in Data Factory Copy Activity in mappings
up vote
0
down vote
favorite
Just wondering how can we set a Default value in Data Factory Copy Activity in mappings.
Trying to do following
Azure Data Factory Source Dataset value from Parameter
But if that's not possible, can I set a default value through parameter while defining mappings?
azure-data-factory-2
add a comment |
up vote
0
down vote
favorite
Just wondering how can we set a Default value in Data Factory Copy Activity in mappings.
Trying to do following
Azure Data Factory Source Dataset value from Parameter
But if that's not possible, can I set a default value through parameter while defining mappings?
azure-data-factory-2
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Just wondering how can we set a Default value in Data Factory Copy Activity in mappings.
Trying to do following
Azure Data Factory Source Dataset value from Parameter
But if that's not possible, can I set a default value through parameter while defining mappings?
azure-data-factory-2
Just wondering how can we set a Default value in Data Factory Copy Activity in mappings.
Trying to do following
Azure Data Factory Source Dataset value from Parameter
But if that's not possible, can I set a default value through parameter while defining mappings?
azure-data-factory-2
azure-data-factory-2
asked Nov 6 at 18:25
InTheWorldOfCodingApplications
86451952
86451952
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
To achieve your requirement, you could define a pipeline parameter with "Object" type and give it a default value, eg. name it as "columnMapping" and set the default value as:
"type": "Object",
"defaultValue":
"type": "TabularTranslator",
"columnMappings":
"Prop_0": "Prop_0",
"Prop_1": "Prop_1",
"Prop_2": "Prop_2"
then assign the parameter to the copy activity column mapping:
"translator":
"value": "@pipeline().parameters.columnMappings",
"type": "Expression"
Great. Many thanks
– InTheWorldOfCodingApplications
Nov 13 at 14:38
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
To achieve your requirement, you could define a pipeline parameter with "Object" type and give it a default value, eg. name it as "columnMapping" and set the default value as:
"type": "Object",
"defaultValue":
"type": "TabularTranslator",
"columnMappings":
"Prop_0": "Prop_0",
"Prop_1": "Prop_1",
"Prop_2": "Prop_2"
then assign the parameter to the copy activity column mapping:
"translator":
"value": "@pipeline().parameters.columnMappings",
"type": "Expression"
Great. Many thanks
– InTheWorldOfCodingApplications
Nov 13 at 14:38
add a comment |
up vote
1
down vote
accepted
To achieve your requirement, you could define a pipeline parameter with "Object" type and give it a default value, eg. name it as "columnMapping" and set the default value as:
"type": "Object",
"defaultValue":
"type": "TabularTranslator",
"columnMappings":
"Prop_0": "Prop_0",
"Prop_1": "Prop_1",
"Prop_2": "Prop_2"
then assign the parameter to the copy activity column mapping:
"translator":
"value": "@pipeline().parameters.columnMappings",
"type": "Expression"
Great. Many thanks
– InTheWorldOfCodingApplications
Nov 13 at 14:38
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
To achieve your requirement, you could define a pipeline parameter with "Object" type and give it a default value, eg. name it as "columnMapping" and set the default value as:
"type": "Object",
"defaultValue":
"type": "TabularTranslator",
"columnMappings":
"Prop_0": "Prop_0",
"Prop_1": "Prop_1",
"Prop_2": "Prop_2"
then assign the parameter to the copy activity column mapping:
"translator":
"value": "@pipeline().parameters.columnMappings",
"type": "Expression"
To achieve your requirement, you could define a pipeline parameter with "Object" type and give it a default value, eg. name it as "columnMapping" and set the default value as:
"type": "Object",
"defaultValue":
"type": "TabularTranslator",
"columnMappings":
"Prop_0": "Prop_0",
"Prop_1": "Prop_1",
"Prop_2": "Prop_2"
then assign the parameter to the copy activity column mapping:
"translator":
"value": "@pipeline().parameters.columnMappings",
"type": "Expression"
answered Nov 11 at 9:07
Wang Zhang
2462
2462
Great. Many thanks
– InTheWorldOfCodingApplications
Nov 13 at 14:38
add a comment |
Great. Many thanks
– InTheWorldOfCodingApplications
Nov 13 at 14:38
Great. Many thanks
– InTheWorldOfCodingApplications
Nov 13 at 14:38
Great. Many thanks
– InTheWorldOfCodingApplications
Nov 13 at 14:38
add a comment |
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%2f53177818%2fsetting-default-value-in-data-factory-copy-activity-in-mappings%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