on 2016 May 03 1:51 PM
Hi All
I am currently having an issue while configuring a Communication Channel in PO.
The connection is to an SFTP server which will contain files posted every 2 hours, the file format will XX_XXXXXXXXX.xml so an example would be DR_201612111.xml (every file will be unique.
However, in the file section I cannot seem to use a place holder as PO does not recognise the file - for example DR_*, *DR_, *.xml etc. The only way I can get this to work is by specifying a particular file which will not work.
Does anyone know how I can solve this?
My system version is: PO 7.4
Many Thanks
Phil
Hi Phil,
You can use below regex. This will cater only numbers after underscore and exactly 9 digits.
DR_[0-9]{9}\.xml$
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Phil,
You can use this pattern also DR.*\.xml
If number range is not fixed length after underscore then this formate DR.*\.xml will work.
Regards
Umesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Phil,
The implementation doesn't work the same as the file adapter. You have to base your pattern matching on the Java Regex - if you use DR_.*.xml it should pick up the files successfully.
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghuraman,
Not really required in this case but they can certainly be used for more complex regular expressions. So the breakdown of the one I mentioned would be -> DR_ (anything) .xml where the DR_ and the .xml are treated as literals and the .* means any character 0 or more times.
Regards,
Ryan Crosby
Hello Phil,
SFTP has a unique naming conventions
Try like below
[DR_*,]*.*xml.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
11 | |
10 | |
10 | |
9 | |
9 | |
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.