create a file

arkiboys 9,706 Reputation points
2022-02-11T07:37:42.213+00:00

Hi,
The existing pipeline has a lookup and filter activity where it gets the filename value, i.e. testfile.abc
This is simply name of a file which does not exist.
I would like to create this as a file (Which is empty) but with the name testfile.abc
How can I do this?
Thanks

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
0 comments No comments
{count} votes

Accepted answer
  1. AnnuKumari-MSFT 34,556 Reputation points Microsoft Employee Moderator
    2022-02-11T08:16:30.117+00:00

    Hi @arkiboys ,
    Thankyou for using Microsoft Q&A platform and posting your query.

    You can use copy activity after filter activity in order to create an empty file with the same name as is coming from filter output. For that, you need to create a dummy file in your storage account first and use it as source dataset in copy activity and parameterize the sink dataset to get the dynamic filename.

    Also , I would like to mention 'testfile.abc' doesn't seem to have a proper formatting for a file. Do you think naming as 'testfile_abc.csv' would be better as it may cause error because of unrecognized extension?

    Please refer to the below screenshot.

    173512-image.png
    173463-image.png

    Hope this will help. Please let us know if any further queries.


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button 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
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.