1
votes

Is there a way to keep the names of original files when moving them, from say Azure Blob Storage to Azure Data Lake in Azure Data Factory? Currently they are being renamed by Azure to completely something meaningless

2

2 Answers

2
votes

This is supported. Specify "copyBehavior" as "PreserveHierarchy" in your ADLS sink in copy activity. You will find the same config in the copy wizard as well. Check documentation at https://docs.microsoft.com/en-us/azure/data-factory/data-factory-azure-datalake-connector#copy-activity-properties

0
votes

The file name attribute for the output dataset isn't mandatory in the JSON. So, if you remove it or comment it out the activity should just keep the original name.

This is certainly true for copy activities.