on 05-09-2013 2:22 PM
Hi PI Experts,
I had requirement to pick multile files from SFTP Server.
The follwing are the file Names
bai2_pd_<Date&Timestamp>.txt
bai2_pd_<Date&Timestamp>.txt
bai2_pd_<Date&Timestamp>.txt
bai2_pd_<Date&Timestamp>.txt
The only difference is Date & Timestamp changes for every File.
The file had permissions and through SFTP Channel the file got picked up successfully, If I gave Specific File name
Ex : bai2_pd_20130509040809.txt
If the Directory contains 4 files and mentioned *.txt, files are not picked up and gone through some blogs for multiple files picking through SFTP channel and I came to know I have to mention specific format as below.
As per this link http://scn.sap.com/docs/DOC-35572
EX : [a-z]*.txt
Even then the same result. Files are not picked up from SFTP Server[Bank System]
In Communication channel I am getting the log after polling interval as mentioned below
No New File
Found 0(Zero) Files
Channel needs execution, executing now, next execution is scheduled at 5/9/13 8:12 AM
However Files are there in SFTP Server.
Please help me.
Rgds,
Kumar
Hi Kumar,
Did you try bai2_pd_[0-9]*.txt
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I understand you want to pickup files starting with "bai2_pd_" and want to avoid picking up files which start with a different string.
Try this:
bai2_pd_.*
Dot means any character, asterisk means "repeat".
Best regards,
Wolfgang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
What happens if you try the following regexp:
([^\s]+(\.(txt))$)
If you are not sure of your regexp, you can use a few online test tools to test it first before using it in your channel.
Refer to this thread:
http://scn.sap.com/thread/3243265
Regards, Trevor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I'm not sure why it is not working. Can you try
bai2_pd_??????????????.txt
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
on which version you are? 7.3X, because your doc refer to 7.3X
if you have seeburger SFTP then try like only * that will work
Regards
Gagan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
Try this pattern ".+\\*.txt"
It will work.
Thanks
Dhileep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
Channel should pick the files. did you try the other way i.e. bai2_pd* ?
Regards,
Hareesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.