Copy activity

Rohit Kulkarni 441 Reputation points
2021-03-25T19:30:32.697+00:00

Hello Team,
I am using For each activity under that i am using the copy activity.
81692-image.png
81693-image.png

Input
{ "source":
{ "type": "SqlServerSource",
"additionalColumns":
[
{
"name": "Companies",
"value": "Displays_Direct" },
{ "name": "TablesWithCompany",
"value": [ { "TableName": "Acc_ Sched" },
{ "TableName": "Sched " },
{ "TableName": "Sched_ KPI " },

I need to pass the "TableName" value in the below mentioned query.I am not not able to understand what has to be passed.
Now i am passing the item. It is not working.

"sqlReaderQuery" : "Select *\nfrom dbo.\n[Displays_Direct$@item().TablesWithCompany]",

It has to be like this
"Select *\nfrom dbo.\n[Displays_Direct$Acc_ Sched]" ( it will copy the 1 foldername in blob storage)

"Select *\nfrom dbo.\n[Displays_Direct$Sched]" ( it will copy the 2 foldername in blob storage)

"Select *\nfrom dbo.\n[Displays_Direct$Sched_ KPI]" ( it will copy the 3 foldername in blob storage)

Please advise.

Thanks RK

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

1 answer

Sort by: Most helpful
  1. Nasreen Akter 10,891 Reputation points Volunteer Moderator
    2021-03-25T19:41:20.857+00:00

    Hi @Rohit Kulkarni ,

    Would you please try "sqlReaderQuery" : "Select *\nfrom dbo.\n[Displays_Direct$@item().TableName]"

    Thanks!


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.