Hi @Atharv Phadnis ,
Welcome to Microsoft Q&A platform and thanks for posting your question here.
As I understand your requirement, you want to load the filenames from a folder in ADLS to .txt file where each line of the excel sheet holds individual filenames. But you don't want to use dataflow for meeting the requirement as suggested in this post. Please let me know if that's not the case.
As you have strict requirement to achieve the above scenario using ADF pipeline without dataflow, one possible workaround I can think of is to load the data in Azure SQL table using the below steps and then load the same to .xls file using copy data activity.
1. Use Get metadata activity to retrieve the FileName by selecting Child Items as Field List:
2. Use ForEach activity with Items as @activity('Get Metadata1').output.childItems
3. Use LookUp inside ForEach , and use the dataset pointing to the Az SQL table and use the following query:
if object_id('dbo.filenamelist') is null create table dbo.filenamelist (filenamelist varchar(30));insert into dbo.filenamelist select '@{item().name}'; select 1 as output
4. Once the data has been loaded to the above SQL table , you can use Copy data activity pointing the source dataset to SQL table and sink dataset to Excel file
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on
button and take satisfaction survey whenever the information provided helps you.
Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators