Welcome to Microsoft Q&A platform and thanks for posting your question here.
As I understand your ask, you are trying to copy data from D365(Dataverse) to Azure Sql DB. During this process, you are trying to add additional column and also, trying to perform upsert while doing the data load. Please correct me if my understanding is having some gap.
The issue is not in the additional column json, the first screenshot which you shared having the below code looks correct:
{
"name": "sfa_substatusentitytype",
"value": {
"value": "sfa_substatus",
"type": "Expression"
}
}
However, the issue is with making upsert keycolumn dynamic for which you are using this syntax:
"keys":[
"@{item().upsertkey}"
]
That is incorrect. Kindly try the below syntax:
"keys": {
"value": "@array(item().upsertkey)",
"type": "Expression"
}
Or, you can also try:
"keys": {
"value": "@split(item().upsertkey,',')",
"type": "Expression"
}
For more details, kindly check the following video: How to perform Upsert for Incremental records using Azure Synapse Pipelines
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you.
Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators