0

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

7
  • I think you are using same dataset for get metadata activity and other activity. If you see the screenshot that you provided, it has empty value for filesharename parameter value.
    – Aswin
    Commented 23 hours ago
  • If i need to provide another dataset for Metadata activity, what I need to provide in that dataset? Commented 23 hours ago
  • Are you using same dataset for both getmetadata activity and copy activity- source?
    – Aswin
    Commented 22 hours ago
  • Source data set is using for get metadata activity and copy activity - source and destination data set is using in copy activity - sink. Commented 22 hours ago
  • Can u attach screenshot of copy activity with source and sink tab. This will help me to explain better
    – Aswin
    Commented 22 hours ago

1 Answer 1

0

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

  • Click +New in the settings of get metadata activity to create new dataset.

  • Click azure data lake gen2 and then click binary as dataset.
  • Then give the linked service. Give the full file path in the linked service. 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.

4
  • Sorry, could you please provide me the full pipeline from Get Metadata activity to copy activity. Commented 22 hours ago
  • There is a blog which does similar. Check the steps as given in this link.
    – Aswin
    Commented 21 hours ago
  • that blog is about blob storage copy activity not about file shares. Hope the linked services, dataset creation of file share is a bit different from the blob storage object. So, I asked the configuration of file share copy activity here. Thanks ! Commented 21 hours ago
  • Did you get the output of fileshares list from the above solution given - get metadata activity? Commented 21 hours ago

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.