on 09-15-2010 4:45 PM
Hi Experts,
I have a requirement to pick files from a directory which are older than 10 minutes. Is this possible using seder file communication channel?
Thanks a lot.
Regards,
Prasad
Howdy,
I haven't tried it but look for an option called Msecs to wait before modification check in the advanced settings of the sender comm channel - if it will let you set it to 6000000 then it might do what you want it to do.
Just a thought - let us know if it works.
Cheers
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Howdy,
I'm aware of what the option is for. But doesn't it stand to reason that if your poll interval is 1 min and you use the modification check to wait for 10 mins then your comm channel will only process files older than 11 mins?
Of course it assumes that you are processing files within 10 mins of their arrival in the directory and not a longer interval, and it also assumes that the files are being created from the legacy system directly into the source directory from the communication channel.
However if both of those apply then its at least worth trying out. Unfortunately my current customer doesn't have a PI box for me to try it myself.
Cheers
Alex
@ Alex,
But doesn't it stand to reason that if your poll interval is 1 min and you use the modification check to wait for 10 mins then your comm channel will only process files older than 11 mins?
This option is meant for NFS only and not FTP. And of course, it is not clear from the question whether the file channel user is talking about, is referring to FTP or NFS.
> I have a requirement to pick files from a directory which are older than 10 minutes. Is this possible using seder file communication channel?
Why so? If the reason is to just provide some delay to process the data after an interval of 10 mins then probably you can put a delay in your mapping. Of course this is not a good solution but it will solve your purpose.
To put delay in mapping you need to create an UDF and then map the UDF to any parent node. [_Here is the code._|http://wiki.sdn.sap.com/wiki/display/Snippets/AddTimeDelayingraphicalmessageMapping]
Otherwise writing an script will be a good solution but for that you have to maintain 2 directory one in which your file will wait for 10 mins and then script will move it to another dir from where your file adapter will pick up the file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not directly. You might have to use the script at the FTP server level to handle this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.