Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

Filecolector "Stop as soon as a file has been processed" explanation

Avatar

Community Advisor

Hello Campaigners,

I have doubt around the option "Stop as soon as a file has been processed" in file collector anybody can share some insights to this?

For me there is no difference between checked and unchecked. 

Marcel_Szimonisz_0-1709024986711.png

https://experienceleague.adobe.com/docs/campaign-classic/using/automating-with-workflows/event-activ...

 

The end goal is to figure out the order of files picked by the file collector.

Marcel

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Marcel_Szimonisz ,

ParthaSarathy_0-1709040998656.png

Yes, whether the check box is checked or unchecked, the files are getting processed sequentially in alphabetical order.

But few advantage of enabling the check box and making it as a loop (as above image) are,

- If there are multiple files in the directory, the file collector will fetch all the files together and once it gets picked up, it will move all the files to storage directory. And incase if there is any error in the workflow next to file collector, again we have to place all the files in the directory and rerun the workflow. But when having the loop concept, only one file will get moved to storage directory (if the workflow fails), and we can fix the Workflow and place that particular one file again and rerun the workflow.

- If keep interim of the workflow is enabled, We can able to monitor the performance and results of each file's data sequentially.

View solution in original post

8 Replies

Avatar

Correct answer by
Community Advisor

Hi @Marcel_Szimonisz ,

ParthaSarathy_0-1709040998656.png

Yes, whether the check box is checked or unchecked, the files are getting processed sequentially in alphabetical order.

But few advantage of enabling the check box and making it as a loop (as above image) are,

- If there are multiple files in the directory, the file collector will fetch all the files together and once it gets picked up, it will move all the files to storage directory. And incase if there is any error in the workflow next to file collector, again we have to place all the files in the directory and rerun the workflow. But when having the loop concept, only one file will get moved to storage directory (if the workflow fails), and we can fix the Workflow and place that particular one file again and rerun the workflow.

- If keep interim of the workflow is enabled, We can able to monitor the performance and results of each file's data sequentially.

Avatar

Community Advisor

Hello @ParthaSarathy,

thanks for you reply.

So if I run the workflow as above but once with the checkbox checked and once unchecked. It will act the same only until the point the "Import" activity fails. Am I right?

Marcel

Avatar

Community Advisor

If it is checked without the loop concept, then the file collector will fetch  only one file and complete the process.

Avatar

Community Advisor

So if i do not have loop and its not checked and have more files that match filter I will process one file but archive all of them?

Avatar

Community Advisor

- Checkbox unchecked: All files matching the filter will get processed and all these files will be moved to storage directory.

Checkbox checked without loop: Only one file will get processed and the processed one file will be move to storage directory. (Rest other files will be there in same source path)

Checkbox checked with loop: Process only one file and move that processed file to storage directory. Once the complete workflow process is done, with the help of loop, the next one file will get processed by file collector. In this way once all the files get processed, the loop ends.

Avatar

Community Advisor

Hello @ParthaSarathy,

if I have it unchecked I will have vars.filename variable as kind of array? or it will be coma separated values?

Marcel

Avatar

Community Advisor

This is the result of logInfo(vars.filename) with csv files a,b,c,d,e,f,g in sftp.

ParthaSarathy_0-1709194995913.png

 

Avatar

Community Advisor

is that array? or document? you can loop over these?