azureazure-data-factoryazure-file-share

How to get metadata (File Shares List) of the Storage account & configure the copy data activity for copying b/w storage accounts in the ADF?


Following my previous Q&A,

How to get the File Shares list in the metadata activity and copy all the file shares and inside data as-is to the destination storage account?

Linked Service for Source storage: enter image description here

Linked Service for destination storage: enter image description here

Get Metadata activity: enter image description here

In the Linked Service, I have edited like below:

enter image description here

Error:

{
"code": "BadRequest",
"message": null,
"target": "pipeline//runid/3625b19c-e9b6-494a-a704-17acb13dda04",
"details": null,
"error": null
}

Copy Data Activity: Source:

enter image description here

enter image description here


Solution

  • The issue is because you have same dataset for both getmetadata activity and source of copy activity. You can change the dataset of get metadata activity

    Once created new dataset, add child items as argument in the field list.

    This way, you can change the dataset in metadata activity and make sure that it is different to the one on copy activity.