file transfer activity execution order | Community
Skip to main content
Level 4
January 29, 2024
Solved

file transfer activity execution order

  • January 29, 2024
  • 2 replies
  • 2376 views

Hi All,

I have issue/confusion with file transfer activity

 

in my wkf i have file trasnfer actiivty then dataloading actiity then son on

 

my workflow is running every 30mins and in every 30min I'm receiving file,

BUT My ask is if my wkf run for 1st time-it will take file 1,file2,file3

now when workflow run for 2nd time how it will exclude 

file 1,file2,file3 to pick up,i mean it should not pickup fil1,file2 and file3

 

it shouuld pick new then files received only in last 30mins

this is confusion,

 

please help 

 

 

@ParthaSarathy

@ParthaSarathy 

@ParthaS 

@AkshayAnand 

@Craig_Thonis 

@Manoj_Kumar_ 

@Amine_Abedour 

@Marcel_Szimonisz

@DavidKangni 

@Amit_Kumar 

@ShashankNigam02

@Ganesh5067

@Jonathon_wodnicki

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AkshayAnand

Hi @dishasharma 

 

You can use the file historization setting to archive the file that has been process by the activity. These files will be moved to an archive folder mentioned by you and then the location path will be empty for the new files to receive and process. 

 

Please find the reference here.

 

Regards

Akshay

2 replies

AkshayAnand
Community Advisor
AkshayAnandCommunity AdvisorAccepted solution
Community Advisor
January 29, 2024

Hi @dishasharma 

 

You can use the file historization setting to archive the file that has been process by the activity. These files will be moved to an archive folder mentioned by you and then the location path will be empty for the new files to receive and process. 

 

Please find the reference here.

 

Regards

Akshay

Level 4
January 29, 2024

can u pleaase confirm:

do u mean once the wkf is completed, we need we need to use another file transfer activty nad uplaod that file to another folder on sftp and then in file historisation seeting --chck option--

delete the source file after transfer ,please confirm my und

 

also,is there any other u mentioned to do this and its diff from what i mentioned,

 

please specify excat step plsssssssssssssssssssssssssssssssss

@akshayanand 

 

 

AkshayAnand
Community Advisor
Community Advisor
January 29, 2024

Hi @dishasharma 

 

As mentioned by @isahore, you can set these options in the same file transfer activity which you are using to collect the file at the starting of the workflow. In File hostorization setting you can mention your storage/archive folder path and after processing these files will go and sit in the archived folders.

 

Hope I am clear in my comments.

 

Thanks

Akshay

isahore
Community Advisor
Community Advisor
January 29, 2024

Hi @dishasharma,

The file transfer activity has a setting in the advanced parameters to delete the source files after transfer.

Select this option and your original files will be deleted from the location and not be processed the 2nd time.

 

BR,

Ishan

Level 4
January 29, 2024

 

@isahore 

so if we select this option --- delete the source files after transfer.

I have one ask on this---

it will delete the files from sftp right after the file transfer activityy pick the file or after the complete wkf has processed the file meaning

file will be deleted  from sftp after filetransfer acitiy step completed in workflow or after update data acity complete (this uodate data acitiy is after datalodign activity in my workflow)

 

isahore
Community Advisor
Community Advisor
January 29, 2024

Hi @dishasharma,

Once the workflow activity picks up a file for processing, it will delete the original file right then from the external SFTP directory. It does not wait for the workflow to complete.

ACC implicitly copies the file into its specified archive directory, from where it uses the file for further processing. It does not depend on whether the original file was deleted or not. So, you should be good checking the option to delete original files after transfer.

Let me know if that was clear.

 

BR,

Ishan