Expand my Community achievements bar.

SOLVED

Modifying the File Transfer workflow activity to prevent mass deletion of S3 Objects

Avatar

Level 2

Hello,

 

Currently, if a file transfer activity is set up with the "File download" action and "Delete the source files after transfer enabled", if no file is specified in the activity, it will download & then delete the entire content of the S3 bucket and all child folders.

 

  1. where is the fileTransfer activity configured in ACC?
  2. is there a documented modification to this behavior to limit deletion to only one object?

Thanks,

Skyler

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @SkylerQu2 ,

 

You can not do it, even if somehow implement it, it is not best practice to change out of the box functionality.

 

If possible, best way first use file transfer activity only download the file, not use delete, and do your work and everything is done, then move/delete the file.

 

Kr,

Parvesh

Parvesh Parmar – Adobe Community Advisor
https://www.linkedin.com/in/parvesh-parmar/

View solution in original post

5 Replies

Avatar

Community Advisor

Hi @SkylerQu2 ,

 

If you don't specify the file, the system interprets it as a wild card. You need to specify the path and a pattern for the files you'd like to process.

 

Thanks,
David



David Kangni

Avatar

Level 2

Hi @DavidKangni correct. We would like to add some failsafes in case of user error which would lead to mass file deletion due to this behavior. 

Avatar

Correct answer by
Community Advisor

Hi @SkylerQu2 ,

 

You can not do it, even if somehow implement it, it is not best practice to change out of the box functionality.

 

If possible, best way first use file transfer activity only download the file, not use delete, and do your work and everything is done, then move/delete the file.

 

Kr,

Parvesh

Parvesh Parmar – Adobe Community Advisor
https://www.linkedin.com/in/parvesh-parmar/

Avatar

Level 2

Hi @SkylerQu2 ,

 

To avoid deleting all files when none are present, start with a file transfer activity with file listing that lists files. If a file exists at the path, proceed with the download; if not, stop the flow or wait until the file becomes available. This ensures the download runs only when a file is present.

 

Regards,

Vishwadeep

Avatar

Administrator

Hi @SkylerQu2,

Were you able to resolve this query with the help of the provided solutions, or do you still need further assistance? Please let us know. If any of the answers were helpful in moving you closer to a resolution, even partially, we encourage you to mark the one that helped the most as the 'Correct Reply.'

Thank you!



Sukrity Wadhwa