Expand my Community achievements bar.

SOLVED

External signal problem

Avatar

Level 4

Hi Team,

 

In one of the delivery template we have a post processing workflow which triggers with external signal when the delivery is ran in any workflow.

When the same delivery template is used and ran at the same time from different workflows the external signal in the post processing is only taking the first workflow data(this workflow which might have ran 2 seconds earlier than the 2nd workflow) in to it..

Is there anyway we can control this or anyway in which we can make the post processing workflow take all the deliveries data which comes simultaneously.

 

Thanks,

Greeshma 

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi @adithyacs86  @DavidKangni ,

 

We changed the filer condition in file collector from instancs,vars.<filename> to vars.<filename> then the file collector started fetching all files coming to it at the same time.

Thank you all for the help. 

 

Thanks,

Greeshma

View solution in original post

8 Replies

Avatar

Community Advisor

You can use a js to check if the workflow is running and add a wait to retry

 

DavidKangni_0-1620398392942.png

Thanks,

David



David Kangni

Avatar

Level 4

Hi @DavidKangni,

 

By checking deeply to the issue, we have a JavaScript activity which fetches the deliveries filename and pass to the file collector. This file collector takes the file which is stored in the server and passes to the next activity. As I checked the logs, the JavaScript activity is sending all the delivery details from different deliveries, but the file collector is taking only one delivery file.

 

Greeshma_Sampath1_2-1620399679869.png

 

 

Images of logs

Javascript actiivty

Greeshma_Sampath1_0-1620399539740.png

05/07/2021 3:48:22 AM Sending file: D:\Adobe\Adobe Campaign Classic v7\var\stage\Phase3\TR\TR_CHANNEL_TR Channel test 1_2021-05-07_03-47-26.csv
05/07/2021 3:48:22 AM -----
05/07/2021 3:48:22 AM Sending file: D:\Adobe\Adobe Campaign Classic v7\var\stage\Phase3\TR\TR_CHANNEL_TR Channel test 2_2021-05-07_03-47-26.csv
05/07/2021 3:48:22 AM -----

 

File collector actiivty

Greeshma_Sampath1_1-1620399573905.png

05/07/2021 3:48:23 AM 05-07_03-47-26_20210507074823a.csv'
05/07/2021 3:48:23 AM Getting 'D:\Adobe\Adobe Campaign Classic v7\var\stage\Phase3\TR\TR_CHANNEL_TR Channel test 1_2021-05-07_03-47-26.csv', saved as 'D:\Adobe\Adobe Campaign Classic v7\var\stage\workflow\wf-arcExportTRFile\directorywatcher2\TR_CHANNEL_TR Channel test 1_2021-
05/07/2021 3:48:22 AM D:\Adobe\Adobe Campaign Classic v7\var\stage\Phase3\TR\TR_CHANNEL_TR Channel test 1_2021-05-07_03-47-26.csv
05/07/2021 3:48:22 AM D:\Adobe\Adobe Campaign Classic v7\var\stage\Phase3\TR\TR_CHANNEL_TR Channel test 1_2021-05-07_03-47-26.csv
05/07/2021 3:48:22 AM D:\Adobe\Adobe Campaign Classic v7\var\stage\Phase3\TR\TR_CHANNEL_TR Channel test 2_2021-05-07_03-47-26.csv
05/07/2021 3:48:22 AM D:\Adobe\Adobe Campaign Classic v7\var\stage\Phase3\TR\TR_CHANNEL_TR Channel test 2_2021-05-07_03-47-26.csv

 

Could you please tell me like how i can pass one file at a time to file collector or a way in which file collector takes one file,completes the process and takes the next file.

 

thanks,

Greeshma

Avatar

Community Advisor
in file collector you have a box called stop as soon as file is processed. check it and add a jump at the end of your workflow to return to the file collector. You need also to check the process missing file checkbox


David Kangni

Avatar

Level 4

Hi @DavidKangni,

 

I tried the way you suggested, but then also its not taking the other file. Its taking only one file among the 2 files which came simultaneously to the file collector.
Kindly find below the logs of the file collector.

 

05/09/2021 9:02:45 AM D:\Adobe\Adobe Campaign Classic v7\var\stage\workflow\wf-DEVWKF6452\directorywatcher2\TR_CHANNEL_2 Copy of Copy of TR Channel GS 7th apr 2021_2021-05-09_09-01-18_20210509130215a.csv
05/09/2021 9:02:45 AM D:\Adobe\Adobe Campaign Classic v7\var\stage\workflow\wf-DEVWKF6452\directorywatcher2\TR_CHANNEL_2 Copy of Copy of TR Channel GS 7th apr 2021_2021-05-09_09-01-18_20210509130215a.csv
05/09/2021 9:02:15 AM Copy of Copy of TR Channel GS 7th apr 2021_2021-05-09_09-01-18_20210509130215a.csv'
05/09/2021 9:02:15 AM Getting 'D:\Adobe\Adobe Campaign Classic v7\var\stage\Phase3\TR\TR_CHANNEL_2 Copy of Copy of TR Channel GS 7th apr 2021_2021-05-09_09-01-18.csv', saved as 'D:\Adobe\Adobe Campaign Classic v7\var\stage\workflow\wf-DEVWKF6452\directorywatcher2\TR_CHANNEL_2
05/09/2021 9:02:15 AM D:\Adobe\Adobe Campaign Classic v7\var\stage\Phase3\TR\TR_CHANNEL_2 Copy of Copy of TR Channel GS 7th apr 2021_2021-05-09_09-01-18.csv
05/09/2021 9:02:15 AM D:\Adobe\Adobe Campaign Classic v7\var\stage\Phase3\TR\TR_CHANNEL_2 Copy of Copy of TR Channel GS 7th apr 2021_2021-05-09_09-01-18.csv
05/09/2021 9:02:15 AM D:\Adobe\Adobe Campaign Classic v7\var\stage\Phase3\TR\TR_CHANNEL_1 Copy of TR Channel GS 7th apr 2021 _2021-05-09_09-01-18.csv
05/09/2021 9:02:15 AM D:\Adobe\Adobe Campaign Classic v7\var\stage\Phase3\TR\TR_CHANNEL_1 Copy of TR Channel GS 7th apr 2021 _2021-05-09_09-01-18.csv

 

Is there any other method or way in which we can get the other files also to be captured?

 

Thanks,
Greeshma

Avatar

Level 5
Hi Greeshma, What is the filtering condition given... If it is based on the vars.<deliveryName> then change the variable to include * after the common parameters. Hope that helps.

Avatar

Level 4

Hi @adithyacs86,

 

Below shown is the filter which is given in the file collector.

Greeshma_Sampath1_0-1620883535497.png

 

could you please tell me how to change it here?

 

Thanks,

Greeshma

Avatar

Level 5
So this vars.FinalFile is a variable defined in your js which is before the file collector activity and this I presume is a hard coded value or coming in from external signal, so make this variable to include * in the js code

Avatar

Correct answer by
Level 4

Hi @adithyacs86  @DavidKangni ,

 

We changed the filer condition in file collector from instancs,vars.<filename> to vars.<filename> then the file collector started fetching all files coming to it at the same time.

Thank you all for the help. 

 

Thanks,

Greeshma