admin管理员组文章数量:1336632
I created the dynamic dataset and linker service. In copy activity i used that dynamic dataset and want to pass parameter in copy activity or use Compression type option as parameter/Dynamic, when i click on Compression type there is drop down menu and found option of add dynamic add content, but unable how to add or use this option .
I implement the answer in azure and found some issue , can you please have a look.
first i created two parameters
After parameters i edit the json as well, you can review it
and pass the parameter as string
But the. main issue is that i am unable to get these parameters into datasets You can check this picture.
I created the dynamic dataset and linker service. In copy activity i used that dynamic dataset and want to pass parameter in copy activity or use Compression type option as parameter/Dynamic, when i click on Compression type there is drop down menu and found option of add dynamic add content, but unable how to add or use this option .
I implement the answer in azure and found some issue , can you please have a look.
first i created two parameters
After parameters i edit the json as well, you can review it
and pass the parameter as string
But the. main issue is that i am unable to get these parameters into datasets You can check this picture.
Share Improve this question edited Nov 28, 2024 at 11:53 rbrayb 46.8k34 gold badges118 silver badges179 bronze badges Recognized by Microsoft Azure Collective asked Nov 20, 2024 at 22:04 Junaid BilalJunaid Bilal 175 bronze badges 8- 1 Can you add images of your pipeline for better understanding – Pratik Lad Commented Nov 21, 2024 at 3:19
- images has been shared i post , thank you for your support and consideration @Prakit Lad – Junaid Bilal Commented Nov 21, 2024 at 6:56
- 1 @JunaidBilal, you can use dynamic expression by editing the dataset json. please check the below answer. – Rakesh Govindula Commented Nov 21, 2024 at 8:18
- 1 Ya, @RakeshGovindula. Thank you for to all community members, i am doing POC on this answer and will share my result with all of you soon. – Junaid Bilal Commented Nov 21, 2024 at 8:45
- 1 i. would like to thank you for your support and time because your reply and provided solution has solved my problem. Thank you @RakeshGovindula – Junaid Bilal Commented Nov 27, 2024 at 17:31
1 Answer
Reset to default 1This behavior might be a bug in the datasets of ADF. You can achieve your requirement by changing the dataset JSON as shown below.
First create the required dataset parameters.
Now, go to the dataset JSON by clicking on the icon {}
at the top right corner of the dataset and edit the JSON to add the dynamic content expression.
Here, I have used Binary dataset, and I have edited the dataset JSON as shown below.
{
"name": "Binary_source_compression",
"properties": {
"linkedServiceName": {
"referenceName": "ADLS_nov20th_test",
"type": "LinkedServiceReference"
},
"parameters": {
"comp_type": {
"type": "string"
},
"comp_level": {
"type": "string"
}
},
"annotations": [],
"type": "Binary",
"typeProperties": {
"location": {
"type": "AzureBlobFSLocation",
"fileName": "mainzip.zip",
"fileSystem": "zipsinputcon"
},
"compression": {
"type": {
"value": "@dataset()p_type",
"type": "Expression"
},
"level": {
"value": "@dataset()p_level",
"type": "Expression"
}
}
}
}
}
Click on ok and now it will show the dynamic expression for these properties at the dataset level.
Give the required values to these parameters in the copy activity.
Run the pipeline and it will give the desired results.
UPDATE:
For the csv file, you can edit the dataset JSON as below.
"compressionCodec": {
"value": "@dataset()p",
"type": "Expression"
},
"compressionLevel": {
"value": "@dataset()p_level",
"type": "Expression"
}
本文标签: azurehow to set Dynamic add content in Compression type in copy activityStack Overflow
版权声明:本文标题:azure - how to set Dynamic add content in Compression type in copy activity - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742325385a2453620.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论