on 10-28-2010 10:39 AM
Hello,
we need to pick two types of files from the same folder on FTP server:
Examples of filenames are:
FILEINVRPT12_28102010.xml and FILESLSRPT12_28102010.xml
We tried to use Advanced selection of files for these two file types and the filename scheme used was
FILEINVRPT.xml in filename and FILESLSRPT.xml in Filename mask for Advanced selection
All files of type FILEINVRPT.xml have been picked up but FILESLSRPT.xml were not.
We tried to remove advanced selection and even used *.xml and . as filename scheme ,still these files aren't picked up.
Then we tried giving exact filename (hardcoded) for some of these files and they were picked up ,so there should be no problem with these files.
Can anyone please suggest what could be the reason for this strange behaviour?
Thanks a lot.
Best Regards,
Shweta
Not sure of what could be the exact reason,but we deleted some old files on FTP server and it started working
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the 'Advanced Selection' option, instead of FILESLSRPT.xml give FILESLSRPT and try.
-Supriya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shwetha,
As per my understanding, you need to pick two different files(not having same naming convension) from the same folder. I see that you are using Advanced selection for Source files.
This can be easily achieved, I have done it and providing you the steps to configure the adapter.
1. In the File Access parameters, provide the source directory and filename as FILE*.xml.
2. Now, check the option, advanced selection for source files.
provide the directory = 10.20.30.40
and the File Name Mask FILEINVRPT.xml, FILESLSRPT.xml
Ensure that the file placed in the FTP should have the same naming convension of the filename.
Thanks,
Hi Shweta
Could you try below option,
1.configure the channel with NFS option.
2. use any PI serve directory & place 4 or 5 files with different names in directiory
3. mention the file name as * in the file communication channel
check if it is working?
if it works so it can be the authorization problem of file or FTP user.
Thanks
Rinku
Hello,
For test,I am not using Advanced selection now.
I used FILESLSRPT12_281020??.xml and some files matching this scheme have been picked up
Does this give any hint?
Regards,
Shweta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shweta,
Have you checked the filename scheme properly, as it is case-sensitive.
-Supriya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shweta ,
Can you please check if you have read ,write ,modify permissions present for file and directory .
Can you run the same channel with another file and see whether its being picked up from local directory /
please make ftp connection mode as permanent ,and see if you find any logs in channel monitoring
regards
Ninad
Edited by: Ninad Sane on Oct 28, 2010 12:15 PM
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.