Skip to main content
Solved

How can I delete a respective csv file after uploading that created csv to azure file storage?

  • August 17, 2023
  • 2 replies
  • 157 views

taransingh2812
Contributor
Forum|alt.badge.img

I have data going through feature writer that creates my csv, that then is uploaded to azure file storage using its connector in fme, once I successfully upload the csv, I want to delete that file from FME_DATASOURCE where I wrote it in the earlier step. How can I do that ?

Best answer by taransingh2812

Thanks Nielgerrits

 

Another solution that I discovered myself is, [Good thing that I was keeping exploring other transformers present]

After creating the csv using featurewritter I used a list exploder that helped me having each file name generated into its own feature value, that I used later to delete the respective file from the area using File Deleter transformer where I created them DYNAMICALLY.

 

It will be helpful for anyone who might have a similar query.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+61

When I do this I use the TempPathnameCreator to create a path to temp files, write the csv to the temp path and upload it. This way the source file will be cleaned automatically. Alternatives are SystemCaller, PythonCaller or FileCopyWriter.


taransingh2812
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • Best Answer
  • August 17, 2023

Thanks Nielgerrits

 

Another solution that I discovered myself is, [Good thing that I was keeping exploring other transformers present]

After creating the csv using featurewritter I used a list exploder that helped me having each file name generated into its own feature value, that I used later to delete the respective file from the area using File Deleter transformer where I created them DYNAMICALLY.

 

It will be helpful for anyone who might have a similar query.