Reputation: 11
I have a "copy data" activity in Azure Data Factory. I want to copy .csv files from blob container X to Blob container Y. I don't need to change the content of the files in any way, but I want to add a timestamp to the name, e.g. rename it. However, I get the following error "Binary copy does not support copying from folder to file". Both the source and the sink are set up as binary.
Upvotes: 1
Views: 1418
Reputation: 16401
If you want to copy the files and rename them, you pipeline should like this:
@activity('Get Metadata1').output.childItems
:
@concat(split(item().name,'.')[0],utcnow(),'.',split(item().name,'.')[1])
:
Note: The example I made just copy the files to the same container but with new name.
Upvotes: 1