cancel
Showing results for 
Search instead for 
Did you mean: 

In which order file events are raised

Former Member
0 Kudos

Hello,

in which order file events are raised? By date of file or in alphabetic order or is it parameterised?

I need to be sure that the oldest file in one directory which is monitored by a file event is processed first. Can I be sure that a file event works this way even when 500 files are moved to this directory in one moment?

Kind regards

Frank Morleo

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I got the information that file events a raised alphabetically by file name but you could not 100% sure that the files will be processed in this order.

gmblom
Active Contributor
0 Kudos

I think the order should be time based, but I am not certain. Which version of CPS are you on? Did you do any specific settings in the system in respect to file events?

Regards Gerben

Former Member
0 Kudos

Hello Gerben,

we are using SAP-CPS Build M28.20-37214.

We had a problem while running a job chain triggered by a file event, when 6000 files were moved to the monitored directory in one moment. Some of the files were put in the queue in the wrong order (alphabetically).

We got the information from redwood that this could happen from time to time.

Now we do not use the file name out of the file event but the directory name and sort the files in there with our own redwood script in the order we need it and process the detected file.

So the file which will be processed next is detected in a script in the job chain and not set by the file event.

This is quite a good way for us to handle huge amount of file and it works properly.

Regards

Frank