COPY Data Issue

Rohit Kulkarni 731 Reputation points
2021-12-08T15:38:06.843+00:00

Hello Team,

The snowflake is in AWS and DB is in Azure sql DB.

So i am transferring the data from SNowflakeTable-->Blob and from Blob-->Azure sql DB Table.

1st copy command

Source Table Name =VW_SERVICELOCATION_MERGE

In Blob copied as =SERVICELOCATION.csv with this command :@markus.bohland@hotmail.de (replace(replace(item().Table_name,'VW_',''),'_MERGE',''),'.csv')

155987-image.png

Blob storage :

155955-image.png

2nd copy command :

Source : I am not able to use the same command @markus.bohland@hotmail.de (replace(replace(item().Table_name,'VW_',''),'_MERGE',''),'.csv').
I need to consider only servicelocation.csv.

Please advise me which function i need to consider.

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. ShaikMaheer-MSFT 38,556 Reputation points Microsoft Employee Moderator
    2021-12-10T12:57:39.467+00:00

    Hi @Rohit Kulkarni ,

    Thank you for posting query in Microsoft Q&A Platform.

    I believe you are using your both copy activities inside ForEach activity.

    You can consider storing your .csv file name in to variable first and then using that variable inside Copy activities.

    Kindly check below image for high level idea of implementation, what I am suggesting.
    156647-image.png

    Hope this will help. Please let us know if any further concerns.

    -------------

    Please consider hitting Accept Answer button. Accepted answers helps community as well.


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.